From 29b485fbec0e7fa7bb6c053530c01d73ce0c497f Mon Sep 17 00:00:00 2001 From: SimonBoothroyd Date: Fri, 1 Dec 2023 18:15:00 -0500 Subject: [PATCH] Fix mike deployment --- .github/workflows/docs.yaml | 8 +++----- Makefile | 6 +++++- mkdocs.yml | 3 --- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index f716c76..31ba0b1 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -46,10 +46,8 @@ jobs: git fetch --all --prune make env - - pip install git+https://${INSIDER_DOCS_TOKEN}@github.com/SimonBoothroyd/griffe-pydantic.git@fix-inheritence-static - pip install git+https://${INSIDER_DOCS_TOKEN}@github.com/SimonBoothroyd/mkdocstrings-python.git - + sed -i 's/# extensions/extensions/' mkdocs.yml - + + make docs-insiders INSIDER_DOCS_TOKEN="${INSIDER_DOCS_TOKEN}" make docs-deploy VERSION="$VERSION" diff --git a/Makefile b/Makefile index cf410b4..d35ea28 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ CONDA_ENV_RUN := conda run --no-capture-output --name $(PACKAGE_NAME) EXAMPLES_SKIP := examples/md-simulations.ipynb EXAMPLES := $(filter-out $(EXAMPLES_SKIP), $(wildcard examples/*.ipynb)) -.PHONY: pip-install env lint format test test-examples docs-build docs-deploy +.PHONY: pip-install env lint format test test-examples docs-build docs-deploy docs-insiders pip-install: $(CONDA_ENV_RUN) pip install --no-build-isolation --no-deps -e . @@ -45,3 +45,7 @@ ifndef VERSION $(error VERSION is not set) endif $(CONDA_ENV_RUN) mike deploy --push --update-aliases $(VERSION) + +docs-insiders: + $(CONDA_ENV_RUN) pip install git+https://$(INSIDER_DOCS_TOKEN)@github.com/SimonBoothroyd/mkdocstrings-python.git \ + git+https://$(INSIDER_DOCS_TOKEN)@github.com/SimonBoothroyd/griffe-pydantic.git@fix-inheritence-static diff --git a/mkdocs.yml b/mkdocs.yml index 55ee59e..5ba218c 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -30,8 +30,6 @@ theme: name: material features: - announce.dismiss - - content.action.edit - - content.action.view - content.code.annotate - content.code.copy - content.tooltips @@ -77,7 +75,6 @@ markdown_extensions: - pymdownx.superfences - pymdownx.magiclink - pymdownx.snippets: - base_path: [!relative $config_dir] check_paths: true - pymdownx.details - pymdownx.arithmatex: