Skip to content

Commit e0329a9

Browse files
authored
Merge pull request #90 from simbilod/docs
purge old docs
2 parents b8e0ec5 + 4190a43 commit e0329a9

30 files changed

+1230
-669
lines changed

.github/workflows/pages.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,27 @@ on:
99
jobs:
1010
build-docs:
1111
runs-on: ubuntu-latest
12-
name: Sphinx docs to gh-pages
12+
name: Build docs
1313
steps:
14-
- uses: actions/checkout@v4
15-
- name: Set up Python
16-
uses: actions/setup-python@v5
17-
with:
18-
python-version: '3.10'
19-
cache: "pip"
20-
cache-dependency-path: pyproject.toml
21-
- name: Installing the library
22-
shell: bash -l {0}
14+
- uses: actions/checkout@v2
15+
- name: Install uv
16+
uses: astral-sh/setup-uv@v4
17+
- name: Set up Python 3.12
18+
run: uv python install 3.12
19+
- name: Install venv
20+
run: uv venv
21+
- name: Install dependencies
2322
run: |
24-
make gmsh-ubuntu dev
23+
sudo apt-get install libglu1-mesa
24+
uv pip install -e ".[dev]"
2525
- name: make docs
2626
run: |
27-
make docs
27+
jupyter-book build docs/ --all
2828
- name: Upload artifact
2929
uses: actions/upload-pages-artifact@v3
3030
with:
3131
path: "./docs/_build/html/"
32+
3233
deploy-docs:
3334
needs: build-docs
3435
permissions:

docs/_config.yml

100755100644
Lines changed: 28 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,48 @@
11
# Book settings
22
# Learn more at https://jupyterbook.org/customize/config.html
33

4-
title: meshwell
5-
author: Simon Bilodeau
6-
copyright: "2023"
7-
logo: ../meshwell.png
4+
title: My sample book
5+
author: The Jupyter Book Community
6+
logo: logo.png
87

98
# Force re-execution of notebooks on each build.
109
# See https://jupyterbook.org/content/execute.html
1110
execute:
12-
execute_notebooks: cache
13-
timeout: -1
14-
allow_errors: true
15-
# execute_notebooks: force
16-
# execute_notebooks: "off"
17-
# exclude_patterns:
18-
# - '*notebooks/devsim/01_pin_waveguide*'
11+
execute_notebooks: force
12+
exclude_patterns:
13+
- 'gdsfactory_interface'
1914

15+
# Define the name of the latex output file for PDF builds
2016
latex:
21-
latex_engine: pdflatex # one of 'pdflatex', 'xelatex' (recommended for unicode), 'luatex', 'platex', 'uplatex'
22-
use_jupyterbook_latex: true # use sphinx-jupyterbook-latex for pdf builds as default
17+
latex_documents:
18+
targetname: book.tex
2319

24-
html:
25-
home_page_in_navbar: true
26-
use_edit_page_button: true
27-
use_repository_button: true
28-
use_issues_button: true
29-
baseurl: https://github.com/joamatab/cookiecutter-pypackage-minimal
20+
# Add a bibtex file so that we can create citations
21+
bibtex_bibfiles:
22+
- references.bib
3023

3124
# Information about where the book exists on the web
3225
repository:
33-
url: https://github.com/simbilod/meshwell
34-
path_to_book: docs # Optional path to your book, relative to the repository root
35-
branch: main # Which branch of the repository should be used when creating links (optional)
26+
url: https://github.com/executablebooks/jupyter-book # Online location of your book
27+
path_to_book: docs # Optional path to your book, relative to the repository root
28+
branch: master # Which branch of the repository should be used when creating links (optional)
3629

37-
launch_buttons:
38-
notebook_interface: jupyterlab
39-
colab_url: "https://colab.research.google.com"
30+
# Add GitHub buttons to your book
31+
# See https://jupyterbook.org/customize/config.html#add-a-link-to-your-repository
32+
html:
33+
use_issues_button: true
34+
use_repository_button: true
4035

4136
sphinx:
42-
extra_extensions:
43-
- "sphinx.ext.autodoc"
44-
- "sphinx.ext.autodoc.typehints"
45-
- "sphinx.ext.autosummary"
46-
- "sphinx.ext.napoleon"
47-
- "sphinx.ext.viewcode"
48-
- "matplotlib.sphinxext.plot_directive"
49-
- "sphinx_click"
50-
- "sphinxcontrib.autodoc_pydantic"
5137
config:
52-
#autodoc_typehints: description
53-
autodoc_type_aliases:
54-
"ComponentSpec": "ComponentSpec"
55-
nb_execution_show_tb: True
38+
html_js_files:
39+
- https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js
40+
mime_types:
41+
application/vnd.plotly.v1+json: plotly
5642
nb_custom_formats:
57-
.py:
43+
.Rmd:
44+
- jupytext.reads
45+
- fmt: Rmd
46+
.py: # Add this line to include Python files
5847
- jupytext.reads
5948
- fmt: py

docs/_toc.yml

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,11 @@
22
# Learn more at https://jupyterbook.org/customize/toc.html
33

44
format: jb-book
5-
root: index
6-
parts:
7-
- caption: Quickstart
8-
chapters:
9-
- file: api/00_installation
10-
- file: api/01_quickstart
11-
- caption: Objects
12-
chapters:
13-
- file: api/02_polysurfaces
14-
- file: api/03_prisms
15-
- caption: Meshing
16-
chapters:
17-
- file: api/04_basics
18-
- file: api/05_boundary_conditions
19-
- caption: Reference
20-
chapters:
21-
- file: changelog
5+
root: intro
6+
chapters:
7+
- file: intro_gmsh
8+
- file: polysurfaces
9+
- file: prisms
10+
- file: models
11+
- file: resolution
12+
- file: gdsfactory_interface

docs/api/00_installation.md

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

docs/api/01_quickstart.py

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

docs/api/02_polysurfaces.py

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

0 commit comments

Comments
 (0)