Skip to content

Commit

Permalink
PXB-2876 Reconfigure 404 page for docs (#158)
Browse files Browse the repository at this point in the history
modified:   _resource/overrides/main.html
  • Loading branch information
alina-derkach-oaza authored Aug 10, 2023
1 parent 7d20866 commit a3c595b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions _resource/overrides/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ <h1>404 - Not found</h1>
<p>
We can't find the page you are looking for. Try using the Search or <a href= "{{ config.extra.homepage | d(nav.homepage.url, true) | url }}"> return to homepage </a>. </p>
{% endblock %}

5 changes: 2 additions & 3 deletions _resource/overrides/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ <h3>Contact us </h3>
</div>
</div>

{%- endmacro %}

{%- endmacro %}
{% block extrahead %}
{{ super() }}
{% set title = config.site_name %}
Expand Down Expand Up @@ -51,7 +50,6 @@ <h3>Contact us </h3>
{% endblock %}

{% block content %}

<!-- Edit and view button -->
{% if page.edit_url %}
{% set edit = "https://github.com/percona/pxb-docs/edit/8.0/docs/" %}
Expand Down Expand Up @@ -95,3 +93,4 @@ <h1>{{ page.title | d(config.site_name, true)}}</h1>
{% endif %}
{% endif %}
{% endblock %}

5 changes: 5 additions & 0 deletions mkdocs-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ theme:
name: material
logo: _static/percona-logo.svg
favicon: _static/percona-favicon.ico
custom_dir: _resource/overrides
# 404 page
static_templates:
- 404.html
#- 404.md
font:
text: Poppins
palette:
Expand Down

0 comments on commit a3c595b

Please sign in to comment.