Skip to content

Latest commit

 

History

History
134 lines (91 loc) · 4.71 KB

File metadata and controls

134 lines (91 loc) · 4.71 KB

Documentation contributing guide

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:

  1. Submit a pull request (PR) for documentation on GitHub
  2. Reach us on our Forums

The pg_tde documentation is written in Markdown.

Edit documentation on GitHub

  1. Click the Edit this file icon next to the page title. The source .md file 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.

  2. Edit the page. You can check your changes on the Preview tab.

  3. 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
  1. 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.

  2. Your changes will be reviewed and merged into the documentation.

Edit documentation locally

To edit the documentation locally:

  1. Fork this repository
  2. Clone the repository on your machine:
git clone --recursive git@github.com:<your-name>/postgres.git
  1. Change the directory to contrib/pg_tde and add the remote upstream repository:
git remote add upstream git@github.com:percona/postgres.git
  1. Pull the latest changes from upstream:
git fetch upstream
git merge upstream/<target-branch>
  1. 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>
  1. 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>
    
  2. Open a pull request to Percona

Building the documentation using MkDocs

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:

  1. Install Python
  2. Install MkDocs and the required extensions:
cd pg_tde/documentation
pip install -r requirements.txt
  1. Build the site:
mkdocs build
  1. Open site/index.html

Or, to run the built-in web server:

mkdocs serve

View the site at http://127.0.0.1:8000

Repository structure

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 templates
      • images - Images, logos and favicons
      • fragments - Text snippets used in multiple places in docs.
      • templates:
        • pdf_cover_page.tpl - The PDF cover page template
    • css - Styles
    • js - Javascript files
  • _resource: The set of Material theme templates with our customizations
    • .icons - Custom icons used in the documentation
    • overrides:
      • 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 website
      • 404.html - The 404 page template
  • _resourcepdf - The set of Material theme templates with our customizations for PDF builds
  • site - This is where the output HTML files are put after the build