This is the source code of the web page for the technical documentation of SEMA. It's hosted on Github and it's located here.
First of all, we would like to thank you very much for wanting to contribute to this documentation. We really appreciate any type of support.
The easiest way to contribute to this doc is to edit an existing page. All you have to do is to click on the pencil icon at the top right of the content of a section. See the following picture:
It will link you to a Github page where you can directy edit the source of the section you were in. Follow the instructions on that page to send a pull request.
But if you're going to add new pages and do more advanced stuffs, keep reading.
- Install MkDocs: Follow the installation instructions
- Fork this repo
- Clone your forked repo:
git clone [email protected]:YOUR-GITHUB-USERNAME/sema-docs.git
- Get into your project directory:
cd sema-docs
- Run the documentation in development mode - MkDocs will run it on a local server and everytime you save a change to a file, the web page will refresh on its own:
mkdocs serve
- Copy and go to the
localhost:PORT-NUMBER
page from the output of the above command
- Add the original repo - from Untapped - as an upstream remote:
git remote add upstream [email protected]:untapped-inc/sema-docs.git
- Pull all changes from upstream, just in case:
git pull upstream master
- Create a new branch for your changes - change
<new-branch-name>
to anything meaningful for your changes:git checkout -b <new-branch-name>
- Open the
docs
directory in your favorite text editor - Make changes to the appropriate files - See the Formatting section below
- Test your changes from the local dev page - See the section above
- Stage and commit files
- Push to your branch on your
origin
remote -<new-branch-name>
being the branch you created earlier:git push origin <new-branch-name>
- Go to your Github repo from your browser
- You'll notice the Github notification that suggests you to make a pull request from your last branch push. If you don't, change the branch from the
Branch
dropdown and you'll definitely see it from there - Wait for a core team member to review and/or approve your PR.
It's important that your changes reflect the content formatting standard that we've set. Our core team will let you know of any missing details from your Pull Request through a Change Request
or a simple comment. Sometimes, we might even just make the changes and push to your branch so we can complete your PR.
It's easy to follow our standards, simply go to the source of any of the current pages that have the formatting that you want. You'll see how we did it and you can simply copy and paste from it.
If you want to do some more advanced stuffs, check out what the MkDocs theme we're using has to offer:
- Getting Started with MkDocs and the Material Theme
- Basics of formatting
- Theme customization
- Documentation for the plugins that we're currently using:
- All the configurations are handled through the
mkdocs.yml
file. This is also where the navigation menu is handled. - The
docs
directory contains all the pages. They are all in Markdown. All the directories and files have self explanatory names. - The intro page is at
docs/index.md
docs/assets
contains assets like images, extra CSS and extra JS - check theextra_css
option from themkdocs.yml
file.- The
theme
directory is a way MkDocs provides to overwrite a part of the theme you're using.
Once you're done writing docs and you have admin rights on the repository, simply call mkdocs gh-deploy
in the root directory of the project and it will build and deploy your changes to your project Github pages. In our case, that's https://untapped-inc.github.io/sema-docs/