description | title | hide_from_sitemap | toc_min | toc_max | beta | deprecated | changefreq | seo-priority | layout | redirect_from | published | ||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Smoketest page |
Testing page |
true |
1 |
2 |
true |
true |
daily |
1.0 |
page |
|
false |
note "This is a note" Some note text foo bar baz
We hope you like their pie.
Welcome to the documentation test page!
This is a demo of components, tags, styles, tools, and strategies we use for the
docs. We explain the code behind the published page and demo the effects. So, if
you want to see, for example, how admonitions and notes are coded in markdown,
read the section on Admonitions (notes) on the web
published page and study the pre-processed test.md
to see how they are
implemented. The Docker documentation team uses this page as "note to self"
reminders. Since we invite docs suggestions and contributions from the
community, we've always made the test page generally available.
If you want to understand how something in the docs is coded, use this page is as a resource.
If, in the course of making docs updates and suggestions, you develop a new strategy or component for the docs, feel free to add a demo and explanation to this test page and submit a PR for it so we can review and discuss it.
Cool? Let's dive in!
Our pages use the H1 heading for the Title of the page, as set in the title:
frontmatter. It's included in this page just so you can see and test the formatting. :)
via
We have included it here to show all heading levels, and
set front matter as toc_min: 1
so that it shows in the navigation bar (on-page
topics).
By default, this is the highest heading included in the right navigation bar. To
include more heading levels, set toc_min: 1
in the page's front-matter (as is
done on this test.md
page). You can go all the way to 6, but if toc_min
is
geater than toc_max
then no headings are shown.
This is the lowest heading included in the right-nav, by default. To include
more heading levels, set toc_max: 4
in the page's front-matter. You can go all
the way to 6.
This heading is not included in the right-nav. To include it set toc_max: 4
in
the page's front-matter.
This heading is not included in the right-nav. To include it set toc_max: 5
in
the page's front-matter.
This is probably too many headings. Try to avoid it.
This heading is not included in the right-nav. To include it set toc_max: 6
in
the page's front-matter.
Plain block of text.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Inline text styles:
- bold
- italic
- bold italic
strikethrough- underline
- underline italic
- underline bold
- underline bold italic
monospace text
monospace bold
-
a markdown link https://github.com/docker/docker.github.io/tree/master/docker-cloud/images
-
a markdown link that opens in a new window{: target="blank" class="" } (the
class="_"
trick prevents Atom from italicizing the whole rest of the file until it encounters another underscore.)
-
A small cute image that is a link. The extra newline here makes it not show inline:
Some Bootstrap image classes might be interesting. You can use them with Markdown or HTML images.
You can add a link to a YouTube video like this:
Drop Events using Destination Filters{:target="blank" class=""}
- Bullet list item 1
- Bullet list item 2
- Bullet list item 3
-
Numbered list item 1. Two spaces between the period and the first letter helps with alignment.
-
Numbered list item 2. Let's put a note in it.
Note: We did it!
-
Numbered list item 3 with a code block in it. You need the blank line before the code block happens.
$ docker run hello-world
-
Numbered list item 4 with a bullet list inside it and a numbered list inside that.
- Sub-item 1
- Sub-item 2
-
Sub-sub-item 1
-
Sub-sub-item-2 with a table inside it because we like to party! Indentation is super important.
Header 1 Header 2 Thing 1 Thing 2 Thing 3 Thing 4
-
Some tables in markdown and html.
Permission level | Access |
---|---|
Bold or italic within a table cell. Next cell is empty on purpose. | |
Previous cell is empty. A --flag in mono text. |
|
Read | Pull |
Read/Write | Pull, push |
Admin | All of the above, plus update description, create and delete |
The alignment of the cells in the source doesn't really matter. The ending pipe character is optional (unless the last cell is supposed to be empty). The header row and separator row are optional.
If you need block-level HTML within your table cells, such as multiple
paragraphs, lists, sub-tables, etc, then you need to make a HTML table.
This is also the case if you need to use rowspans or colspans. Try to avoid
setting styles directly on your tables! If you set the width on a <td>
, you
only need to do it on the first one. If you have a <th>
, set it there.
Note: If you need to have markdown in a HTML table, add
markdown="span"
to the HTML for the<td>
cells that contain the Markdown.
Left channel | Right channel |
---|---|
This is some test text. This is more text on a new line. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. |
This is some more text about the right hand side. There is a link here to the Docker Experimental Features README on GitHub. In tables, links need to be ``. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. |
You can use span-level HTML tags within Markdown.
You can use a <br />
tag to impose an extra newline like here:
You can use entities like
to keep a bunch of words together .
Keep reading for more examples, such as creating tabbed content within the page or displaying content as "cards".
You can tell Rouge how to style your code block with a "cue". If you leave off the cue, it tries to guess and usually gets it wrong. These are just a few of the available cues.
The raw markup is needed to keep Liquid from interpreting the things with double braces as templating language.
{% raw %}
none with raw
$ some command with {{double braces}}
$ some other command
{% endraw %}
{% raw %}
bash with raw
$ some command with {{double braces}}
$ some other command
{% endraw %}
$ echo "deb https://packages.docker.com/1.12/apt/repo ubuntu-trusty main" | sudo tee /etc/apt/sources.list.d/docker.list
incoming := map[string]interface{}{
"asdf": 1,
"qwer": []interface{}{},
"zxcv": []interface{}{
map[string]interface{}{},
true,
int(1e9),
"tyui",
},
}