File tree Expand file tree Collapse file tree 5 files changed +23
-10
lines changed
Expand file tree Collapse file tree 5 files changed +23
-10
lines changed Original file line number Diff line number Diff line change @@ -4,3 +4,4 @@ jupyterlite_sphinx/jupyterlite_sphinx.egg-info
44docs /build
55build
66dist
7+ .jupyterlite.doit.db
Original file line number Diff line number Diff line change 1+ ``` {include} ../CHANGELOG.md
2+ ```
Original file line number Diff line number Diff line change 11# -*- coding: utf-8 -*-
2- import shutil
3-
4- from pathlib import Path
5-
6- HERE = Path (__file__ ).parent
7- ROOT = HERE .parent
8-
92
103extensions = [
114 'jupyterlite_sphinx' ,
3528 ]
3629}
3730
38- # Copy the markdown file here
39- shutil .copy (ROOT / "CHANGELOG.md" , HERE / "changelog.md" )
40-
4131suppress_warnings = ["myst.xref_missing" ]
Original file line number Diff line number Diff line change @@ -6,6 +6,16 @@ You can install `jupyterlite-sphinx` with `pip`:
66pip install jupyterlite-sphinx
77```
88
9+ ` jupyterlite-sphinx ` is also available on ` conda-forge ` . You can install it with ` conda ` or ` mamba ` :
10+
11+ ``` bash
12+ # with conda
13+ conda install -c conda-forge jupyterlite-sphinx
14+
15+ # with mamba
16+ mamba install -c conda-forge jupyterlite-sphinx
17+ ```
18+
919then you need to add the ` jupyterlite-sphinx ` extension to your ` conf.py ` file of your sphinx docs:
1020
1121``` python
Original file line number Diff line number Diff line change @@ -21,6 +21,10 @@ dependencies = [
2121]
2222
2323[project .optional-dependencies ]
24+ dev = [
25+ " hatch" ,
26+ ]
27+
2428docs = [
2529 " myst_parser" ,
2630 " pydata-sphinx-theme" ,
@@ -33,3 +37,9 @@ path = "jupyterlite_sphinx/__init__.py"
3337include = [
3438 " /jupyterlite_sphinx" ,
3539]
40+
41+ [tool .hatch .envs .docs ]
42+ features = [" docs" ]
43+ [tool .hatch .envs .docs .scripts ]
44+ build = " sphinx-build -W -b html docs docs/build/html"
45+ serve = " python -m http.server --directory docs/build/html"
You can’t perform that action at this time.
0 commit comments