Skip to content

Commit 9895e23

Browse files
authored
Change docs theme (#748)
* change docs theme * update theme options Signed-off-by: habibayassin <[email protected]>
1 parent 071de42 commit 9895e23

File tree

2 files changed

+36
-40
lines changed

2 files changed

+36
-40
lines changed

docs/conf.py

Lines changed: 35 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -90,54 +90,50 @@
9090
html_theme = "sphinx_symbiflow_theme"
9191

9292
html_theme_options = {
93-
# Specify a list of menu in Header.
94-
# Tuples forms:
95-
# ('Name', 'external url or path of pages in the document', boolean, 'icon name')
96-
#
97-
# Third argument:
98-
# True indicates an external link.
99-
# False indicates path of pages in the document.
100-
#
101-
# Fourth argument:
102-
# Specify the icon name.
103-
# For details see link.
104-
# https://material.io/icons/
105-
'header_links': [
106-
('Home', 'index', False, 'home'),
107-
("The OpenROAD Project", "https://theopenroadproject.org", True, 'launch'),
108-
("GitHub", "https://github.com/The-OpenROAD-Project/OpenROAD-flow-scripts", True, 'link')
93+
# Repository integration
94+
# Set the repo url for the link to appear
95+
'github_url': 'https://github.com/The-OpenROAD-Project/OpenROAD-flow-scripts',
96+
# The name of the repo. If must be set if github_url is set
97+
'repo_name': 'OpenROAD Flow',
98+
# Must be one of github, gitlab or bitbucket
99+
'repo_type': 'github',
100+
101+
# Set the name to appear in the left sidebar/header. If not provided, uses
102+
# html_short_title if defined, or html_title
103+
'nav_title': "OpenROAD Flow",
104+
105+
# A list of dictionaries where each has three keys:
106+
# href: The URL or pagename (str)
107+
# title: The title to appear (str)
108+
# internal: Flag indicating to use pathto (bool)
109+
'nav_links': [
110+
{"title": "Home", "href": "index", "internal": True},
111+
{"title": "The OpenROAD Project", "href": "https://theopenroadproject.org", "internal": False},
109112
],
110113

111114
# Customize css colors.
112115
# For details see link.
113116
# https://getmdl.io/customize/index.html
114117
#
115-
# Values: amber, blue, brown, cyan deep_orange, deep_purple, green, grey, indigo, light_blue,
116-
# light_green, lime, orange, pink, purple, red, teal, yellow(Default: indigo)
117-
'primary_color': 'indigo',
118-
# Values: Same as primary_color. (Default: pink)
119-
'accent_color': 'blue',
120-
121-
# Customize layout.
122-
# For details see link.
123-
# https://getmdl.io/components/index.html#layout-section
124-
'fixed_drawer': True,
125-
'fixed_header': True,
126-
'header_waterfall': True,
127-
'header_scroll': False,
128-
129-
# Render title in header.
130-
# Values: True, False (Default: False)
131-
'show_header_title': False,
132-
# Render title in drawer.
133-
# Values: True, False (Default: True)
134-
'show_drawer_title': True,
135-
# Render footer.
136-
# Values: True, False (Default: True)
137-
'show_footer': True,
118+
# Primary colors:
119+
# red, pink, purple, deep-purple, indigo, blue, light-blue, cyan,
120+
# teal, green, light-green, lime, yellow, amber, orange, deep-orange,
121+
# brown, grey, blue-grey, white
122+
# (Default: deep-purple)
123+
'color_primary': 'indigo',
124+
# Values: Same as color_primary.
125+
#(Default: indigo)
126+
'color_accent': 'blue',
138127

139128
# Hide the symbiflow links
140129
'hide_symbiflow_links': True,
130+
131+
"html_minify": False,
132+
"html_prettify": True,
133+
"css_minify": True,
134+
"globaltoc_depth": 2,
135+
"table_classes": ["plain"],
136+
"master_doc": False,
141137
}
142138

143139
# Add any paths that contain custom static files (such as style sheets) here,

docs/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
git+https://github.com/SymbiFlow/sphinx_materialdesign_theme.git#egg=sphinx-symbiflow-theme
1+
git+https://github.com/f4pga/sphinx_f4pga_theme.git
22
git+https://github.com/executablebooks/sphinx-external-toc
33
sphinx
44
sphinx-autobuild

0 commit comments

Comments
 (0)