Editing the documentation ↩
- Documentation folder structure
- Editing content with Git
- Editing content with the GitLab web interface
- Review and merge
The RoboFont documentation is open-source, and is hosted on Gitlab. Users familiar with Git-based workflows can fork the repository, make changes, and submit a pull request.
You’ll need to create an account on GitLab.
Documentation folder structure
The documentation is a large project with many files and folders, so at first it may be difficult to find what you’re looking for.
This is the main folder structure of the project:
robofont_com │ ├── _data ├── _documentation │ ├── Topics │ ├── Tutorials │ │ └── python │ ├── How To’s │ └── Reference │ ├── extensions │ ├── workspace │ └── api ├── _sass ├── assets │ └── code ├── images └── style.scss
* only relevant files & folders shown
And here are some notes about what you can find in each folder:
file or folder | description |
---|---|
_data |
Contains structured data in For example:
|
_documentation |
Contains all markdown sources for the documentation. Each subfolder corresponds to a chapter. The largest chapter, Building Tools, is further subdivided into subchapters and sections. |
_sass |
Contains
|
assets/code |
Contains downloadable code examples, organized into subfolders. Code examples are included into pages with the |
images |
Contains images used in the documentation and website, organized into subfolders. Images are included into pages with the |
style.scss |
The full stylesheet for the website and documentation, importing variables and modules contained in the |
Editing content with Git
-
Fork the robofont_com repository (use the Fork button on the project’s homepage).
-
Make a local copy of your fork:
cd /path/to/folder/ git clone git@gitlab.com:myusername/robofont_com.git
-
Make changes to existing files or add new files.
If you have Jekyll installed, you can preview your changes locally in your browser. See Previewing the documentation locally.
The styles test page gives an overview of the available formatting styles and their syntax.
-
When you’re done, commit your changes to your repository:
git add --all git commit -m "fixing typo in Editing the Docs" git push
-
Submit your changes to the main
robofont_com
repository.Use the sidebar menu to go to Merge Requests, and choose New merge request.
Select your repository as the source branch, and
typemytype/robofont_com
(master) as the target repository. Click on Compare branches and continue.Add a title and description to your merge request, and click on Submit merge request when you’re finished.
Editing content with the GitLab web interface
If you are not comfortable with using Git from the command-line, you can perform the same tasks using GitLab’s web interface.
-
Fork the robofont_com repository (use the Fork button on the project’s homepage).
-
Navigate through the projects’s folders and go to the the file you wish to edit.
The document you are reading now, for example, is the file
/_documentation/how-tos/editing-the-docs.md
. -
Click on the Edit button at the top right of the file header. This will open a simple code editor, which you can use to edit the document’s markdown source code.
Don’t forget to include a clear and concise commit message about your changes.
When you’re finished, use Commit Changes button to store the new version of the document in your repository.
-
Submit a merge request via GitLab (see step 5 in the above section).
Review and merge
Your merge request will be reviewed, and if the changes are approved, your commit will be merged into the main repository. The RoboFont website is updated automatically within a few minutes.
Content in the RoboFont repository is licensed under the MIT License. By submitting content to the repository you accept to distribute your contribution under the same license.