Skip to content

Commit 790a424

Browse files
authored
docs: migrate to zensical (#59)
## Summary - update docs URLs for the gdsfactory/meow transfer - replace mkdocs.yml with zensical.toml and switch docs commands to Zensical - remove the old MkDocs theme dependency and add KaTeX support for math rendering ## Testing - just docs
1 parent 28b3642 commit 790a424

8 files changed

Lines changed: 224 additions & 215 deletions

File tree

CHANGELOG.md

Lines changed: 151 additions & 151 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ This will include [gdsfactory](https://github.com/gdsfactory/gdsfactory) depende
2828
## Documentation
2929

3030
The documentation is available at
31-
[flaport.github.io/meow](https://flaport.github.io/meow/).
31+
[gdsfactory.github.io/meow](https://gdsfactory.github.io/meow/).
3232

3333

3434
## Contributors

docs/javascripts/katex.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
document$.subscribe(({ body }) => {
2+
renderMathInElement(body, {
3+
delimiters: [
4+
{ left: "$$", right: "$$", display: true },
5+
{ left: "$", right: "$", display: false },
6+
{ left: "\\(", right: "\\)", display: false },
7+
{ left: "\\[", right: "\\]", display: true },
8+
],
9+
});
10+
});

justfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ test: ipykernel
2929
docs:
3030
sed 's|](docs/|](|g' README.md > docs/index.md
3131
sed 's|^#|###|g' CHANGELOG.md | sed 's|^### \[0|## [0|g' > docs/changelog.md
32-
uv run mkdocs build
32+
uv run zensical build
3333

3434
serve: docs
35-
uv run mkdocs serve -a localhost:8080
35+
uv run zensical serve
3636

3737
nbrun: ipykernel
3838
find notebooks -maxdepth 2 -mindepth 1 -name "*.ipynb" -not -path "*/.ipynb_checkpoints/*" -not -path "./.venv/*" | xargs parallel -j `nproc --all` uv run papermill {} {} -k meow :::

mkdocs.yml

Lines changed: 0 additions & 55 deletions
This file was deleted.

pyproject.toml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ dev = [
1212
"ipympl>=0.9.0",
1313
"ipywidgets>=8.0.0",
1414
"mkautodoc>=0.2.0",
15-
"mkdocs-autorefs>=1.3.0",
16-
"mkdocs-shadcn @ git+https://github.com/gdsfactory/mkdocs-shadcn.git",
17-
"mkdocs<2",
18-
"mkdocstrings[python]>=0.27.0",
15+
"mkdocstrings-python>=2.0.3",
1916
"mkinit>=1.1.0",
2017
"nb-clean>=4.0.1",
2118
"nbconvert>=7.16.6",
@@ -29,7 +26,8 @@ dev = [
2926
"ruff>=0.15.5",
3027
"tmm>=0.2.0",
3128
"towncrier>=24.0.0",
32-
"ty==0.0.26"
29+
"ty==0.0.26",
30+
"zensical>=0.0.11"
3331
]
3432

3533
[project]

src/meow/fde/lumerical.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,6 @@ def _assert_default_mesh_setting(condition: bool, param_name: str) -> None: # n
204204
msg = (
205205
f"Setting mesh.{param_name} is currently not supported in the "
206206
"Lumerical Backend. Please open an issue of submit a PR on GitHub "
207-
"to fix this: https://github.com/flaport/meow",
207+
"to fix this: https://github.com/gdsfactory/meow",
208208
)
209209
raise NotImplementedError(msg)

zensical.toml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
[project]
2+
copyright = "Copyright (c) 2025, Floris Laporte, Apache-2.0"
3+
dev_addr = "localhost:8080"
4+
extra_css = [
5+
"https://unpkg.com/katex@0/dist/katex.min.css"
6+
]
7+
extra_javascript = [
8+
"javascripts/katex.js",
9+
"https://unpkg.com/katex@0/dist/katex.min.js",
10+
"https://unpkg.com/katex@0/dist/contrib/auto-render.min.js"
11+
]
12+
nav = [
13+
{"home" = "index.md"},
14+
{"quickstart" = "nbs/00_introduction.md"},
15+
{"examples" = [
16+
{"from gds" = "nbs/01_gds_taper.md"},
17+
{"taper length sweep" = "nbs/02_taper_length_sweep.md"},
18+
{"different modes" = "nbs/03_unequal_number_of_modes.md"},
19+
{"rib interface" = "nbs/04_rib_interface.md"},
20+
{"mode propagation" = "nbs/05_propagate_modes.md"}
21+
]},
22+
{"algorithm" = "algorithm.md"},
23+
{"api" = "api.md"},
24+
{"changelog" = "changelog.md"}
25+
]
26+
repo_name = "gdsfactory/meow"
27+
repo_url = "https://github.com/gdsfactory/meow"
28+
site_author = "Floris Laporte"
29+
site_description = "Modeling of Eigenmodes and Overlaps in Waveguides"
30+
site_name = "meow"
31+
site_url = "https://gdsfactory.github.io/meow"
32+
33+
[project.markdown_extensions.pymdownx.arithmatex]
34+
generic = true
35+
36+
[project.plugins.mkdocstrings.handlers.python]
37+
inventories = [
38+
"https://docs.jax.dev/en/latest/objects.inv",
39+
"https://docs.kidger.site/jaxtyping/objects.inv",
40+
"https://docs.python.org/3/objects.inv",
41+
"https://docs.xarray.dev/en/stable/objects.inv",
42+
"https://matplotlib.org/stable/objects.inv",
43+
"https://numpy.org/doc/stable/objects.inv",
44+
"https://pandas.pydata.org/docs/objects.inv",
45+
"https://python-markdown.github.io/objects.inv",
46+
"https://scipy.github.io/devdocs/objects.inv",
47+
"https://typing.readthedocs.io/en/latest/objects.inv",
48+
"https://www.mkdocs.org/objects.inv"
49+
]
50+
paths = [
51+
"src"
52+
]
53+
54+
[project.theme]
55+
favicon = "assets/logo-small.ico"
56+
logo = "assets/logo-small.svg"

0 commit comments

Comments
 (0)