The current docs can be accessed at https://cu-srl.github.io/docs/.
Our documentation system is hosted on GitHub Pages, and uses Markdown files to show content.
To edit the documentations, you may either:
- Clone the git repository these documents are hosted on, and edit using an editor of your choice.
- Edit the docs directly on GitHub, and commit your changes there.
If you're going to be doing a lot of editing, we recommend the first option. Otherwise, click the "Edit" button on the top right of a page to edit it directly on GitHub. You may also add new pages on GitHub itself.
First, you must be added to the Github SRL organization. Get in touch with a team leader to do this.
Next, clone the repository.
For first-time Git users, we recommend you use GitHub Desktop, with an editor of your choice (such as Visual Studio Code).
For command line users, or those who want to familiarize themselves with git, use the following command in a folder of your choice:
git clone [email protected]:CU-SRL/docs.git
then open the documentation in an editor.
Using GitHub Desktop, simply add a change summary, commit, then push to the main
branch.
Using command-line git, navigate to the repository folder, then
git add .
git commit -m "<change description>"
git push origin main
The documentation root looks like this.
book/ The theme and styling of the website itself.
src/ The folder containing site content.
book.toml Backend parameters for the site generator.
Most of the work you'll be doing will be inside the src/
folder.
GitHub has good documentation on working with Markdown, available here.
There is also a guide specific for this book available on the mdBook documentation, with some unique features like strikethrough text and table syntax.
The documentation inside the src/
folder is structured as shown below.
SUMMARY.md
avionics/
- currentprojects/
- currentprojects.md
- testboard.md
- overview/
- images/
- overview.md
- ...
- gettinginvolved.md
All pages are Markdown (.md
) files.
Section headings are folders. Inside each folder, you might find some subheadings. If you want a subheading to be clickable, create that subheading inside its folder (such as overview/overview.md
).
We recommend you explore a bit and get familiarized.
First, create the .md
file for the page you want to create.
Then, create a link to that Markdown file inside the SUMMARY.md
file. Look inside SUMMARY.md
for examples.
Modify the relevant page, and make sure to update SUMMARY.md
accordingly to redo the link to that page.
To add an image to a page, create an images/
folder if it does not already exist, in the same directory as the page you want to add an image to. Copy the image to that images folder.
Then, inside the .md
file, use Markdown image syntax to link to it. Links are relative, so use images/your-image.png
for the link.
If you want to resize your image, use the following syntax instead:
<img src="images/your-image.png" width="150" height="280">