Skip to content

Commit

Permalink
DISTPG-746 New design scheme for docs (#535)
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 Mar 11, 2024
1 parent 7e0c94b commit fed50b1
Show file tree
Hide file tree
Showing 15 changed files with 504 additions and 91 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.
69 changes: 5 additions & 64 deletions _resource/overrides/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,76 +37,16 @@ <h4>Contact Us </h4>
<meta property="og:title" content="{{ title }}" />
<meta property="og:image" content="https://docs.percona.com/postgresql/12/_images/postgresql.png">
<meta property="og:url" content="https://docs.percona.com/postgresql/">
</head>
</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/12/docs/" %}
{% set view = "https://raw.githubusercontent.com/percona/postgresql-docs/12/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,4 +77,5 @@ <h1>{{ page.title | d(config.site_name, true)}}</h1>
</div>
</div>
{% endif %}
{% endblock %}
{% endblock %}

Loading

0 comments on commit fed50b1

Please sign in to comment.