|
17 | 17 | "myst_parser", |
18 | 18 | "ablog", |
19 | 19 | "sphinx.ext.intersphinx", |
| 20 | + "sphinx_design", |
20 | 21 | ] |
21 | 22 |
|
22 | 23 | templates_path = ['_templates'] |
|
25 | 26 | ] |
26 | 27 |
|
27 | 28 | # ABlog configuration |
28 | | -blog_baseurl = "https://napari.org" |
| 29 | +blog_baseurl = "https://napari.org/island-dispatch" |
| 30 | +blog_title = "The Island Dispatch" |
| 31 | +blog_path = "blog" |
| 32 | +blog_post_pattern = "blog/*/*" |
| 33 | +blog_feed_fulltext = True |
| 34 | +blog_feed_subtitle = "Community news and updates from the napari project" |
| 35 | +fontawesome_included = True |
| 36 | +post_redirect_refresh = 1 |
| 37 | +# post_auto_image = 1 |
| 38 | +post_auto_excerpt = 2 |
| 39 | +post_date_format = "%Y %B %d" |
| 40 | +post_date_format_short = "%Y %b %d" |
29 | 41 |
|
30 | 42 | # -- Options for HTML output ------------------------------------------------- |
31 | 43 | # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output |
|
34 | 46 | html_static_path = ['_static'] |
35 | 47 | html_logo = "_static/logo.png" |
36 | 48 | html_favicon = "_static/logo.png" |
| 49 | +html_css_files = ['custom.css'] |
37 | 50 |
|
38 | 51 | html_theme_options = { |
39 | | - #"external_links": [{"name": "napari hub", "url": "https://napari-hub.org"}], |
| 52 | + "external_links": [ |
| 53 | + {"name": "napari.org", "url": "https://napari.org"}, |
| 54 | + {"name": "napari hub", "url": "https://napari-hub.org"}, |
| 55 | + ], |
40 | 56 | "github_url": "https://github.com/napari/napari", |
41 | 57 | "navbar_start": ["navbar-logo", "navbar-project"], |
42 | | - "navbar_end": ["navbar-icon-links"], |
| 58 | + "navbar_end": ["navbar-icon-links", "theme-switcher"], |
43 | 59 | "navbar_persistent": [], |
44 | 60 | "header_links_before_dropdown": 6, |
45 | | - # "secondary_sidebar_items": ["page-toc"], |
46 | | - "pygment_light_style": "napari", |
47 | | - "pygment_dark_style": "napari", |
| 61 | + "logo": { |
| 62 | + "link": "https://napari.org", |
| 63 | + }, |
| 64 | + "secondary_sidebar_items": [], |
| 65 | + "pygments_light_style": "napari", |
| 66 | + "pygments_dark_style": "dracula", |
48 | 67 | # "announcement": "https://napari.org/dev/_static/announcement.html", |
49 | 68 | "analytics": { |
50 | 69 | # The domain you'd like to use for this analytics instance |
|
53 | 72 | "plausible_analytics_url": "https://plausible.io/js/plausible.js", |
54 | 73 | }, |
55 | 74 | } |
| 75 | + |
| 76 | +# HTML context for theme |
| 77 | +html_context = { |
| 78 | + "default_mode": "auto", |
| 79 | +} |
| 80 | + |
| 81 | +# Sidebar configuration |
| 82 | +html_sidebars = { |
| 83 | + "**": [ |
| 84 | + "search-field.html", |
| 85 | + "ablog/postcard.html", |
| 86 | + "ablog/recentposts.html", |
| 87 | + "ablog/archives.html", |
| 88 | + ] |
| 89 | +} |
0 commit comments