|
| 1 | +from datetime import date |
| 2 | +import json |
| 3 | +from pathlib import Path |
| 4 | + |
| 5 | +PACKAGE_JSON_FILENAME = Path(__file__).parent.parent / "package.json" |
| 6 | +PACKAGE_JSON = json.loads(PACKAGE_JSON_FILENAME.read_text(encoding="utf-8")) |
| 7 | + |
| 8 | +project = 'JupyterLite Terminal' |
| 9 | +author = PACKAGE_JSON["author"]["name"] |
| 10 | +copyright = f"2024-{date.today().year}, {author}" |
| 11 | +release = PACKAGE_JSON["version"] |
| 12 | + |
| 13 | +extensions = [ |
| 14 | + "jupyterlite_sphinx", |
| 15 | + "myst_parser" |
| 16 | +] |
| 17 | + |
| 18 | +templates_path = ['_templates'] |
| 19 | +exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
| 20 | + |
| 21 | +html_static_path = ['_static'] |
| 22 | +html_theme = "pydata_sphinx_theme" |
| 23 | +html_theme_options = { |
| 24 | + "github_url": PACKAGE_JSON["homepage"], |
| 25 | + "logo": { |
| 26 | + "alt_text": "JupyterLite Terminal - Home", |
| 27 | + "image_dark": "_static/terminal_logo_dark.svg", |
| 28 | + "image_light": "_static/terminal_logo_light.svg", |
| 29 | + "text": "JupyterLite Terminal", |
| 30 | + } |
| 31 | +} |
| 32 | +html_title = "JupyterLite Terminal" |
| 33 | + |
| 34 | +# jupyterlite_sphonx settings |
| 35 | +jupyterlite_contents = "../deploy/contents/" |
| 36 | +jupyterlite_dir = "../deploy/" |
| 37 | +jupyterlite_silence = False |
0 commit comments