From 81e97e5d9a606c26ff33eb597f30945389aece79 Mon Sep 17 00:00:00 2001 From: Allie Sadler <102604716+aevesdocker@users.noreply.github.com> Date: Wed, 5 Oct 2022 17:47:30 +0100 Subject: [PATCH 1/2] contribute-addition and toc fix --- contribute/components/tables.md | 36 +++++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/contribute/components/tables.md b/contribute/components/tables.md index 5109ea5d8d47..1049604ae122 100644 --- a/contribute/components/tables.md +++ b/contribute/components/tables.md @@ -6,6 +6,8 @@ toc_max: 3 ## Example +### Basic table + | Permission level | Access | |:-------------------------------------------------------------------------|:-------------------------------------------------------------| | **Bold** or _italic_ within a table cell. Next cell is empty on purpose. | | @@ -14,8 +16,21 @@ toc_max: 3 | Read/Write | Pull, push | | Admin | All of the above, plus update description, create, and delete | +### Feature-support table + +{% assign yes = '![yes](/assets/images/green-check.svg){: .inline style="height: 14px; margin: 0 auto"}' %} + +| Platform | x86_64 / amd64 | +|:------------------------|:-----------------------| +| Ubuntu | {{ yes }} | +| Debian | {{ yes }} | +| Fedora | {{ yes }} | + + ## Markdown +### Basic table + ``` | Permission level | Access | |:-------------------------------------------------------------------------|:-------------------------------------------------------------| @@ -25,7 +40,24 @@ toc_max: 3 | 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. \ No newline at end of file +row and separator row are optional. + +### Feature-support table + +Before you add the table you need to add: + +{% highlight liquid %} +{% raw %} {% assign yes = '![yes](/assets/images/green-check.svg){% endraw %}{% raw %}{: .inline style="height: 14px; margin: 0 auto"}' %}{% endraw %} +{% endhighlight %} + +``` +| Platform | x86_64 / amd64 | +|:------------------------|:-----------------------| +| Ubuntu | {% raw %}{{ yes }}{% endraw %} | +| Debian | {% raw %}{{ yes }}{% endraw %} | +| Fedora | {% raw %}{{ yes }}{% endraw %} | +``` + + From b63889f7c3601005a018eab507a71261b0572a2e Mon Sep 17 00:00:00 2001 From: Allie Sadler <102604716+aevesdocker@users.noreply.github.com> Date: Wed, 5 Oct 2022 17:50:29 +0100 Subject: [PATCH 2/2] toc addition --- _data/toc.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/_data/toc.yaml b/_data/toc.yaml index a923413a8b39..9a5c297e88ec 100644 --- a/_data/toc.yaml +++ b/_data/toc.yaml @@ -1798,6 +1798,8 @@ contribute: title: Call outs - path: /contribute/components/cards/ title: Cards + - path: /contribute/components/code-blocks/ + title: Code blocks - path: /contribute/components/images/ title: Images - path: /contribute/components/links/