From 7478b4ccf843418971551c2fd6de32376d1633e7 Mon Sep 17 00:00:00 2001 From: Katia Gatt Date: Tue, 13 May 2025 09:28:22 +0200 Subject: [PATCH] Update 006.md --- book/exercises/006.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/book/exercises/006.md b/book/exercises/006.md index 3dda89f..658738c 100644 --- a/book/exercises/006.md +++ b/book/exercises/006.md @@ -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