hotfix: updated latest-patch doc in contributing.md

pull/2918/head
Scott Anderson 2021-07-23 16:54:38 -06:00
parent bbc8fb4721
commit e2f5b3ecce
1 changed files with 8 additions and 2 deletions

View File

@ -326,11 +326,17 @@ Use the following for project names:
```
### Latest patch version
Use the `{{< latest-patch >}}` shortcode to add the latest patch version of the
current product. Easier to maintain being you update the version number in the `data/products.yml` file instead of updating individual links and code examples.
Use the `{{< latest-patch >}}` shortcode to add the latest patch version of a product.
By default, this shortcode parses the product and minor version from the URL.
To specify a specific product and minor version, use the `product` and `version` arguments.
Easier to maintain being you update the version number in the `data/products.yml` file instead of updating individual links and code examples.
```md
{{< latest-patch >}}
{{< latest-patch product="telegraf" >}}
{{< latest-patch product="chronograf" version="1.7" >}}
```
### API endpoint