Skip to content

Commit

Permalink
Add text snippets (#369)
Browse files Browse the repository at this point in the history
modified:   _resource/overrides/main.html
	modified:   mkdocs-base.yml
	modified:   requirements.txt
  • Loading branch information
alina-derkach-oaza authored May 12, 2023
1 parent 128a6a0 commit 9904b08
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
21 changes: 12 additions & 9 deletions _resource/overrides/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,18 @@ <h4>Contact Us </h4>
</div>
{%- endmacro %}

{% block extrahead %}
{{ super() }}

<html data-lt-installed="true">
<head>
<meta property="og:title" content="Percona Distribution for PostgreSQL">
<meta property="og:description" content="Documentation">
<meta property="og:image" content="https://docs.percona.com/postgresql/15/_images/postgresql.png"
<meta property="og:url" content="https://docs.percona.com/postgresql/">
{% 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 %}
<meta property="og:type" content="website" />
<meta property="og:title" content="{{ title }}" />
<meta property="og:image" content="https://docs.percona.com/postgresql/15/_images/postgresql.png">
<meta property="og:url" content="https://docs.percona.com/postgresql/">
</head>
<body>
</body>
Expand Down
6 changes: 6 additions & 0 deletions mkdocs-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ plugins:
git-revision-date-localized:
enable_creation_date: true
enabled: !ENV [ENABLED_GIT_REVISION_DATE, True]
meta-descriptions:
export_csv: false
quiet: false
enable_checks: false
min_length: 50
max_length: 160
macros:
include_yaml:
# - 'variables.yml' # Use in markdown as '{{ VAR }}'
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ mkdocs-material-extensions
mkdocs-bootstrap-tables-plugin
mkdocs-section-index
mkdocs-htmlproofer-plugin
mkdocs-meta-descriptions-plugin
mike

0 comments on commit 9904b08

Please sign in to comment.