diff --git a/docs/Makefile b/docs/Makefile index 0de30de22..ece1d1b51 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -2,20 +2,7 @@ # Converts images at docs folder to webp format # See https://docs.victoriametrics.com/single-server-victoriametrics/#images-in-documentation -docs-images-to-webp: - IMAGES_EXTENSION=jpg $(MAKE) docs-images-to-webp-by-extension - IMAGES_EXTENSION=jpeg $(MAKE) docs-images-to-webp-by-extension - IMAGES_EXTENSION=png $(MAKE) docs-images-to-webp-by-extension - -docs-images-to-webp-by-extension: - docker run --rm -it \ - -v $(shell pwd)/docs:/docs \ - elswork/cwebp \ - sh -c 'find /docs/ -type f ! -path "/docs/operator/*" ! -path "/docs/_site/*" -name "*.$(IMAGES_EXTENSION)" -print0 | \ - xargs -0 -P $(MAKE_CONCURRENCY) -I {} sh -c '"'"'cwebp -preset drawing -m 6 -o "$${1%.*}.webp" $$1'"'"' _ {}' - find docs/ -type f ! -path 'docs/operator/*' ! -path 'docs/_site/*' -name '*.$(IMAGES_EXTENSION)' -print0 | xargs -0 rm -f - -docs-debug: +docs-image: if [ ! -d vmdocs ]; then \ git clone --depth 1 git@github.com:VictoriaMetrics/vmdocs vmdocs; \ fi; \ @@ -25,9 +12,21 @@ docs-debug: cd .. && \ docker build \ -t vmdocs-docker-package \ - vmdocs && \ + vmdocs + +docs-debug: docs docs-image docker run \ --rm \ --name vmdocs-docker-container \ -p 1313:1313 \ -v ./docs:/opt/docs/content vmdocs-docker-package + +docs-images-to-webp: docs-image + docker run \ + --rm \ + --entrypoint /usr/bin/find \ + --name vmdocs-docker-container \ + -v ./docs:/opt/docs/content vmdocs-docker-package \ + content \ + -regex ".*\.\(png\|jpg\|jpeg\)" \ + -exec sh -c 'cwebp -preset drawing -m 6 -o $$(echo {} | cut -f-1 -d.).webp {} && rm -rf {}' {} \; diff --git a/docs/VictoriaLogs/provision_datasources.png b/docs/VictoriaLogs/provision_datasources.png deleted file mode 100644 index d79ec15a2..000000000 Binary files a/docs/VictoriaLogs/provision_datasources.png and /dev/null differ diff --git a/docs/VictoriaLogs/provision_datasources.webp b/docs/VictoriaLogs/provision_datasources.webp new file mode 100644 index 000000000..47e050c4f Binary files /dev/null and b/docs/VictoriaLogs/provision_datasources.webp differ diff --git a/docs/VictoriaLogs/victorialogs-datasource.md b/docs/VictoriaLogs/victorialogs-datasource.md index 84766d804..06538b60d 100644 --- a/docs/VictoriaLogs/victorialogs-datasource.md +++ b/docs/VictoriaLogs/victorialogs-datasource.md @@ -96,7 +96,7 @@ docker-compose -f docker-compose.yaml up After Grafana starts successfully, datasource should be available in the datasources tab -Configuration +![Configuration](./provision_datasources.webp) ### Install in Kubernetes diff --git a/docs/operator/README_operator-workflow.png b/docs/operator/README_operator-workflow.png deleted file mode 100644 index 1b5f2ecec..000000000 Binary files a/docs/operator/README_operator-workflow.png and /dev/null differ diff --git a/docs/operator/logo.png b/docs/operator/logo.png deleted file mode 100644 index e3d54e820..000000000 Binary files a/docs/operator/logo.png and /dev/null differ diff --git a/docs/operator/logo.webp b/docs/operator/logo.webp new file mode 100644 index 000000000..3dc695ab9 Binary files /dev/null and b/docs/operator/logo.webp differ diff --git a/docs/operator/migration_prometheus-conversion.png b/docs/operator/migration_prometheus-conversion.png deleted file mode 100644 index 261d68ceb..000000000 Binary files a/docs/operator/migration_prometheus-conversion.png and /dev/null differ diff --git a/docs/operator/monitoring_operator-dashboard.png b/docs/operator/monitoring_operator-dashboard.png deleted file mode 100644 index ba49900af..000000000 Binary files a/docs/operator/monitoring_operator-dashboard.png and /dev/null differ diff --git a/docs/operator/quick-start_alert-1.png b/docs/operator/quick-start_alert-1.png deleted file mode 100644 index 18d995db8..000000000 Binary files a/docs/operator/quick-start_alert-1.png and /dev/null differ diff --git a/docs/operator/quick-start_alert-2.png b/docs/operator/quick-start_alert-2.png deleted file mode 100644 index 2cfd1fa8e..000000000 Binary files a/docs/operator/quick-start_alert-2.png and /dev/null differ diff --git a/docs/operator/quick-start_cluster-scheme.png b/docs/operator/quick-start_cluster-scheme.png deleted file mode 100644 index 929444995..000000000 Binary files a/docs/operator/quick-start_cluster-scheme.png and /dev/null differ diff --git a/docs/operator/quick-start_select-1.png b/docs/operator/quick-start_select-1.png deleted file mode 100644 index ea817ddf8..000000000 Binary files a/docs/operator/quick-start_select-1.png and /dev/null differ diff --git a/docs/operator/quick-start_select-2.png b/docs/operator/quick-start_select-2.png deleted file mode 100644 index 64e95d4d4..000000000 Binary files a/docs/operator/quick-start_select-2.png and /dev/null differ diff --git a/docs/operator/quick-start_values.png b/docs/operator/quick-start_values.png deleted file mode 100644 index b88a90a5a..000000000 Binary files a/docs/operator/quick-start_values.png and /dev/null differ diff --git a/docs/operator/resources/README_cr-relations.png b/docs/operator/resources/README_cr-relations.png deleted file mode 100644 index bb0869841..000000000 Binary files a/docs/operator/resources/README_cr-relations.png and /dev/null differ