mirror of
https://github.com/TeachBooks/template.git
synced 2026-11-12 22:25:52 +00:00
fix toc
This commit is contained in:
parent
219a587a03
commit
f88cac7733
2 changed files with 29 additions and 2 deletions
|
|
@ -8,7 +8,6 @@ parts:
|
|||
sections:
|
||||
- file: some_content/text_and_code.ipynb
|
||||
- file: exercises
|
||||
caption: Beginner exercises
|
||||
sections:
|
||||
- file: exercises/001.md
|
||||
- file: exercises/002.md
|
||||
|
|
@ -18,7 +17,6 @@ parts:
|
|||
- file: exercises/006.md
|
||||
- file: exercises/summary
|
||||
- file: advances_exercises.md
|
||||
caption: Advanced exercises
|
||||
sections:
|
||||
- file: user_type_3.md
|
||||
sections:
|
||||
|
|
|
|||
|
|
@ -0,0 +1,29 @@
|
|||
# Exercise 8: Add a figure/gif/video
|
||||
|
||||
Now let's add a figure. If you want to add a figure/gif/video to you book, you can refer to another website. This is quite handy for video's but it does carry the risk that this figure/gif/video will no longer be visible if the location is changed.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
So it is better to add the source directly to the book. So you first need to upload a figure to GitHub and then reference that figure in our file. (Note: later this becomes much easier).
|
||||
|
||||
|
||||
```{figure} figures/HubUser3_EditFile2.PNG
|
||||
---
|
||||
width: 80%
|
||||
align: center
|
||||
---
|
||||
Commit changes
|
||||
```
|
||||
|
||||
6. In case you added a new file, you also need to include it table of contents of your book! The table of contents is specified in a file called `toc.yml` and it is already included in your repository if you used the teachbooks template. You can edit it and commit the changes in the same manner as with markdown `(file.md)` files.
|
||||
|
||||
```{figure} figures/HubUser3_toc.PNG
|
||||
---
|
||||
width: 80%
|
||||
align: center
|
||||
---
|
||||
Table of contents
|
||||
```
|
||||
````
|
||||
Loading…
Add table
Add a link
Reference in a new issue