|
| 1 | +# -- Project information ----------------------------------------------------- |
| 2 | + |
| 3 | +project = 'Githelp' |
| 4 | +copyright = '2025, Jimmy Zhang' |
| 5 | +author = 'Jimmy Zhang' |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | +# ---------------------------------------------------------------------------- |
| 10 | +# Below here does not need to be edited for the lab |
| 11 | +# ---------------------------------------------------------------------------- |
| 12 | + |
| 13 | +# -- General configuration --------------------------------------------------- |
| 14 | + |
| 15 | +# Add any Sphinx extension module names here, as strings. They can be |
| 16 | +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
| 17 | +# ones. |
| 18 | +extensions = [ |
| 19 | + "myst_nb", |
| 20 | + 'sphinx.ext.intersphinx', |
| 21 | + "sphinx_design", |
| 22 | + 'sphinx.ext.autodoc', |
| 23 | + 'sphinx.ext.napoleon', |
| 24 | + 'sphinx_click' |
| 25 | +] |
| 26 | + |
| 27 | +# "sphinxext.rediraffe", |
| 28 | + |
| 29 | +# Add any paths that contain templates here, relative to this directory. |
| 30 | +templates_path = ['_templates'] |
| 31 | + |
| 32 | +# List of patterns, relative to source directory, that match files and |
| 33 | +# directories to ignore when looking for source files. |
| 34 | +# This pattern also affects html_static_path and html_extra_path. |
| 35 | +exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', "*import_posts*", |
| 36 | + "**/pandoc_ipynb/inputs/*", ".nox/*", "README.md",] |
| 37 | + |
| 38 | + |
| 39 | +# -- Options for HTML output ------------------------------------------------- |
| 40 | + |
| 41 | +# The theme to use for HTML and HTML Help pages. See the documentation for |
| 42 | +# a list of builtin themes. |
| 43 | +# |
| 44 | +html_theme = 'pydata_sphinx_theme' |
| 45 | + |
| 46 | + |
| 47 | +html_theme_options = { |
| 48 | + "show_nav_level": 2, |
| 49 | + "header_links_before_dropdown": 6, |
| 50 | + "icon_links": [ |
| 51 | + { |
| 52 | + "name": "GitHub", |
| 53 | + "url": "https://github.com/compsys-progtools/githelp", |
| 54 | + "icon": "fa-brands fa-github", |
| 55 | + }, |
| 56 | + { |
| 57 | + "name": "Course", |
| 58 | + "url": "https://github.com/compsys-progtools/githelp", |
| 59 | + "icon": "fa-solid fa-school", |
| 60 | + }], |
| 61 | + "secondary_sidebar_items": { |
| 62 | + "**/*": ["page-toc", "edit-this-page", "sourcelink"], |
| 63 | + } |
| 64 | +} |
| 65 | + |
| 66 | +# html_favicon = "_static/favicon.ico" |
| 67 | +# change this to change the site title |
| 68 | +html_title = project |
| 69 | + |
| 70 | +# Add any paths that contain custom static files (such as style sheets) here, |
| 71 | +# relative to this directory. They are copied after the builtin static files, |
| 72 | +# so a file named "default.css" will overwrite the builtin "default.css". |
| 73 | +html_static_path = ['_static'] |
| 74 | +# html_extra_path = ["feed.xml"] |
| 75 | +# map pages to which sidebar they should have |
| 76 | +# "page_file_name": ["list.html", "of.html", "sidebar.html", "files.html"] |
| 77 | +html_sidebars = { |
| 78 | + "*": [], |
| 79 | + "**/*": ["sidebar-nav-bs",] |
| 80 | +} |
| 81 | + |
| 82 | +# "about": ["hello.html"], |
| 83 | +# "publications": ["hello.html"], |
| 84 | +# "projects": ["hello.html"], |
| 85 | +# "resume": ["hello.html"], |
| 86 | +# "news": ["hello.html", 'archives.html'], |
| 87 | +# "news/**": ['postcard.html', 'recentposts.html', 'archives.html'], |
| 88 | + |
| 89 | + |
| 90 | +# Panels config |
| 91 | +panels_add_bootstrap_css = False |
| 92 | + |
| 93 | +# MyST config |
| 94 | +myst_enable_extensions = [ |
| 95 | + # "amsmath", |
| 96 | + "colon_fence", |
| 97 | + "deflist", |
| 98 | + "dollarmath", |
| 99 | + "fieldlist", |
| 100 | + "html_admonition", |
| 101 | + "html_image", |
| 102 | + # "linkify", |
| 103 | + "replacements", |
| 104 | + "smartquotes", |
| 105 | + "strikethrough", |
| 106 | + "substitution", |
| 107 | + # "tasklist", |
| 108 | +] |
| 109 | + |
| 110 | +# def setup(app): |
| 111 | +# app.add_css_file("custom.css") |
0 commit comments