Skip to content

Commit

Permalink
Merge pull request #15 from cyberstudio/add-docs-theme
Browse files Browse the repository at this point in the history
Add sphinx_book_theme
  • Loading branch information
perastov authored Oct 7, 2023
2 parents ad5f006 + 18c0b5b commit c84a005
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 6 deletions.
9 changes: 6 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"sphinx.ext.todo",
"sphinx.ext.viewcode",
"enum_tools.autoenum",
"sphinxjp.themes.basicstrap",
]

# A list of regular expressions that match anchors Sphinx should skip
Expand Down Expand Up @@ -77,9 +76,13 @@

# -- Options for HTML output ----------------------------------------------

html_theme = 'basicstrap'
# Docs of sphinx_book_theme https://pydata-sphinx-theme.readthedocs.io/en/latest/user_guide/install.html
html_theme = 'sphinx_book_theme'
html_theme_options = {
'sidebar_span': 1,
"repository_url": "https://github.com/cyberstudio/cybsi-cloud-sdk",
"use_repository_button": True,
"use_issues_button": True,
'secondary_sidebar_items': [],
}
html_static_path = ["_static"]

Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Sphinx==4.2.0
sphinx_toolbox==2.16.0
sphinx-autodoc-typehints==1.11.1
enum_tools==0.11.0
sphinxjp.themes.basicstrap==0.5.0
sphinx-book-theme==1.0.1
httpx==0.23.1
sphinx-jinja2-compat==0.1.1
aiofiles==22.1.0
56 changes: 55 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Sphinx = "4.2.0"
sphinx-autodoc-typehints = "1.11.1"
sphinx-jinja2-compat = "0.1.1"
sphinx_toolbox = "2.16.0"
"sphinxjp.themes.basicstrap" = "0.5.0"
sphinx-book-theme = "^1.0.1"
pytest = "^7.1.1"
tbump = "6.8.0"

Expand Down

0 comments on commit c84a005

Please sign in to comment.