Use these guidelines to contribute to the DC/OS documentation:
-
Create a new issue in this repo (
dcos-docs) and label it with the type of documentation that you're writing. For example, tutorial. -
Fork this repo,
dcos-docs(you only have to do this once). -
Create your content.
- To create a single page:
-
Create a markdown file
{post_slug}.mdwherepost_slugis your file name. File names become URIs. If you want this page to be a child of another page, place the.mdfile in the parent folder. -
Add your page content, including the required metadata (
post_title,nav_title,menu_order). Do not include any other metadata.``` --- post_title: The Title nav_title: The Title menu_order: 1 --- Post markdown goes here. ```
-
- To create a page with hierarchy:
-
Create a new directory in the appropriate location of the correctly versioned release (e.g.
/1.7/foo) and a child page within this folder namedindex.md(e.g./1.7/foo/index.md). The actual URL of your page will be/1.7/foo/, not/1.7/foo/index. For example, if it's a tutorial for 1.7, create a new directory here/1.7/usage/tutorials/foo/. -
Add your page content, including the required metadata (
post_title,nav_title,menu_order). Do not include any other metadata.``` --- post_title: The Title nav_title: The Title menu_order: 1 --- Post markdown goes here. ```
-
Tip: There are templates available for some content types. For example, if it's a tutorial you can copy templates/tutorial.md into
foo/and rename it tofoo/index.md. Adapt the sections in your newfoo/index.mdto the specifics of your content. - To create a single page:
-
Add images in a child
foo/img/directory. -
Include all required assets in your
/foodirectory, for example, Marathon app spec, JSON docs, or a Dockerfile. -
When you're done, submit a pull request to the original repo,
dcos-docs. -
For all contributions that include hands-on instructions, such as found in
usage/oradministration/, the community managers will test-drive and validate before merging. They might come back to you asking you to fix things. All communication strictly via your pull request on GitHub.
If you're unsure about what exactly should go into the tutorial, you can always check out spark/ for reference.