Skip to content

Commit

Permalink
docs: vuepress images
Browse files Browse the repository at this point in the history
  • Loading branch information
lmorg committed Jun 25, 2024
1 parent 094dc7c commit e102739
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
4 changes: 2 additions & 2 deletions gen/user-guide/hint-text-overview.inc.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ to be used if you want it while keeping out of the way when you don't want it.
<!-- markdownlint-disable -->
<figure>
<img src="/screenshot-hint-text-rsync.png?v={{ env "COMMITHASHSHORT" }}" class="centre-image"/>
<figcaption>`rsync` flag, with example, pulled from `man` pages ({{link "read more" "man-pages"}})</figcaption>
<figcaption><code>rsync</code> flag, with example, pulled from <code>man</code> pages</figcaption>
</figure>
<figure>
<img src="/screenshot-hint-text-egrep.png?v={{ env "COMMITHASHSHORT" }}" class="centre-image"/>
<figcaption>`egrep` is an {{link "alias" "alias"}} so also show the destination command</figcaption>
<figcaption><code>egrep</code> is an alias, so also show the destination command</figcaption>
</figure>
<!-- markdownlint-restore -->
{{ end }}
11 changes: 8 additions & 3 deletions gen/user-guide/interactive-shell.inc.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,14 @@ It can display:

{{ if env "DOCGEN_TARGET=vuepress" }}
<!-- markdownlint-disable -->
<img src="/screenshot-preview-man-page.png?v={{ env "COMMITHASHSHORT" }}" class="centre-image"/>
<br/>
<img src="/screenshot-preview-image.png?v={{ env "COMMITHASHSHORT" }}" class="centre-image"/>
<figure>
<img src="/screenshot-preview-man-page.png?v={{ env "COMMITHASHSHORT" }}" class="centre-image"/>
<figcaption>Previewing a command flag, from the commands <code>man</code> page</figcaption>
</figure>
<figure>
<img src="/screenshot-preview-image.png?v={{ env "COMMITHASHSHORT" }}" class="centre-image"/>
<figcaption>Previewing a file. In this specific instance it is an image</figcaption>
</figure>
<!-- markdownlint-restore -->
{{ end }}

Expand Down
2 changes: 0 additions & 2 deletions gen/user-guide/interactive-shell_doc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,3 @@
- terminal-keys
- hint-text
- onpreview


7 changes: 7 additions & 0 deletions gen/vuepress/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ h4 {
font-family: 'Jura', sans-serif;
}

figcaption {
font-size: 12px;
padding-top: 5px;
padding-bottom: 5px;
color: #606060;
}

.centre-image {
max-width: 100%;
max-height: 400px;
Expand Down

0 comments on commit e102739

Please sign in to comment.