Any member of Learners Guild can contribute to the guide. This document explains how.
Depending on the kind of edit, there are different approaches.
If the edit is about formatting, fixing links, or otherwise improving the form of the content, it is a style edit. If the edit is about changing, removing, or adding to the information contained within the guide, it is a content edit.
Style edits don't need to be approved by anyone - they can be immediately integrated. Content edits should be approved by an LG partner, since they will affect how we work/learn together.
Before learning about how to make edits, let's review the technology used.
The Learner Guide is hosted as a GitHub repository at https://github.com/LearnersGuild/guide. It follows the GitBook format, allowing it to be rendered as a GitBook site at http://guide.learnersguild.org/.
The content stored in the master branch of the guide repo (https://github.com/LearnersGuild/guide/tree/master) is what the GitBook site pulls from. Any changes made to files and folders in this branch will be reflected in the GitBook site.
To make edits, you will need a GitBook account and access to the Learner Guide book on the LearnersGuild GitBook organization.
In order to work effectively with the Learner Guide, it is helpful to have a baseline understanding of GitBook and Markdown (the text format used to write all content in the Learner Guide).
To learn about GitBook, start by reading the following documentation:
Although not absolutely necessary, it is very helpful to have a working understanding of GitHub as well. Here are some good introductory resources to learn about GitHub:
- Complete the "Hello World" tutorial on GitHub guides to develop a basic understanding of how git and GitHub work, and how to work with repositories.
- Watch this video on collaboration with GitHub.
Now you're ready to start editing.
To make a style edit (change formatting, edit link, etc.), follow these steps:
- Go to the Learner Guide GitBook page: https://www.gitbook.com/book/learnersguild/guide/
- Click the "Edit" button
- Use the "Table of Contents" or the "Files Tree" to find the file you want to change
- Click on the desired file to navigate to it
- Make any changes to the file in the left-hand pane
- You can either write in Markdown or use the style buttons in the formatting bar at the top of the editor
- Check your changes in the live-updating rendering of the page on the right-hand pane
- When you have finished your changes, save the document by clicking on the "Save" button in the upper left-hand corner of the editor
- Your changes are now saved and should be visible on the live Learner Guide at http://guide.learnersguild.org/
- If you don't see them right away, wait 10-15 seconds and refresh the page (sometimes it takes a little bit for the server to update)
To edit the content of the Learner Guide, we use GitHub flow.
If any of your edits change the file structure (i.e. adding/removing/changing the name of a file or folder), make sure to update the SUMMARY.md
document. There is even a command to regenerate it: npm run book:summary
.
Distilled, the process looks like this:
- Create a new branch to encapsulate the desired changes
- Make all changes as commits on the new branch
- Run
npm run book:summary
and commit if necessary
- Run
- When the branch is ready to be merged, open a pull request from your branch to the
master
branch - Have at least one another partner review and approve of the changes
- When the changes are approved, merge the pull request