Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions _data/toc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
36 changes: 34 additions & 2 deletions contribute/components/tables.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. | |
Expand All @@ -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 |
|:-------------------------------------------------------------------------|:-------------------------------------------------------------|
Expand All @@ -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.
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 %} |
```