Skip to content

Commit

Permalink
Add image section to markdown cheatsheet page
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro-psb committed Jan 17, 2025
1 parent b3d325c commit b5ecdff
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions docs/dev/reference/markdown-cheatsheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,36 @@ pulp file repository update --name myrepo --retained-versions 1
```
````

### Images

The image paths can be relative or absolute:

Simple:

```
# Relative path. Image is in the same folder
![OperatorHub tab](1.png "Pulp on OperatorHub tab")
# Absolute path. Specify the path with 'site:'
![Pulp 101](site:pulpcore/docs/assets/images/pulp-101.png)
```

With subtitle:

```
# Subtitle on top
<figure markdown="span">
<figcaption>Find Pulp at `OperatorHub > Integration & Delivery`.</figcaption>
![OperatorHub tab](1.png "Pulp on OperatorHub tab")
</figure>
# Subtitle at bottom
<figure markdown="span">
<figcaption>Find Pulp at `OperatorHub > Integration & Delivery`.</figcaption>
![OperatorHub tab](1.png "Pulp on OperatorHub tab")
</figure>
```

### Admonitions

[See mkdocs-material](https://squidfunk.github.io/mkdocs-material/reference/admonitions/#supported-types)
Expand Down

0 comments on commit b5ecdff

Please sign in to comment.