Here are documentation source files for Percona Monitoring and Management, a free, open-source, database monitoring solution.
Note
This repository is for Percona Monitoring and Management version 2.
The HTML documentation is published at percona.com/doc.
We welcome any contributions. This page explains how you can do that.
There are currently two identical copies of documentation in different formats:
-
.rst
files in reStructuredText syntax for processing by Sphinx.
You can edit whichever copy you like. The PMM Technical Writers will keep the two copies synchronized until a decision is made about which format to keep.
- Sphinx/rst documentation is stored in the
source
directory. - MkDocs/md documentation is stored in the
docs
directory.
You'll need to know how git works, and the syntax of either reStructuredText or Markdown.
For option 2 (below), you'll need to install Sphinx and extensions, or MkDocs and extensions, or have Docker installed to preview any changes. (Of these, Docker is by far the simplest.)
There are three ways to get changes made to the documentation. Two are 'do it yourself', one is 'ask someone to do it'.
-
Each page of PMM 2 documentation has a link to the
.rst
. and.md
versions of the page. -
Click any link to be taken to the github edit page.
-
Make your changes and commit. Unless you are a member of the Percona team, you'll be asked to fork the repository.
-
Do so and make a pull request for merging your changes.
-
Fork and clone this repository.
-
Make your changes in either the Sphinx/rst version (under
pmm-doc/source
) or MkDocs/md (underpmm-doc/docs
). -
For all but the simplest changes, you should preview the documentation.
-
Commit and push the changes.
-
Make a pull request to merge the changes.
-
Create a ticket in our Jira system.
-
Describe the problem or improvement needed in as much detail as possible, by providing, for example:
- links to the relevant pages or sections;
- explaining what is wrong and why;
- suggesting changes or links to sources of further information.
-
You can use Jira to communicate with developers and technical writers, and be notified of progress.
To build the documentation (convert .rst
files into HTML), you must install Sphinx and extensions.
A more convenient way is to use our Docker image as follows:
-
Clone this repository.
-
cd pmm-doc
-
docker run --rm -v $(pwd):/docs perconalab/percona-doc-sphinx make clean html
-
Open
build/html/index.html
in a browser to view the first page of documentation.
Tip
Documentation built this way has no styling because it is intended for hosting on percona.com. You can build a themed version for local viewing by changing the command in step 3 to:
docker run --rm -v $(pwd):/docs perconalab/percona-doc-sphinx make clean thtml
To build the documentation (convert .md
files into HTML), you must install MkDocs and extensions.
A more convenient way is to use our Docker image as follows:
-
Clone this repository.
-
cd pmm-doc
-
docker run --rm -v $(pwd):/docs perconalab/pmm-doc-md
-
Open
site/index.html
in a browser to view the first page of documentation.
Tip
Documentation built this way has no styling because it is intended for hosting on percona.com. You can build a themed version for local viewing by changing the command in step 3 to:
docker run --rm -v $(pwd):/docs perconalab/pmm-doc-md mkdocs build -f mkdocs-preview.yml
-
Follow the official Sphinx instructions for installation.
-
Install required extensions:
pip install sphinxcontrib-srclinks
-
Follow the official MkDocs instructions for installation.
-
Install required extensions:
pip install mkdocs-macros-plugin mkdocs-exclude mkdocs-material