Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions _resource/overrides/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@

{# Add EOL lable #}
{% block outdated %}
<div>This documentation is for the end of life version of Percona Distribution for PostgreSQL 13. See the <strong><a href= {{ '../' ~ base_url }}>current documentation</a></strong>. </div>
<div>This documentation is for the end of life version of Percona Distribution for PostgreSQL 13.
See the <strong><a href= {{ '../' ~ base_url }}> current documentation</a></strong>.</div>
{% endblock %}

{% block scripts %}
Expand All @@ -28,10 +29,6 @@
<meta property="og:title" content="{{ title }}" />
<meta property="og:image" content="https://docs.percona.com/postgresql/13/_images/postgresql.png">
<meta property="og:url" content="https://docs.percona.com/postgresql/">
</head>
<body>
</body>
</html>
{% endblock %}


Expand Down
10 changes: 6 additions & 4 deletions _resourcepdf/overrides/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
{# Import the theme's layout. #}
{% extends "base.html" %}

{# Add EOL lable #}
{% block outdated %}
<div>This documentation is for the end of life version of Percona Distribution for PostgreSQL 13.
See the <strong><a href= {{ '../' ~ base_url }}> current documentation</a></strong>.</div>
{% endblock %}

{% block scripts %}
<script src="https://cmp.osano.com/Azqe5vTyLOSbN3OuT/49ad85b5-0418-4794-ab81-7599dddd534c/osano.js"></script>
{{ super() }}
Expand All @@ -23,10 +29,6 @@
<meta property="og:title" content="{{ title }}" />
<meta property="og:image" content="https://docs.percona.com/postgresql/13/_images/postgresql.png">
<meta property="og:url" content="https://docs.percona.com/postgresql/">
</head>
<body>
</body>
</html>
{% endblock %}

{% block site_nav %}
Expand Down
54 changes: 16 additions & 38 deletions mkdocs-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,6 @@ repo_name: percona/postgresql-docs
repo_url: https://github.com/percona/postgresql-docs
edit_uri: edit/13/docs/

features:
- content.tabs.link
- search.highlight
- navigation.top
- navigation.tracking
- content.tabs.link
# - content.action.edit
- content.action.view
- content.code.copy

use_directory_urls: false


Expand All @@ -29,13 +19,11 @@ theme:
favicon: _images/postgresql-fav.svg
custom_dir: _resource/overrides/
font:
text: Roboto
text: Roboto
code: Roboto Mono
icon:
edit: material/file-edit-outline
view: material/file-eye-outline

#Color schemes
palette:
- media: "(prefers-color-scheme)"
toggle:
Expand All @@ -55,17 +43,14 @@ theme:
toggle:
icon: material/brightness-4
name: Color theme set to Dark Mode. Click to change

# Theme features

features:
- announce.dismiss
- search.highlight
- navigation.top
- navigation.tracking
- navigation.tracking
- content.tabs.link
# - content.action.edit
- content.action.view
- content.code.copy
- content.code.copy

extra_css:
- https://unicons.iconscout.com/release/v3.0.3/css/line.css
Expand All @@ -92,18 +77,18 @@ markdown_extensions:
title: On this page
admonition: {}
footnotes: {}
def_list: {} # https://michelf.ca/projects/php-markdown/extra/#def-list
def_list: {}
meta: {}
md_in_html: {}
smarty:
{smart_angled_quotes: true}
pymdownx.details: {}
pymdownx.mark: {}
pymdownx.smartsymbols: {}
pymdownx.tabbed:
pymdownx.tabbed:
alternate_style: true
pymdownx.tilde: {}
pymdownx.superfences:
pymdownx.superfences:
custom_fences:
- name: mermaid
class: mermaid
Expand All @@ -113,8 +98,6 @@ markdown_extensions:
pymdownx.inlinehilite: {}
pymdownx.snippets:
base_path: ["snippets"]
# auto_append:
# - services-banner.md
pymdownx.emoji:
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
Expand All @@ -125,10 +108,10 @@ markdown_extensions:

plugins:
section-index: {}
search:
search:
separator: '[\s\-,:!=\[\]()"`/]+|\.(?!\d)|&[lg]t;|(?!\b)(?=[A-Z][a-z])'
open-in-new-tab: {}
git-revision-date-localized:
git-revision-date-localized:
enable_creation_date: true
enabled: !ENV [ENABLED_GIT_REVISION_DATE, True]
git-committers:
Expand All @@ -143,7 +126,7 @@ plugins:
max_length: 160
macros:
include_yaml:
- 'variables.yml' # Use in markdown as '{{ VAR }}'
- 'variables.yml'
mike:
version_selector: true
css_dir: css
Expand All @@ -153,11 +136,9 @@ plugins:
add_to_navigation: false
print_page_title: 'Percona Distribution for PostgreSQL documentation'
add_print_site_banner: false
# Table of contents
add_table_of_contents: true
toc_title: 'Table of Contents'
toc_depth: 2
# Content-related
add_full_urls: false
enumerate_headings: false
enumerate_headings_depth: 1
Expand All @@ -171,16 +152,14 @@ plugins:
extra:
version:
provider: mike
#homepage:
# https://docs.percona.com
postgresrecommended: 13

nav:
- 'Home': 'index.md'
- get-help.md
- Get started:
- Get started:
- Quickstart guide: installing.md
- 1. Install:
- 1. Install:
- Via apt: apt.md
- Via yum: yum.md
- From tarballs: tarball.md
Expand All @@ -189,8 +168,8 @@ nav:
- repo-overview.md
- sboms.md
- 2. Connect to PostgreSQL: connect.md
- 3. Manipulate data in PostgreSQL: crud.md
- 4. What's next: whats-next.md
- 3. Manipulate data in PostgreSQL: crud.md
- 4. What's next: whats-next.md
- Extensions:
- 'Extensions': extensions.md
- contrib.md
Expand Down Expand Up @@ -271,13 +250,12 @@ nav:
- "13.2 Update 4": release-notes/release-notes-v13.2.upd4.md
- "13.2 Update 3": release-notes/release-notes-v13.2.upd3.md
- "13.2 Update 2": release-notes/release-notes-v13.2.upd2.md
- 2020 (versions 13.0 - 13.2 Update):
- 2020 (versions 13.0 - 13.2 Update):
- "13.2 Update": release-notes/release-notes-v13.2.upd.md
- "13.2": release-notes/release-notes-v13.2.md
- "13.1": release-notes/release-notes-v13.1.md
- "13.0": release-notes/release-notes-v13.0.md
- Reference:
- Telemetry: telemetry.md
- Licensing: licensing.md
- Trademark policy: trademark-policy.md

- Trademark policy: trademark-policy.md