docs/Single-server-VictoriaMetrics.md: explain why images must have the same filepath as the corresponding docs at docs/ folder

This is a follow-up for f2c1d30011
This commit is contained in:
Aliaksandr Valialkin 2024-07-17 18:26:07 +02:00
parent 1f96882367
commit aefc4538bd
No known key found for this signature in database
GPG Key ID: 52C003EE2BCDB9EB
3 changed files with 12 additions and 0 deletions

View File

@ -2668,6 +2668,10 @@ Please, keep image size and number of images per single page low. Keep the docs
Image files must be placed in the same folder as the doc itself and they must have the same prefix as the doc filename. Image files must be placed in the same folder as the doc itself and they must have the same prefix as the doc filename.
For example, all the images for `docs/foo/bar.md` should have filenames starting from `docs/foo/bar`. For example, all the images for `docs/foo/bar.md` should have filenames starting from `docs/foo/bar`.
This simplifies lifetime management of the images:
- when the corresponding doc is removed, then it is clear how to remove the associated images
- when the corresponding doc is renamed, then it is clear how to rename the associated images.
If the page needs to have many images, consider using WEB-optimized image format [webp](https://developers.google.com/speed/webp). If the page needs to have many images, consider using WEB-optimized image format [webp](https://developers.google.com/speed/webp).
When adding a new doc with many images use `webp` format right away. Or use a Makefile command below to When adding a new doc with many images use `webp` format right away. Or use a Makefile command below to

View File

@ -2671,6 +2671,10 @@ Please, keep image size and number of images per single page low. Keep the docs
Image files must be placed in the same folder as the doc itself and they must have the same prefix as the doc filename. Image files must be placed in the same folder as the doc itself and they must have the same prefix as the doc filename.
For example, all the images for `docs/foo/bar.md` should have filenames starting from `docs/foo/bar`. For example, all the images for `docs/foo/bar.md` should have filenames starting from `docs/foo/bar`.
This simplifies lifetime management of the images:
- when the corresponding doc is removed, then it is clear how to remove the associated images
- when the corresponding doc is renamed, then it is clear how to rename the associated images.
If the page needs to have many images, consider using WEB-optimized image format [webp](https://developers.google.com/speed/webp). If the page needs to have many images, consider using WEB-optimized image format [webp](https://developers.google.com/speed/webp).
When adding a new doc with many images use `webp` format right away. Or use a Makefile command below to When adding a new doc with many images use `webp` format right away. Or use a Makefile command below to

View File

@ -2679,6 +2679,10 @@ Please, keep image size and number of images per single page low. Keep the docs
Image files must be placed in the same folder as the doc itself and they must have the same prefix as the doc filename. Image files must be placed in the same folder as the doc itself and they must have the same prefix as the doc filename.
For example, all the images for `docs/foo/bar.md` should have filenames starting from `docs/foo/bar`. For example, all the images for `docs/foo/bar.md` should have filenames starting from `docs/foo/bar`.
This simplifies lifetime management of the images:
- when the corresponding doc is removed, then it is clear how to remove the associated images
- when the corresponding doc is renamed, then it is clear how to rename the associated images.
If the page needs to have many images, consider using WEB-optimized image format [webp](https://developers.google.com/speed/webp). If the page needs to have many images, consider using WEB-optimized image format [webp](https://developers.google.com/speed/webp).
When adding a new doc with many images use `webp` format right away. Or use a Makefile command below to When adding a new doc with many images use `webp` format right away. Or use a Makefile command below to