File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ [
2+ {
3+ "name" : " dev" ,
4+ "version" : " latest"
5+ },
6+ {
7+ "name" : " 0.1.0" ,
8+ "version" : " v0.1.0"
9+ }
10+ ]
Original file line number Diff line number Diff line change 5252 'astropy' : ('https://docs.astropy.org/en/stable/' , None )
5353}
5454
55+ import watts
56+ version = release = watts .__version__
57+
5558# -- Options for HTML output -------------------------------------------------
5659
5760# The theme to use for HTML and HTML Help pages. See the documentation for
6568
6669html_theme = 'pydata_sphinx_theme'
6770
68- html_theme_options = {
69- 'github_url' : 'https://github.com/watts-dev/watts' ,
70- }
71-
7271# Add any paths that contain custom static files (such as style sheets) here,
7372# relative to this directory. They are copied after the builtin static files,
7473# so a file named "default.css" will overwrite the builtin "default.css".
7574html_static_path = ['_static' ]
75+
7676html_logo = '_static/watts.svg'
77+
7778html_theme_options = {
79+ "github_url" : "https://github.com/watts-dev/watts" ,
7880 "favicons" : [
7981 {
8082 "rel" : "icon" ,
8688 "sizes" : "32x32" ,
8789 "href" : "watts_32x32.png" ,
8890 },
89- ]
91+ ],
92+ "switcher" : {
93+ "json_url" : "https://watts.readthedocs.io/en/latest/_static/switcher.json" ,
94+ "url_template" : "https://watts.readthedocs.io/en/{version}/" ,
95+ "version_match" : version if '-dev' not in version else 'dev' ,
96+ },
97+ "navbar_end" : ["version-switcher" , "navbar-icon-links" ]
9098}
You can’t perform that action at this time.
0 commit comments