In this repo you will find all the content from the Clever Cloud Doc.
As this documentation is open for content contribution, any helpful pull-request will be merged.
You can either make a pull-request OR submit a content via the Contribute button here: https://www.clever-cloud.com/doc
Each page begins with a YAML section used for metadata, and the rest of the article is written in markdown. Make sure to reduce inline HTML to the maximum, although it is needed for some table formatting.
H1 of the article page.The first header in your content should be a H2, as the H1 will be used by the title variable in the YAML section.
You can add an optional language identifier to enable syntax highlighting in your fenced code block.
For example, to syntax highlight Ruby code:
require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html
We use highlightjs to perform language detection and syntax highlighting. You can find out which keywords are valid here.
Partials are located under the partial folder at the root of this project. They are written in Markdown.
Partials are called using the following shortcode:
{{< readfile "/path/to/partial/from/root/of/project.md" >}}
You may want to display different chunks of partial content depending on which page you are working on.
This is achieved by creating two things:
@@addon-name@str_replace_dict in the front matter section and add to it the matching placeholder word and their replacements.str_replace_dict:
"@addon-name@": "my addon name"
"@another-variable@": "other variable replacement str"
Notes:
str_replace_dict also.partial/mypartial.md
Text @addon-name@ holding two codes @addon-name@.
folder/file.md
---
...
str_replace_dict:
"@addon-name@": "PostgreSQL"
"@addon-name@": "PostgreSQL"
---
Output: Text PostgreSQL holding two codes PostgreSQL.
Clever Cloud Doc by Clever Cloud is licensed under a Creative Commons Attribution 4.0 International License.
Based on a work at https://www.clever-cloud.com/doc.
We use cookies
We use cookies to analyze traffic and improve your experience. You can accept or reject analytics cookies.