Thank you for deciding to contribute and help us improve the pg_tde documentation!
We welcome contributors from all users and the community. By contributing, you agree to the Percona Community code of conduct.
If you want to contribute code, see the Code contribution guide.
You can contribute to the documentation in one of the following ways:
- Submit a pull request (PR) for documentation on GitHub
- Reach us on our Forums
The pg_tde documentation is written in Markdown.
-
Click the Edit this file icon next to the page title. The source
.mdfile of the page opens in GitHub editor in your browser. If you haven’t worked with the repository before, GitHub creates a fork of it for you. -
Edit the page. You can check your changes on the Preview tab.
-
Commit your changes:
- Describe the changes you have made
- Select the Create a new branch for this commit and name your branch
- Click Propose changes to create the pull request
-
GitHub creates a branch and a commit for your changes. It loads a new page on which you can open a pull request to Percona. The page shows the base branch (the one you offer your changes for), your commit message, and a diff (a visual representation of your changes against the original page). This allows you to make any last-minute changes. When you are ready, click the Create pull request button.
-
Your changes will be reviewed and merged into the documentation.
To edit the documentation locally:
- Fork this repository
- Clone the repository on your machine:
git clone --recursive git@github.com:<your-name>/postgres.git- Change the directory to
contrib/pg_tdeand add the remote upstream repository:
git remote add upstream git@github.com:percona/postgres.git- Pull the latest changes from upstream:
git fetch upstream
git merge upstream/<target-branch>- Create a separate branch for your changes. If you work on a Jira issue, please follow this pattern for a branch name:
<PG-123>-short-description:
git checkout -b <PG-123>-short-description upstream/<target-branch>
-
Make and commit your changes. If applicable, mention the Jira issue in the commit message:
git add . git commit -m "<my_fixes>" git push -u origin <my_branch_name> -
Open a pull request to Percona
To verify how your changes look, generate the static site with the documentation. This process is called building.
NOTE Learn more about the documentation structure in the Repository structure section.
To verify how your changes look, you can generate a static site locally:
cd pg_tde/documentation
pip install -r requirements.txt- Build the site:
mkdocs build- Open
site/index.html
Or, to run the built-in web server:
mkdocs serveView the site at http://127.0.0.1:8000
The repository includes the following directories and files:
mkdocs-base.yml- the base configuration file. It includes general settings and documentation structure.mkdocs.yml- configuration file. Contains the settings for building the docs with Material theme.docs:*.md- Source markdown files.assets- Images, text snippets and templatesimages- Images, logos and faviconsfragments- Text snippets used in multiple places in docs.templates:pdf_cover_page.tpl- The PDF cover page template
css- Stylesjs- Javascript files
_resource: The set of Material theme templates with our customizations.icons- Custom icons used in the documentationoverrides:partials- The layout templates for various parts of the documentation such as header, copyright and others.main.html- The layout template for hosting the documentation on Percona website404.html- The 404 page template
_resourcepdf- The set of Material theme templates with our customizations for PDF buildssite- This is where the output HTML files are put after the build