Skip to content

Commit b9dfd6d

Browse files
Copilotgonzalocasas
andcommitted
Update docs config and remove deprecated __version__.py
Co-authored-by: gonzalocasas <933277+gonzalocasas@users.noreply.github.com>
1 parent ee55fa2 commit b9dfd6d

File tree

2 files changed

+32
-40
lines changed

2 files changed

+32
-40
lines changed

docs/conf.py

Lines changed: 32 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from sphinx.ext.napoleon.docstring import NumpyDocstring
44

5-
import sphinx_compas_theme
5+
import sphinx_compas2_theme
66

77
# -- General configuration ------------------------------------------------
88

@@ -34,7 +34,6 @@
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):
103102
NumpyDocstring._unpatched_parse = NumpyDocstring._parse
104103
NumpyDocstring._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

122107
intersphinx_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+
132118
html_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()
143146
html_extra_path = ['.nojekyll']
144147
html_last_updated_fmt = ''
145148
html_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
149151
html_compact_lists = True

src/compas_nurbs/__version__.py

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)