22
33from sphinx .ext .napoleon .docstring import NumpyDocstring
44
5- import sphinx_compas_theme
5+ import sphinx_compas2_theme
66
77# -- General configuration ------------------------------------------------
88
3434 'sphinx.ext.mathjax' ,
3535 'sphinx.ext.napoleon' ,
3636 'sphinx.ext.viewcode' ,
37- 'matplotlib.sphinxext.plot_directive' ,
3837]
3938
4039# autodoc options
@@ -103,20 +102,6 @@ def patched_parse(self):
103102NumpyDocstring ._unpatched_parse = NumpyDocstring ._parse
104103NumpyDocstring ._parse = patched_parse
105104
106- # plot options
107-
108- # plot_include_source
109- # plot_pre_code
110- # plot_basedir
111- # plot_formats
112- # plot_rcparams
113- # plot_apply_rcparams
114- # plot_working_directory
115- # plot_template
116-
117- plot_html_show_source_link = False
118- plot_html_show_formats = False
119-
120105# intersphinx options
121106
122107intersphinx_mapping = {
@@ -127,23 +112,40 @@ def patched_parse(self):
127112
128113# -- Options for HTML output ----------------------------------------------
129114
130- html_theme = 'compaspkg'
131- html_theme_path = sphinx_compas_theme .get_html_theme_path ()
115+ html_theme = 'sidebaronly'
116+ html_title = project
117+
132118html_theme_options = {
133- "package_name" : "compas_nurbs" ,
134- "package_title" : project ,
135- "package_version" : release ,
136- "package_author" : "Romana Rust" ,
137- "package_description" : "COMPAS package for working with NURBS" ,
138- "package_repo" : "https://github.com/gramaziokohler/compas_nurbs" ,
139- "package_docs" : "https://gramaziokohler.github.io/compas_nurbs"
119+ "icon_links" : [
120+ {
121+ "name" : "GitHub" ,
122+ "url" : "https://github.com/compas-dev/compas_nurbs" ,
123+ "icon" : "fa-brands fa-github" ,
124+ "type" : "fontawesome" ,
125+ },
126+ {
127+ "name" : "Discourse" ,
128+ "url" : "http://forum.compas-framework.org/" ,
129+ "icon" : "fa-brands fa-discourse" ,
130+ "type" : "fontawesome" ,
131+ },
132+ ],
133+ "navigation_depth" : 3 ,
134+ "check_switcher" : False ,
140135}
141- html_context = {}
142- html_static_path = []
136+
137+ html_context = {
138+ "github_url" : "https://github.com" ,
139+ "github_user" : "compas-dev" ,
140+ "github_repo" : "compas_nurbs" ,
141+ "github_version" : "main" ,
142+ "doc_path" : "docs" ,
143+ }
144+
145+ html_static_path = sphinx_compas2_theme .get_html_static_path ()
143146html_extra_path = ['.nojekyll' ]
144147html_last_updated_fmt = ''
145148html_copy_source = False
146- html_show_sourcelink = False
147- html_add_permalinks = ''
148- html_experimental_html5_writer = True
149+ html_show_sourcelink = True
150+ html_permalinks = False
149151html_compact_lists = True
0 commit comments