Skip to content

Commit

Permalink
DISTPG-746 New design scheme for docs (#524)
Browse files Browse the repository at this point in the history
new file:   _resource/.icons/percona/logo.svg
	modified:   _resource/overrides/main.html
	deleted:    _resource/overrides/partials/nav.html
	new file:   docs/css/design.css
modified:   mkdocs-base.yml
	modified:   mkdocs.yml
	new file:   snippets/services-banner.md
  • Loading branch information
nastena1606 authored Feb 28, 2024
1 parent 109d5da commit b2de2e2
Show file tree
Hide file tree
Showing 14 changed files with 498 additions and 79 deletions.
3 changes: 3 additions & 0 deletions _resource/.icons/percona/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
73 changes: 8 additions & 65 deletions _resource/overrides/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,77 +35,16 @@ <h4>Contact Us </h4>
{% 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/">
<meta property="og:image" content="https://docs.percona.com/percona-backup-mongodb/_images/mongodb.png">
<meta property="og:url" content="https://docs.percona.com/percona-backup-mongodb/">
</head>
<body>
</body>
</html>
{% endblock %}
{% endblock %}


{% block analytics %}
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-WBVF48V');</script>
<!-- End Google Tag Manager -->

<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WBVF48V"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
{% endblock %}

{% block content %}

<!-- Edit and view button -->
{% if page.edit_url %}
{% set edit = "https://github.com/percona/postgresql-docs/edit/15/docs/" %}
{% set view = "https://raw.githubusercontent.com/percona/postgresql-docs/15/docs/" %}
<a
href="{{ page.edit_url }}"
title="{{ lang.t('edit.link.title') }}"
class="md-content__button md-icon"
>
{% include ".icons/material/file-edit-outline.svg" %}
</a>
<a
href="{{ page.edit_url | replace(edit, view) }}"
title="View source of this page"
class="md-content__button md-icon"
>
{% include ".icons/material/file-eye-outline.svg" %}
</a>
{% endif %}

<!--
Hack: check whether the content contains a h1 headline. If it
doesn't, the page title (or respectively site name) is used
as the main headline.
-->
{% if "\x3ch1" not in page.content %}
<h1>{{ page.title | d(config.site_name, true)}}</h1>
{% endif %}

<!-- Markdown content -->
{{ page.content }}

{{ relbar2() }}

<!-- Last update of source file -->
{% if page and page.meta %}
{% if page.meta.git_revision_date_localized or
page.meta.revision_date
%}
{% include "partials/source-file.html" %}
{% endif %}
{% endif %}
{% endblock %}

{% block site_nav %}
{% block site_nav %}
{% if nav %}
{% if page.meta and page.meta.hide %}
{% set hidden = "hidden" if "navigation" in page.meta.hide %}
Expand Down Expand Up @@ -137,3 +76,7 @@ <h1>{{ page.title | d(config.site_name, true)}}</h1>
</div>
{% endif %}
{% endblock %}
<<<<<<< HEAD
=======

>>>>>>> 26199aee... DISTPG-746 New design scheme for docs
Loading

0 comments on commit b2de2e2

Please sign in to comment.