Skip to content

Commit

Permalink
doc: switch to sphinx_rtd_theme
Browse files Browse the repository at this point in the history
Signed-off-by: Kefu Chai <[email protected]>
  • Loading branch information
tchaikov committed Mar 4, 2021
1 parent cb7c0b4 commit 275c6bd
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 337 deletions.
1 change: 1 addition & 0 deletions admin/doc-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ pcpp
prettytable
sphinx-autodoc-typehints
sphinx-prompt
sphinx_rtd_theme
Sphinx-Substitution-Extensions
typed-ast
sphinxcontrib-openapi
1 change: 1 addition & 0 deletions doc/_themes/ceph/static/ceph.css_t
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import url("css/theme.css");
335 changes: 0 additions & 335 deletions doc/_themes/ceph/static/nature.css_t

This file was deleted.

4 changes: 2 additions & 2 deletions doc/_themes/ceph/theme.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[theme]
inherit = basic
stylesheet = nature.css
inherit = sphinx_rtd_theme
stylesheet = ceph.css
pygments_style = tango
14 changes: 14 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,20 @@ def is_release_eol(codename):

# HTML output options
html_theme = 'ceph'
html_theme_options = {
'logo_only': True,
'display_version': False,
'prev_next_buttons_location': 'bottom',
'style_external_links': False,
'vcs_pageview_mode': '',
'style_nav_header_background': 'white',
# Toc options
'collapse_navigation': True,
'sticky_navigation': True,
'navigation_depth': 4,
'includehidden': True,
'titles_only': False
}
html_theme_path = ['_themes']
html_title = "Ceph Documentation"
html_logo = 'logo.png'
Expand Down

0 comments on commit 275c6bd

Please sign in to comment.