list-and-table-presentation-ideas¶
In our snap docs, we have have several long and potentially difficult to parse lists and tables.
The Supported interfaces page contains a good example.
This post experiments with their presentation to see if there’s a better and more comfortable way to approach these large chunks of data.
The rendered HTML output for this page can be found here.
ⓘ We could also use HTML definition/description lists, but we’re reluctant to use inline HTML in our Markdown.
Table¶
Programming languages¶
Go
Plugin name |
Description |
core20 |
core/core18 |
---|---|---|---|
integrates projects written in Go and using the go get package installer |
:white_check_mark: |
||
integrates projects written in Go and using the godep dependency tool |
:white_medium_square: |
:white_check_mark: |
Interface name |
Description |
Auto-connect |
---|---|---|
add/remove user accounts or change passwords |
no |
|
allows communication with the accounts service |
no |
|
play or record sound |
no |
|
be controlled by Autopilot software |
no |
URL tests¶
In docs category, not on sitemap: /t/base-snaps/11198
Outside docs category:
Manual style¶
accounts-service allows communication with the accounts service
alsa play or record sound
autopilot-introspection be controlled by Autopilot software …
account-control add/remove user accounts or change passwords
accounts-service allows communication with the accounts service
alsa play or record sound
autopilot-introspection be controlled by Autopilot software
Another manual style¶
account-control¶
Type: string
Add/remove user accounts or change passwords.
accounts-service¶
Allows communication with the accounts service.
alsa¶
Play or record sound.
autopilot-introspection¶
Be controlled by Autopilot software.
List styles¶
account-control: add/remove user accounts or change passwords
accounts-service: allows communication with the accounts service
alsa: play or record sound
autopilot-introspection: be controlled by Autopilot software
…
account-control add/remove user accounts or change passwords
accounts-service allows communication with the accounts service
alsa play or record sound
autopilot-introspection be controlled by Autopilot software
Block quotes¶
account-control add/remove user accounts or change passwords
accounts-service allows communication with the accounts service
alsa play or record sound
autopilot-introspection be controlled by Autopilot software
Snapcraft.yaml reference¶
Original¶
Name |
Type |
Description |
Example Values |
---|---|---|---|
|
|
The name of the snap |
|
|
|
A user facing version to display |
|
|
|
A command with working directory of the source tree root that determines and prints the snap’s version string to the standard output. |
|
|
|
A 78 character limited sentence that summarizes the snap |
|
|
|
A multiline description of the snap |
(use your imagination) |
Two rows¶
Name: |
|
Restrictions: |
Max len 40, must start with an ASCII character, can only use ASCII lowercase letters, numbers, and hyphens, and must have at least one letter |
With HTML (colspan):¶
Name | Type | Description | Example values | ||
---|---|---|---|---|---|
name (mandatory) | string | The name of the snap Restrictions: Max len 40, must start with an ASCII character, can only use ASCII lowercase letters, numbers, and hyphens, and must have at least one letter. | my-awesome-app |
Two columns¶
Name / type |
Description |
---|---|
|
The name of the snap. |
|
A user facing version to display |
|
A command within the working directory of the source tree root that determines and prints the snap’s version string to the standard output. This replaces the value of the |
Three columns¶
Name |
Type |
Description |
---|---|---|
|
|
The name of the snap. |
|
|
A user facing version to display |
|
|
A command within the working directory of the source tree root that determines and prints the snap’s version string to the standard output. This replaces the value of the |
Row style¶
Name |
Description |
---|---|
|
The name of the snap |
Max len. 30 chars, must start with an ASCII character, can only use ASCII lowercase letters, numbers, and hyphens, and must have at least one letter. |
|
|
A user facing version to display |
Max len. 32 chars. Needs to be wrapped with single-quotes when the value will be interpreted by the YAML parser as non-string |
Padded¶
Name / type |
Description |
---|---|
|
The name of the snap. Max len. 30 chars, must start with an ASCII character, can only use ASCII lowercase letters, numbers, and hyphens, and must have at least one letter. |
|
A user facing version to display. Max len. 32 chars. Needs to be wrapped with single-quotes when the value will be interpreted by the YAML parser as non-string |
|
A command or script within the root of the source tree that determines and prints a version string to the standard output. This replaces the value of the |
Diff output¶
environment:
- PERL5LIB: "$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/perl-base/:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/perl5/5.22/:$SNAP/usr/share/perl5/:$SNAP/usr/share/perl/5.22.1/:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/perl/5.22/:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/perl/5.22.1/"
+ PERL5LIB: "$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/perl-base/:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/perl5/5.26/:$SNAP/usr/share/perl5/:$SNAP/usr/share/perl/5.26.1/:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/perl/5.26/:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/perl/5.26.1/"