Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Pass/setup doc versions config.
  • Loading branch information
Fizzadar committed Nov 26, 2020
1 parent f71784b commit 86da9f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions docs/conf.py
Expand Up @@ -29,8 +29,8 @@
project = 'pyinfra'
author = 'Fizzadar'

version = environ.get('READTHEDOCS_VERSION', 'latest')
language = environ.get('READTHEDOCS_LANGUAGE', 'en')
version = environ.get('DOCS_VERSION', 'latest')
language = 'en'

pygments_style = 'monokai'

Expand All @@ -44,6 +44,8 @@
'docsearch_index_name': 'pyinfra',
'plausible_domain': 'docs.pyinfra.com',
'plausible_stats_domain': 'stats.oxygem.com',
'doc_versions': ['1.x', '0.x', 'latest'],
'primary_doc_version': '1.x',
}

templates_path = ['templates']
Expand Down
2 changes: 1 addition & 1 deletion scripts/build_public_docs.sh
Expand Up @@ -18,5 +18,5 @@ if [ -z "${DOCS_VERSION}" ]; then
echo "No docs version for this branch, noop!"
else
echo "Building docs branch=${BRANCH_NAME}, version=${DOCS_VERSION}"
sphinx-build -a docs/ docs/public/en/$DOCS_VERSION/
env DOCS_VERSION=$DOCS_VERSION sphinx-build -a docs/ docs/public/en/$DOCS_VERSION/
fi

0 comments on commit 86da9f1

Please sign in to comment.