Try sphinx-book-theme@master

This commit is contained in:
Ayaz Salikhov
2022-02-06 12:35:30 +03:00
parent 087274e796
commit 95467981e8
3 changed files with 21 additions and 15 deletions

View File

@@ -34,7 +34,7 @@ jobs:
- name: Set Up Python
uses: actions/setup-python@v2
with:
python-version: 3.x
python-version: "3.9"
- name: Install Dev Dependencies
run: |

View File

@@ -67,20 +67,21 @@ html_static_path = ["_static"]
# sphinx-quickstart --project "docker-stacks" --author "Project Jupyter" -v "latest" -r "latest" -l en --no-sep --no-makefile --no-batchfile
# These are custom options for this project
html_theme = "sphinx_book_theme"
html_title = "Docker Stacks documentation"
html_logo = "_static/jupyter-logo.svg"
html_theme_options = {
"path_to_docs": "docs",
"repository_url": "https://github.com/jupyter/docker-stacks",
"use_edit_page_button": True,
"use_issues_button": True,
"use_repository_button": True,
"use_download_button": True,
}
extensions = ["myst_parser", "sphinx_copybutton"]
source_suffix = {
".rst": "restructuredtext",
".md": "markdown",
}
pygments_style = "sphinx"
html_theme_options = {
"description": "Jupyter Docker Stacks",
"fixed_sidebar": False,
"show_relbars": True,
"github_user": "jupyter",
"github_repo": "docker-stacks",
"github_type": "star",
"logo": "jupyter-logo.svg",
"logo_text_align": "left",
}

View File

@@ -1,3 +1,8 @@
myst-parser
sphinx
sphinx-copybutton
# ReadTheDocs environment contains old package versions preinstalled
# So, to ensure we have modern packages, we pin minimum versions of the packages we need
docutils>=0.17
myst-parser>=0.16.1
sphinx>=4.4.0
# sphinx-book-theme>=0.2.0
git+https://github.com/executablebooks/sphinx-book-theme@master#egg=sphinx-book-theme
sphinx-copybutton>=0.4.0