|
| 1 | +# _config.yml |
| 2 | +title: learn.scientific-python.org |
| 3 | +only_build_toc_files: true |
| 4 | + |
| 5 | +# Keep things simple and MyST-first |
| 6 | +parse: |
| 7 | + myst_enable_extensions: [] |
| 8 | + |
| 9 | +sphinx: |
| 10 | + config: |
| 11 | + extra_extensions: |
| 12 | + - sphinx_design |
| 13 | + # --- Theme / branding --- |
| 14 | + html_theme: pydata_sphinx_theme |
| 15 | + html_title: "Learn Scientific Python" |
| 16 | + html_logo: "static/images/logo.svg" |
| 17 | + |
| 18 | + # Make your existing assets available to Sphinx |
| 19 | + html_static_path: |
| 20 | + - "assets" |
| 21 | + - "static" |
| 22 | + |
| 23 | + # Reuse existing custom CSS (assets/css/custom.css) |
| 24 | + html_css_files: |
| 25 | + - "css/custom.css" |
| 26 | + |
| 27 | + # --- PyData theme options (navbar/footer-ish) --- |
| 28 | + html_theme_options: |
| 29 | + navbar_align: "content" |
| 30 | + |
| 31 | + # Top navbar links (mirrors the old site’s cross-network navigation) |
| 32 | + external_links: |
| 33 | + - name: "Home" |
| 34 | + url: "https://scientific-python.org/" |
| 35 | + - name: "Blog" |
| 36 | + url: "https://blog.scientific-python.org" |
| 37 | + - name: "Learn" |
| 38 | + url: "https://learn.scientific-python.org/" |
| 39 | + - name: "Tools" |
| 40 | + url: "https://tools.scientific-python.org" |
| 41 | + |
| 42 | + # Social icons (footer/header icons) |
| 43 | + icon_links: |
| 44 | + - name: "GitHub" |
| 45 | + url: "https://github.com/scientific-python/" |
| 46 | + icon: "fab fa-github" |
| 47 | + - name: "YouTube" |
| 48 | + url: "https://www.youtube.com/c/ScientificPython-org" |
| 49 | + icon: "fab fa-youtube" |
| 50 | + - name: "Mastodon" |
| 51 | + url: "https://fosstodon.org/@scientific_python" |
| 52 | + icon: "fab fa-mastodon" |
| 53 | + - name: "Discourse" |
| 54 | + url: "https://discuss.scientific-python.org" |
| 55 | + icon: "fas fa-comments" |
| 56 | + - name: "Discord" |
| 57 | + url: "https://discord.com/invite/vur45CbwMz" |
| 58 | + icon: "fab fa-discord" |
| 59 | + |
| 60 | + # Reduce “book-like” chrome to feel more like a website |
| 61 | + show_nav_level: 2 |
| 62 | + navigation_with_keys: false |
| 63 | + # Don't even look at generated content |
| 64 | + exclude_patterns: |
| 65 | + - "content/_build/**" |
| 66 | + - "public/**" |
| 67 | + - ".github/**" |
| 68 | + - "external-content/**" |
| 69 | + - "**/.ipynb_checkpoints" |
| 70 | + - "**/.DS_Store" |
0 commit comments