Closed virgilwashere closed 5 years ago
This repository serves as the source code for the Mautic documentation Gitbook published at www.mautic.org/docs. The source code is shared here on GitHub so anyone can contribute to the documentation in the same way the programmers do with the actual Mautic code.
git
Why is git
used for the documentation :question:
versions - anyone can go back and look at what the text looked like.
authorship - not only every file, but every line has its author.
community contributions - no need to worry about deleting someone else's work while working on the same document.
Although some git
knowledge is required to clone, modify, commit and push changes, there is a way to avoid that and edit the files directly in the GitHub web interface. If you know git
, use the workflow you like. If not, the following guide will show you how to contribute easily.
base fork: mautic/documentation
with base: master
In the command line cd
to where you want the documentation repository located
Clone this repository
git clone https://github.com/mautic/documentation.git --origin upstream
Fork this repository at GitHub or use hub
hub fork --remote-name origin
Once cloning has completed, open the project in your editor of choice
Create a new branch for your edits. Please name your branch something descriptive like {yourusername}-revision-readme-file
git checkout -b {yourusername}-revision-readme-file upstream/master
Commit your changes to your local repository
Push to origin
git push origin
Submit your pull request to base fork: mautic/documentation
and base: master
at GitHub or use hub
hub pull-request
If you're unfamiliar with the command line but still want to contribute to the Mautic documentation
Using README.md as an example:
{yourusername}-revision-readme-file
The README.md file is serves as the introduction and description of this repository. This file does not contain any documentation.
The SUMMARY.md file defines the menu of the documentation. If you add a new page to the documentation, you'll have to also add a new line there defining the title and the link to the file (formatted like the existing menu items).
The folders in this repository are grouped together by topic. For example, within the asset folder, you'll see it has its own README.md file which contains the primary description of the Asset menu; the manage_assets.md file is a subitem; the media subfolder contains all the images used in the .md files.
Often you'll want to make a link to another place in the documentation. In Markdown, the link looks like this:
[link title](http://example.com)
This will create an external link with absolute URL. If you want to create an internal link, use a relative URL like this:
[these steps](./../plugins/integration_test.html)
This will link to plugins/integration_test.html
on the documentation website created from the .md source file.
Images can be placed in the media subfolders in the different sections of this repository. For images that cannot be uploaded via the GitHub web interface, upload them to any public URL service and use the generated link.
![alternative text here](http://example.com/images/apple.png "Tooltip text here")
Or, if you want to display an image already uploaded to the documentation repository, you can use a relative path:
![alternative text here](/assets/media/assets-newcategory.png "Tooltip text here")
Please use example.com
as the reference domain for documentation.
https://example.com
https://mautic.example.com
https://example.com/mautic
Use the https://
protocol in documentation. We want to promote good practices.
https://example.com
If you need to show both protocols, add brackets around the (s)
http(s)://example.com
:construction: Work in Progress
Use #351
use #351