Update 006.md

This commit is contained in:
Katia Gatt 2025-05-13 09:28:22 +02:00
parent 8808d2ff09
commit 7478b4ccf8

View file

@ -2,9 +2,9 @@
So far, you've been working inside your own book. But what if someone else has already written a page that you'd like to reuse or refer to in your own book? Instead of copying the content manually, you can **link to their page directly** using [TeachBooks’ external content feature](https://teachbooks.io/manual/features/external_toc.html). This way, if the original page is updated, your book will reflect those changes automatically!
\::::::{topic} Exercise objective
::::::{topic} Exercise objective
Can you include a page from someone else’s book into your own using the `external` keyword?
\::::::
::::::
1. Choose a book you want to reuse content from. For this exercise, you can use this one as an example: `https://github.com/TeachBooks/manual`. Browse its content to find a specific page (e.g. `intro.md`).
2. In your own book repository, open the `_toc.yml` file. This controls which pages are shown in your book and in what order.
@ -41,7 +41,7 @@ parts:
* You’ve committed and pushed the `_toc.yml` change.
\`\`\`{admonition} Example `_toc.yml` snippet
````{admonition} Example `_toc.yml` snippet
```yaml
format: jb-book
@ -60,7 +60,7 @@ chapters:
```{tip}
You can use external pages from public GitHub repositories that are formatted as valid Markdown. Just remember: the content is *read-only*—you can’t directly edit the external page from your book!
````
```
```{admonition} Check your understanding
:class: note