docs: grouped changelog docs, removed old make commands, replaced docs in root README with official docs links (#6727)

### Describe Your Changes

- replace docs in root README with a link to official documentation
- remove old make commands for documentation
- remove redundant "VictoriaMetrics" from document titles
- merge changelog docs into a section
- rm content of Single-server-VictoriaMetrics.md as it can be included from docs/README
- add basic information to README in the root folder, so it will be useful for github users
- rm `picture` tag from docs/README as it was needed for github only, we don't display VM logo at docs.victoriametrics.com
- update `## documentation` section in docs/README to reflect the changes
- rename DD pictures, as they now belong to docs/README

Signed-off-by: hagen1778 <roman@victoriametrics.com>
Co-authored-by: hagen1778 <roman@victoriametrics.com>
This commit is contained in:
Andrii Chubatiuk 2024-07-31 17:03:18 +03:00 committed by GitHub
parent 53919327b2
commit 58e667c895
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
33 changed files with 125 additions and 6611 deletions

View file

@ -513,34 +513,3 @@ install-wwhrd:
check-licenses: install-wwhrd check-licenses: install-wwhrd
wwhrd check -f .wwhrd.yml wwhrd check -f .wwhrd.yml
copy-docs:
# The 'printf' function is used instead of 'echo' or 'echo -e' to handle line breaks (e.g. '\n') in the same way on different operating systems (MacOS/Ubuntu Linux/Arch Linux) and their shells (bash/sh/zsh/fish).
# For details, see https://github.com/VictoriaMetrics/VictoriaMetrics/pull/4548#issue-1782796419 and https://stackoverflow.com/questions/8467424/echo-newline-in-bash-prints-literal-n
echo "---" > ${DST}
@if [ ${ORDER} -ne 0 ]; then \
echo "sort: ${ORDER}" >> ${DST}; \
echo "weight: ${ORDER}" >> ${DST}; \
printf "menu:\n docs:\n parent: 'victoriametrics'\n weight: ${ORDER}\n" >> ${DST}; \
fi
echo "title: ${TITLE}" >> ${DST}
@if [ ${OLD_URL} ]; then \
printf "aliases:\n - ${OLD_URL}\n" >> ${DST}; \
fi
echo "---" >> ${DST}
cat ${SRC} >> ${DST}
sed -i='.tmp' 's/<img src=\"docs\//<img src=\"/' ${DST}
sed -i='.tmp' 's/<source srcset=\"docs\//<source srcset=\"/' ${DST}
rm -rf docs/*.tmp
# Copies docs for all components and adds the order/weight tag, title, menu position and alias with the backward compatible link for the old site.
# For ORDER=0 it adds no order tag/weight tag.
# FOR OLD_URL - relative link, used for backward compatibility with the link from documentation based on GitHub pages (old one)
# FOR OLD_URL='' it adds no alias, it should be empty for every new page, don't change it for already existing links.
# Images starting with <img src="docs/ are replaced with <img src="
# Cluster docs are supposed to be ordered as 2nd.
# The rest of docs is ordered manually.
docs-sync:
SRC=README.md DST=docs/README.md OLD_URL='' ORDER=0 TITLE=VictoriaMetrics $(MAKE) copy-docs
SRC=README.md DST=docs/Single-server-VictoriaMetrics.md OLD_URL='/Single-server-VictoriaMetrics.html' TITLE=VictoriaMetrics ORDER=1 $(MAKE) copy-docs

3299
README.md

File diff suppressed because it is too large Load diff

View file

@ -1,9 +1,10 @@
--- ---
sort: 32 sort: 32
weight: 32 weight: 32
title: VictoriaMetrics best practices title: Best practices
menu: menu:
docs: docs:
identifier: vm-best-practices
parent: 'victoriametrics' parent: 'victoriametrics'
weight: 32 weight: 32
aliases: aliases:

View file

@ -4,6 +4,7 @@ weight: 100
title: CHANGELOG title: CHANGELOG
menu: menu:
docs: docs:
identifier: vm-changelog
parent: victoriametrics parent: victoriametrics
weight: 100 weight: 100
aliases: aliases:

View file

@ -1,11 +1,12 @@
--- ---
sort: 101 sort: 6
weight: 101 weight: 6
title: CHANGELOG for the year 2020 title: Year 2020
menu: menu:
docs: docs:
parent: 'victoriametrics' identifier: vm-changelog-2020
weight: 101 parent: vm-changelog
weight: 6
aliases: aliases:
- /CHANGELOG_2020.html - /CHANGELOG_2020.html
--- ---

View file

@ -1,11 +1,12 @@
--- ---
sort: 102 sort: 5
weight: 102 weight: 5
title: CHANGELOG for the year 2021 title: Year 2021
menu: menu:
docs: docs:
parent: 'victoriametrics' identifier: vm-changelog-2021
weight: 102 parent: vm-changelog
weight: 5
aliases: aliases:
- /CHANGELOG_2021.html - /CHANGELOG_2021.html
--- ---

View file

@ -1,11 +1,12 @@
--- ---
sort: 103 sort: 4
weight: 103 weight: 4
title: CHANGELOG for the year 2022 title: Year 2022
menu: menu:
docs: docs:
parent: 'victoriametrics' identifier: vm-changelog-2022
weight: 103 parent: vm-changelog
weight: 4
aliases: aliases:
- /CHANGELOG_2022.html - /CHANGELOG_2022.html
--- ---

View file

@ -1,11 +1,12 @@
--- ---
sort: 104 sort: 3
weight: 104 weight: 3
title: CHANGELOG for the year 2023 title: Year 2023
menu: menu:
docs: docs:
parent: 'victoriametrics' identifier: vm-changelog-2023
weight: 104 parent: vm-changelog
weight: 3
aliases: aliases:
- /CHANGELOG_2023.html - /CHANGELOG_2023.html
--- ---

View file

@ -1,10 +1,11 @@
--- ---
sort: 400 sort: 400
weight: 400 weight: 400
title: Contributing to VictoriaMetrics title: Contributing
menu: menu:
docs: docs:
parent: 'victoriametrics' identifier: vm-contributing
parent: victoriametrics
weight: 400 weight: 400
aliases: aliases:
- /CONTRIBUTING.html - /CONTRIBUTING.html

View file

@ -3,6 +3,7 @@ sort: 2
weight: 2 weight: 2
menu: menu:
docs: docs:
identifier: vm-cluster-version
parent: 'victoriametrics' parent: 'victoriametrics'
weight: 2 weight: 2
title: Cluster version title: Cluster version

View file

@ -1,10 +1,11 @@
--- ---
sort: 31 sort: 31
weight: 31 weight: 31
title: VictoriaMetrics Cluster Per Tenant Statistic title: Cluster Per Tenant Statistic
menu: menu:
docs: docs:
parent: 'victoriametrics' identifier: vm-cluster-per-tenant-statistic
parent: victoriametrics
weight: 31 weight: 31
aliases: aliases:
- /PerTenantStatistic.html - /PerTenantStatistic.html

View file

@ -4,7 +4,8 @@ weight: 22
title: Quick start title: Quick start
menu: menu:
docs: docs:
parent: 'victoriametrics' identifier: vm-quick-start
parent: victoriametrics
weight: 22 weight: 22
aliases: aliases:
- /Quick-Start.html - /Quick-Start.html

View file

@ -6,12 +6,6 @@
[![Build Status](https://github.com/VictoriaMetrics/VictoriaMetrics/workflows/main/badge.svg)](https://github.com/VictoriaMetrics/VictoriaMetrics/actions) [![Build Status](https://github.com/VictoriaMetrics/VictoriaMetrics/workflows/main/badge.svg)](https://github.com/VictoriaMetrics/VictoriaMetrics/actions)
[![codecov](https://codecov.io/gh/VictoriaMetrics/VictoriaMetrics/branch/master/graph/badge.svg)](https://codecov.io/gh/VictoriaMetrics/VictoriaMetrics) [![codecov](https://codecov.io/gh/VictoriaMetrics/VictoriaMetrics/branch/master/graph/badge.svg)](https://codecov.io/gh/VictoriaMetrics/VictoriaMetrics)
<picture>
<source srcset="/logo_white.webp" media="(prefers-color-scheme: dark)">
<source srcset="/logo.webp" media="(prefers-color-scheme: light)">
<img src="/logo.webp" width="300" alt="VictoriaMetrics logo">
</picture>
VictoriaMetrics is a fast, cost-effective and scalable monitoring solution and time series database. VictoriaMetrics is a fast, cost-effective and scalable monitoring solution and time series database.
See [case studies for VictoriaMetrics](https://docs.victoriametrics.com/casestudies/). See [case studies for VictoriaMetrics](https://docs.victoriametrics.com/casestudies/).
@ -498,7 +492,7 @@ via ["submit metrics" API](https://docs.datadoghq.com/api/latest/metrics/#submit
DataDog agent allows configuring destinations for metrics sending via ENV variable `DD_DD_URL` DataDog agent allows configuring destinations for metrics sending via ENV variable `DD_DD_URL`
or via [configuration file](https://docs.datadoghq.com/agent/guide/agent-configuration-files/) in section `dd_url`. or via [configuration file](https://docs.datadoghq.com/agent/guide/agent-configuration-files/) in section `dd_url`.
![DD to VM](Single-server-VictoriaMetrics-sending_DD_metrics_to_VM.webp) ![DD to VM](README_sending_DD_metrics_to_VM.webp)
To configure DataDog agent via ENV variable add the following prefix: To configure DataDog agent via ENV variable add the following prefix:
@ -525,7 +519,7 @@ pick [single-node or cluster URL](https://docs.victoriametrics.com/url-examples/
DataDog allows configuring [Dual Shipping](https://docs.datadoghq.com/agent/guide/dual-shipping/) for metrics DataDog allows configuring [Dual Shipping](https://docs.datadoghq.com/agent/guide/dual-shipping/) for metrics
sending via ENV variable `DD_ADDITIONAL_ENDPOINTS` or via configuration file `additional_endpoints`. sending via ENV variable `DD_ADDITIONAL_ENDPOINTS` or via configuration file `additional_endpoints`.
![DD to VM](Single-server-VictoriaMetrics-sending_DD_metrics_to_VM_and_DD.webp) ![DD to VM](README_sending_DD_metrics_to_VM_and_DD.webp)
Run DataDog using the following ENV variable with VictoriaMetrics as additional metrics receiver: Run DataDog using the following ENV variable with VictoriaMetrics as additional metrics receiver:
@ -2654,15 +2648,9 @@ and gets automatically updated once changes are merged to [master](https://githu
To update the documentation follow the steps below: To update the documentation follow the steps below:
- [Fork](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/about-forks) - [Fork](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/about-forks)
VictoriaMetrics repo and apply changes to the docs: VictoriaMetrics repo and apply changes to the docs:
- To update [the main page](https://docs.victoriametrics.com/) modify [this file](https://github.com/VictoriaMetrics/VictoriaMetrics/blob/master/README.md). - To update [the main page](https://docs.victoriametrics.com/) modify [this file](https://github.com/VictoriaMetrics/VictoriaMetrics/blob/master/docs/README.md).
- To update other pages, apply changes to the corresponding file in [docs folder](https://github.com/VictoriaMetrics/VictoriaMetrics/tree/master/docs). - To update other pages, apply changes to the corresponding file in [docs folder](https://github.com/VictoriaMetrics/VictoriaMetrics/tree/master/docs).
- If your changes contain an image then see [images in documentation](https://docs.victoriametrics.com/#images-in-documentation). - If your changes contain an image then see [images in documentation](https://docs.victoriametrics.com/#images-in-documentation).
- Once changes are made, execute the command below to finalize and sync the changes:
```sh
make docs-sync
```
- Create [a pull request](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request) - Create [a pull request](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request)
with proposed changes and wait for it to be merged. with proposed changes and wait for it to be merged.
@ -2675,7 +2663,7 @@ Requirements for changes to docs:
- Prefer improving the existing docs instead of adding new ones. - Prefer improving the existing docs instead of adding new ones.
- Use absolute links. This simplifies moving docs between different files. - Use absolute links. This simplifies moving docs between different files.
Priodically run `make spellcheck` - this command detects spelling errors at `docs/` folder. Please fix the found spelling errors Periodically run `make spellcheck` - this command detects spelling errors at `docs/` folder. Please fix the found spelling errors
and commit the fixes in a separate commit. and commit the fixes in a separate commit.
### Images in documentation ### Images in documentation

View file

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

View file

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

File diff suppressed because it is too large Load diff

View file

@ -4,7 +4,8 @@ weight: 1
title: Quick Start title: Quick Start
menu: menu:
docs: docs:
parent: "victorialogs" parent: victorialogs
identifier: vl-quick-start
weight: 1 weight: 1
title: Quick Start title: Quick Start
aliases: aliases:

View file

@ -4,7 +4,8 @@ weight: 2
title: Key concepts title: Key concepts
menu: menu:
docs: docs:
parent: "victorialogs" identifier: vl-key-concepts
parent: victorialogs
weight: 2 weight: 2
title: Key concepts title: Key concepts
aliases: aliases:

View file

@ -1,9 +1,10 @@
--- ---
sort: 99 sort: 99
weight: 99 weight: 99
title: VictoriaMetrics Enterprise title: Enterprise
menu: menu:
docs: docs:
identifier: vm-enterprise
parent: 'victoriametrics' parent: 'victoriametrics'
weight: 99 weight: 99
aliases: aliases:

View file

@ -1,7 +1,7 @@
--- ---
sort: 500 sort: 500
weight: 500 weight: 500
title: VictoriaMetrics development goals title: Development goals
menu: menu:
docs: docs:
parent: 'victoriametrics' parent: 'victoriametrics'

View file

@ -1,11 +0,0 @@
1. [K8s monitoring via VM Single](k8s-monitoring-via-vm-single.html)
1. [K8s monitoring via VM Cluster](k8s-monitoring-via-vm-cluster.html)
1. [HA monitoring setup in K8s via VM Cluster](k8s-ha-monitoring-via-vm-cluster.html)
1. [Getting started with VM Operator](getting-started-with-vm-operator.html)
1. [Multi Retention Setup within VictoriaMetrics Cluster](guide-vmcluster-multiple-retention-setup.html)
1. [Migrate from InfluxDB to VictoriaMetrics](migrate-from-influx.html)
1. [Multi-regional setup with VictoriaMetrics: Dedicated regions for monitoring](multi-regional-setup-dedicated-regions.html)
1. [How to delete or replace metrics in VictoriaMetrics](guide-delete-or-replace-metrics.html)
1. [How to monitor kubernetes cluster using VictoriaMetrics Cloud](/victoriametrics-cloud/how-to-monitor-k8s.html)
1. [How to configure vmgateway for multi-tenant access using Grafana and OpenID Connect](grafana-vmgateway-openid-configuration.html)
1. [How to setup vmanomaly together with vmalert](/anomaly-detection/guides/guide-vmanomaly-vmalert/README.md)

View file

@ -2,4 +2,5 @@
weight: 0 weight: 0
title: Guides title: Guides
disableToc: true disableToc: true
--- ---
{{% section %}}

View file

@ -4,7 +4,8 @@ weight: 34
title: Key concepts title: Key concepts
menu: menu:
docs: docs:
parent: 'victoriametrics' identifier: vm-key-concepts
parent: victoriametrics
weight: 34 weight: 34
aliases: aliases:
- /keyConcepts.html - /keyConcepts.html

View file

@ -1,11 +1,12 @@
--- ---
sort: 33 sort: 33
weight: 33 weight: 33
title: VictoriaMetrics API examples title: API examples
menu: menu:
docs: docs:
parent: 'victoriametrics' parent: 'victoriametrics'
weight: 33 weight: 33
identifier: vm-api-examples
aliases: aliases:
- /url-examples.html - /url-examples.html

View file

@ -3,7 +3,7 @@ sort: 3
weight: 3 weight: 3
menu: menu:
docs: docs:
parent: 'victoriametrics' parent: victoriametrics
weight: 3 weight: 3
title: vmagent title: vmagent
aliases: aliases:

View file

@ -3,7 +3,7 @@ sort: 12
weight: 12 weight: 12
menu: menu:
docs: docs:
parent: 'victoriametrics' parent: victoriametrics
weight: 12 weight: 12
title: vmalert-tool title: vmalert-tool
aliases: aliases:

View file

@ -3,7 +3,7 @@ sort: 4
weight: 4 weight: 4
menu: menu:
docs: docs:
parent: 'victoriametrics' parent: victoriametrics
weight: 4 weight: 4
title: vmalert title: vmalert
aliases: aliases:

View file

@ -3,7 +3,7 @@ sort: 5
weight: 5 weight: 5
menu: menu:
docs: docs:
parent: 'victoriametrics' parent: victoriametrics
weight: 5 weight: 5
title: vmauth title: vmauth
aliases: aliases:

View file

@ -3,7 +3,7 @@ sort: 6
weight: 6 weight: 6
menu: menu:
docs: docs:
parent: 'victoriametrics' parent: victoriametrics
weight: 6 weight: 6
title: vmbackup title: vmbackup
aliases: aliases:

View file

@ -3,7 +3,7 @@ sort: 10
weight: 10 weight: 10
menu: menu:
docs: docs:
parent: 'victoriametrics' parent: victoriametrics
weight: 10 weight: 10
title: vmbackupmanager title: vmbackupmanager
aliases: aliases:

View file

@ -3,7 +3,7 @@ sort: 8
weight: 8 weight: 8
menu: menu:
docs: docs:
parent: 'victoriametrics' parent: victoriametrics
weight: 8 weight: 8
title: vmctl title: vmctl
aliases: aliases:

View file

@ -3,7 +3,7 @@ sort: 9
weight: 9 weight: 9
menu: menu:
docs: docs:
parent: 'victoriametrics' parent: victoriametrics
weight: 9 weight: 9
title: vmgateway title: vmgateway
aliases: aliases:

View file

@ -3,7 +3,7 @@ sort: 7
weight: 7 weight: 7
menu: menu:
docs: docs:
parent: 'victoriametrics' parent: victoriametrics
weight: 7 weight: 7
title: vmrestore title: vmrestore
aliases: aliases: