Skip to content

Commit 0a8fc51

Browse files
committed
docs: add notebooks to sphinx docs
1 parent 89e96bc commit 0a8fc51

File tree

7 files changed

+530
-10
lines changed

7 files changed

+530
-10
lines changed

.github/workflows/documentation.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Install dependencies
1616
run: |
1717
python -m pip install --upgrade pip
18-
pip install sphinx furo sphinx-copybutton sphinxext-opengraph myst-parser autodoc_pydantic
18+
pip install sphinx furo sphinx-copybutton sphinxext-opengraph myst-parser autodoc_pydantic nbsphinx
1919
sudo apt-get install pandoc
2020
- name: Build and Commit
2121
uses: sphinx-notes/pages@master

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"sphinx_copybutton",
2828
"sphinx.ext.githubpages",
2929
"sphinxcontrib.autodoc_pydantic",
30+
"nbsphinx",
3031
"myst_parser"
3132
]
3233
autoclass_content = 'both'

docs/faq.rst

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

docs/index.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,16 @@ Content
2323
:caption: Getting started
2424

2525
installation
26-
concepts
27-
faq
26+
tutorials/Training
27+
tutorials/Distillation
2828

2929

3030
.. toctree::
3131
:maxdepth: 1
3232
:caption: Bertsqueeze
3333

3434
overview
35+
concepts
3536
assistants
3637
distillation
3738
models
@@ -40,7 +41,7 @@ Content
4041
:maxdepth: 2
4142
:caption: API References
4243

43-
api`
44+
api
4445
GitHub Repository <https://github.com/JulesBelveze/bert-squeeze>
4546

4647

docs/tutorials/Training.ipynb

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,15 @@
55
"id": "fa3659b8",
66
"metadata": {},
77
"source": [
8-
"# Training a simple Transformer model"
8+
"# Training"
9+
]
10+
},
11+
{
12+
"cell_type": "markdown",
13+
"id": "8f9ffc79",
14+
"metadata": {},
15+
"source": [
16+
"## Training a simple Transformer model"
917
]
1018
},
1119
{
@@ -277,7 +285,7 @@
277285
"id": "0730f674",
278286
"metadata": {},
279287
"source": [
280-
"# Training FastBert"
288+
"## Training FastBert"
281289
]
282290
},
283291
{
@@ -428,7 +436,7 @@
428436
"id": "d24a3a27",
429437
"metadata": {},
430438
"source": [
431-
"# Training TheseusBert"
439+
"## Training TheseusBert"
432440
]
433441
},
434442
{

poetry.lock

Lines changed: 512 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ autodoc-pydantic = "^1.8.0"
4444
sphinxext-opengraph = "^0.8.2"
4545
sphinx-copybutton = "^0.5.2"
4646
myst-parser = "^1.0.0"
47+
nbsphinx = "^0.9.2"
4748

4849
[tool.poetry.group.dev]
4950
optional = true

0 commit comments

Comments
 (0)