Contact Us
-For free technical help, visit the Percona Community Forum.
-
To report bugs or submit feature requests, open a JIRA ticket.
-
For paid support and managed or consulting services , contact Percona Sales.
-
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 40eabfede..0fdb93e36 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,13 +11,13 @@ jobs: steps: #Pull the latest changes - - name: Chekout code - uses: actions/checkout@v2 + - name: Checkout code + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: fetch-depth: 0 #Prepare the env - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 with: python-version: '3.x' @@ -43,8 +43,7 @@ jobs: - name: Deploy docs run: | mike deploy 16 -b publish -p - mike set-default 16 -b publish -p - mike retitle 16 "16 (LATEST)" -b publish -p + mike retitle 16 "16.9" -b publish -p # - name: Install Node.js 14.x # uses: percona-platform/setup-node@v2 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index df7c18b79..37ed77117 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -28,12 +28,13 @@ There are several active versions of the documentation. Each version derives fro Each version has a branch in the repository named accordingly: -- 11 -- 12 -- 13 +- 11 (EOL) +- 12 (EOL) +- 13 - 14 - 15 - 16 +- 17 The source .md files are in the ``docs`` directory. @@ -140,14 +141,17 @@ mkdocs serve ``` 6. To build the PDF documentation, do the following: - - Install [mkdocs-with-pdf plugin](https://pypi.org/project/mkdocs-with-pdf/) + - Install [mkdocs-print-site-plugin](https://timvink.github.io/mkdocs-print-site-plugin/index.html) - Run the following command ```sh ENABLE_PDF_EXPORT=1 mkdocs build -f mkdocs-pdf.yml ``` -The PDF document is in the ``site/pdf`` folder. +This creates a single HTML page for the whole doc project. You can find the page at `site/print_page.html`. + +7. Open the `site/print_page.html` in your browser and save as PDF. Depending on the browser, you may need to select the Export to PDF, Print - Save as PDF or just Save and select PDF as the output format. + ## Repository structure @@ -161,13 +165,16 @@ The repository includes the following directories and files: - `_images` - Images, logos and favicons - `css` - Styles - `js` - Javascript files -- `_resource`: - - `templates`: + - `templates`: - ``styles.scss`` - Styling for PDF documents - - `theme`: + - `pdf_cover_page.tpl` - The PDF cover page template +- `_resource`: + - `overrides` - The directory with customized templates for HTML output - `main.html` - The layout template for hosting the documentation on Percona website - - overrides - The folder with the template customization for Netlify builds +- `_resourcepdf`: + - `overrides` - The directory with customized layout templates for PDF - `.github`: - `workflows`: - `main.yml` - The workflow configuration for building documentation with a GitHub action. (The documentation is built with `mike` tool to a dedicated `netlify` branch) - `site` - This is where the output HTML files are put after the build +- `snippets` - The folder with pieces of documentation used in multiple places diff --git a/_resource/overrides/main.html b/_resource/overrides/main.html index 83d4a6c16..ca7b047ba 100644 --- a/_resource/overrides/main.html +++ b/_resource/overrides/main.html @@ -6,19 +6,6 @@ {# Import the theme's layout. #} {% extends "base.html" %} -{%- macro relbar2 () %} -
-{%- endmacro %} {% block scripts %} @@ -72,6 +59,9 @@For help, click the link below to get free database assistance or contact our experts for personalized support.
+ ++We can't find the page you are looking for. Try using the Search or return to homepage .
+{% endblock %} diff --git a/_resourcepdf/overrides/main.html b/_resourcepdf/overrides/main.html new file mode 100644 index 000000000..734db856a --- /dev/null +++ b/_resourcepdf/overrides/main.html @@ -0,0 +1,96 @@ +{# +MkDocs template for builds with Material theme to customize docs layout +by adding marketing-requested elements +#} + +{# Import the theme's layout. #} +{% extends "base.html" %} + +{% block scripts %} + +{{ super() }} +{% endblock %} + + {% block extrahead %} + {{ super() }} + {% set title = config.site_name %} + {% if page and page.meta and page.meta.title %} + {% set title = title ~ " - " ~ page.meta.title %} + {% elif page and page.title and not page.is_homepage %} + {% set title = title ~ " - " ~ page.title %} + {% endif %} + + + + + + + +