Skip to content

Commit

Permalink
Merge pull request #44 from awvwgk/theme
Browse files Browse the repository at this point in the history
Update theme and add new extensions
  • Loading branch information
bhourahine authored Jun 29, 2022
2 parents 2be9397 + 4ba8d5a commit 132651b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
20 changes: 16 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,12 @@
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = ['sphinx.ext.mathjax',
'sphinx.ext.ifconfig']
extensions = [
'sphinx.ext.mathjax',
'sphinx.ext.ifconfig',
'sphinx_copybutton',
'sphinx_design',
]

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
Expand Down Expand Up @@ -94,13 +98,21 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'sphinx_rtd_theme'
html_theme = 'sphinx_book_theme'
html_title = project

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
#
#html_theme_options = {}
html_theme_options = {
"repository_url": "https://github.com/dftbplus/recipes",
"repository_branch": "main",
"use_repository_button": True,
"use_edit_page_button": True,
"use_download_button": False,
"path_to_docs": "docs",
}

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
Expand Down
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
sphinx >= 1.8
sphinx-book-theme
sphinx-copybutton
sphinx-design

0 comments on commit 132651b

Please sign in to comment.