Skip to content

Commit

Permalink
citations --> topics
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom-van-Woudenberg committed Jan 26, 2025
1 parent 952176e commit 9839e85
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
4 changes: 3 additions & 1 deletion book/exercises/001.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

Let's start with the most basic edit: add some text to a file and see that the website is updated.

> Can you add some content to the intro page?
::::::{topic}
Can you add some content to the intro page?
::::::

1. Go to the the file `book/intro.md` on your GitHub repository (`https://github.com/<your_username>/<your_repo_name>`) - {octicon}`code;1em` `Code` - `Book` - `intro.md` - {octicon}`pencil;1em` `Edit this file`
2. Add some text. Feeling brave? Have a look at the [MyST cheat sheet](https://jupyterbook.org/en/stable/reference/cheatsheet.html). Don't worry if that feels daunting, there will be exercises on this!
Expand Down
4 changes: 3 additions & 1 deletion book/exercises/002.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

Let's continue by adding one additional step. Let's add a file to the table of contents! the `_toc.yml` contains a list of all the files to be shown in your book-website. Let's add a file which is not in the table of contents yet!

> Can you add the file named `file_to_be_added_to_toc.md` to the book website?
::::::{topic}
Can you add the file named `file_to_be_added_to_toc.md` to the book website?
::::::

1. Go to the {octicon}`code;1em` `Code` - `Book` directory of your GitHub repository and find the location of `file_to_be_added_to_toc.md`
2. Go to the the file `book/_toc.yml` on your GitHub repository - {octicon}`code;1em` `Code` - `Book` - `_toc.yml` - {octicon}`pencil;1em` `Edit this file`
Expand Down
4 changes: 3 additions & 1 deletion book/exercises/003.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

As we've added some content by now, let's make this book a bit more personal! We'll make some changes to the `_config.yml` file which changes the configuration of the book website.

> Can you edit the repository url defined in the `_config.yml`, change the title shown below the logo and change the author as shown in the footer?
::::::{topic}
Can you edit the repository url defined in the `_config.yml`, change the title shown below the logo and change the author as shown in the footer?
::::::

1. Go to the the file `book/_config.yml` on your GitHub repository - {octicon}`code;1em` `Code` - `Book` - `_config.yml` - {octicon}`pencil;1em` `Edit this file`
2. In the `Edit` field, change the author which will be shown in the footer of the book website.
Expand Down
4 changes: 3 additions & 1 deletion book/exercises/004.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

By now, we've covered the essentials: content files, `_toc.yml` and `_config.yml`. But what if you want to make some changes but don't want to share them directly with the general public of your book website? Or what if you have some work-in-progress that you want to share with colleagues? You need a version of your book! Let's try and do that! Later on, you'll probably want to merge your newest version back into the original book. That's what we'll do in [](./005.md).

> Can you make a new branch of your book with an additional file `file_on_new_version.md` and view it online?
::::::{topic}
Can you make a new branch of your book with an additional file `file_on_new_version.md` and view it online?
::::::

1. Add a new Issue to let people know you're working on something by going to your repository - {octicon}`issue-opened;1em` `Issues` - `New issue` (note that is not required for making your own version, but it's good practice so that people know where you're working on)
2. Add a title and description, eg. `Added some content`
Expand Down
4 changes: 3 additions & 1 deletion book/exercises/005.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

In [](./004.md) you created your own version of a book. But it would be a pity if you never contribute back to the original book right? Probably your additions are very useful there too! You'll merge you version of the book which is stored on a branch into the original book which is on main. If there've been some changes on that main branch in the meantime, git will take care of that!

> Can you merge your branch into `main` with a pull request?
::::::{topic}
Can you merge your branch into `main` with a pull request?
::::::

1. Go to your repository homepage. Probably, it will have big yellow announcement saying {octicon}`git-branch;1em` `1-<your_issue_title> had recent pushes <some> minutes ago - Compare & Pull request`. We'll ignore that for now and do it manually.
2. Go to the pull request page on your repository homepage - {octicon}`git-pull-request;1em` and click `New pull request`
Expand Down
4 changes: 3 additions & 1 deletion book/exercises/006.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ So far you did everything on your own, within a single repository. However, book
The fork-pull request workflow is very common in open-source projects. It allows people to work independently without asking for access or worrying about affecting the original source code, as well as give the original author of the code a clear way to review the changes and decide if they want to include them in the original repository.
```

> Can you fork a book repository of someone else, make changes and contribute back?
::::::{topic}
Can you fork a book repository of someone else, make changes and contribute back?
::::::

```{tip}
This part describes how you can make a change in the book of someone else.
Expand Down

0 comments on commit 9839e85

Please sign in to comment.