mirror of
https://github.com/TeachBooks/manual.git
synced 2026-11-12 22:35:51 +00:00
Update file jupyterbook.md
This commit is contained in:
parent
3d0866a85f
commit
cc93667296
1 changed files with 23 additions and 0 deletions
|
|
@ -111,4 +111,27 @@ parts:
|
|||
sections:
|
||||
- file: section_1_1
|
||||
- file: section_1_2
|
||||
```
|
||||
|
||||
## Including a chapter twice
|
||||
In some cases you want to include the same chapter in two different places in your book (for instance parts). However, you do not want to make the same adjustments in different files, the content should only 'live' in one place. The solution is to use `include`:
|
||||
|
||||
``` {code-cell}
|
||||
|
||||
```{include} Argument
|
||||
```
|
||||
|
||||
```
|
||||
|
||||
The *argument* in this case is the location of the file you want to include (for instance: /book/1 mechanics/1H newton 3/demo1.md).
|
||||
|
||||
```{Note}
|
||||
Make sure to adjust your config file:
|
||||
sphinx:
|
||||
config:
|
||||
myst_enable_extensions:
|
||||
- include
|
||||
```
|
||||
|
||||
```{include} /book/basic-features/equations.md
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue