mirror of
https://github.com/TeachBooks/manual.git
synced 2026-11-13 23:05:51 +00:00
Last commit for today!
This commit is contained in:
parent
e60a13d04a
commit
4b4425f3b7
16 changed files with 214 additions and 285 deletions
|
|
@ -46,7 +46,7 @@ The circled menu is the branch selection menu.
|
|||
`````
|
||||
``````
|
||||
|
||||
``````{tab-item} User type 4, 5 and 6
|
||||
``````{tab-item} User type 4 and 5
|
||||
|
||||
### Obtain newest version from online repository
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
```{admonition} User types
|
||||
:class: tip
|
||||
This page is useful for user type 3-6.
|
||||
This page is useful for user type 3, 4 and 5.
|
||||
```
|
||||
|
||||
A jupyter book is composed out of many files which contain the educational content produced by you. Through the use of branches it is possible to work on the book at the same time as your team-members. Working on content for the book is mainly individual work, the beauty of git comes in when everybody's changes are merged into the main branch.
|
||||
|
|
@ -16,22 +16,22 @@ The steps involved are as follows:
|
|||
4. Edit the book by:
|
||||
`````{tab-set}
|
||||
````{tab-item} User type 3
|
||||
- Make changes to your file
|
||||
- Commit a changes
|
||||
- Add or make changes to a file
|
||||
- Share changes with others in Git-timeline
|
||||
````
|
||||
````{tab-item} User type 4
|
||||
- Pulling remote changes from others
|
||||
- Make changes to your file
|
||||
- Saving / Staging your changes
|
||||
- Commit a collection of changes
|
||||
- Eventually solve issues with combining versions
|
||||
- Add or make changes to a file(s)
|
||||
- Select files ready to be added to Git-Timeline
|
||||
- Share changes with others in Git-timeline
|
||||
- Pushing your changes
|
||||
````
|
||||
````{tab-item} User type 5 and 6
|
||||
- Pulling remote changes from others
|
||||
- Make changes to your file
|
||||
- Saving / Staging your changes
|
||||
- Check changes locally
|
||||
- Commit a collection of changes
|
||||
````{tab-item} User type 5
|
||||
- Eventually solve issues with combining versions
|
||||
- Add or make changes to a file(s)
|
||||
- Select files ready to be added to Git-Timeline
|
||||
- Check changes in book locally
|
||||
- Share changes with others in Git-timeline
|
||||
- If working on a repository locally: pushing your changes
|
||||
````
|
||||
`````
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
Suppose we are writing a new chapter, or are updating an existing chapter for our Jupyter Book. We've created a new branch on which we are going to make the changes.
|
||||
|
||||
## Make changes to your file
|
||||
## Add or make changes to a file(s)
|
||||
```````{tab-set}
|
||||
``````{tab-item} User type 3
|
||||
|
||||
|
|
@ -13,7 +13,7 @@ or add new file by text or upload
|
|||
```
|
||||
|
||||
``````
|
||||
``````{tab-item} User type 4, 5 and 6
|
||||
``````{tab-item} User type 4 and 5
|
||||
|
||||
### Eventually solve issues with combining versions
|
||||
First make sure you update your branch so that you've the most up-to-date version. If you collaborate on this branch, you get the updates from your colleagues as well. This might lead into a merge conflict. How to solve that?
|
||||
|
|
@ -64,18 +64,13 @@ The staging GitHub Desktop assumes you want to stage all files. You can unselect
|
|||
``````
|
||||
```````
|
||||
|
||||
## Review changes in book locally
|
||||
## Check changes in book locally
|
||||
```````{tab-set}
|
||||
``````{tab-item} User type 3 and 4
|
||||
Not possible, unless you want to be a user type 5. Otherwise you'll see your changes later on online.
|
||||
``````
|
||||
``````{tab-item} User type 5
|
||||
build book locally ...
|
||||
```{error} To be written
|
||||
```
|
||||
``````
|
||||
``````{tab-item} User type 6
|
||||
build book locally and startup python server...
|
||||
build book locally and eventually startup python server...
|
||||
```{error} To be written
|
||||
```
|
||||
``````
|
||||
|
|
@ -98,7 +93,9 @@ click commit in single text editor ...
|
|||
````
|
||||
|
||||
``````
|
||||
``````{tab-item} User type 4, 5 and 6
|
||||
``````{tab-item} User type 4 and 5
|
||||
|
||||
Now we're going the share our changes in the Git-timeline with a *commit* and to *push* our changes to the *remote* repository (the one that is on the TU Delft GitLab/GitHub), so that others can see our changes and interact with them.
|
||||
|
||||
`````{tab-set}
|
||||
````{tab-item} Using Git in VS Code
|
||||
|
|
@ -124,23 +121,5 @@ After committing, click the 🔄 button to push our changes to the remote reposi
|
|||
|
||||
````
|
||||
`````
|
||||
Are we done now? Yes, if you've made all your changes on GitLab / GitHub. However, no! if you did that locally! Up to now, we have only made changes and committed to the *local* copy of the repository. We still need to *push* our changes to the *remote* repository (the one that is on the TU Delft GitLab), so that others can see our changes and interact with them.
|
||||
|
||||
`````{tab-set}
|
||||
````{tab-item} Using Git in VS Code
|
||||
|
||||
In the bottom left corner, next to the branch name, click the "Synchronize Changes" button (the one that looks like this: 🔄, highlighted in the image below) to push the changes to GitLab.
|
||||
|
||||
```{figure} ../images/git-push.png
|
||||
|
||||
After committing, click the 🔄 button to push our changes to the remote repository.
|
||||
|
||||
````
|
||||
````{tab-item} Using GitHub Desktop
|
||||
...
|
||||
|
||||
````
|
||||
`````
|
||||
|
||||
``````
|
||||
```````
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
# Your first TeachBook using template
|
||||
# Your first TeachBook using the template
|
||||
|
||||
```{admonition} User types
|
||||
:class: tip
|
||||
This page is useful for user type 3-6.
|
||||
This page is useful for user type 3, 4 and 5.
|
||||
```
|
||||
|
||||
This page shows you how as an example how to start your own Jupyter Book and hosting that book online. It doesn't elaborate on the collaborative functionalities of Git or how to edit the book.
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ Find your file on GitLab/GitHub ...
|
|||
|
||||
``````
|
||||
|
||||
``````{tab-item} User type 4, 5 and 6
|
||||
``````{tab-item} User type 4 and 5
|
||||
|
||||
## Find source in online repository
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue