Skip to content

Commit

Permalink
workaround for 404 error pages assets and sitemap links (hyperledger#…
Browse files Browse the repository at this point in the history
…1069)

RTD is still working on making MkDocs fully integrated. Some changes will be done during Google Summer of Code but this is a workaround to have 404 and sitemaps working before we have these fixes.
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
  • Loading branch information
NicolasMassart authored Mar 11, 2019
1 parent 7432013 commit b7a7455
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ target/
tmp/
build/
out/
site/
18 changes: 18 additions & 0 deletions docs/custom_theme/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{% extends "main.html" %}

<!-- Content block -->
{% block content %}

<p style="text-align: center;font-size: 3em"><i class="md-icon">account_balance</i></p>
<h1 id="404-page-not-found" style="text-align: center">404</h1>
<p style="text-align: center"><strong>Deity not found in the Pantheon</strong></p>
<p style="text-align: center">
Try the <a href="/">homepage</a>, or use the search field on the top of this page.
</p>
<p style="text-align: center">
If you think we made a mistake and deleted a page that should be here, then please tell us on
<a href="{{config.extra.support.gitter}}">{{config.site_name}} Gitter channel</a> or create an issue in
<a href="{{ config.repo_url + '/issues' }}">Pantheon Github repository</a>.
</p>

{% endblock %}
6 changes: 3 additions & 3 deletions docs/custom_theme/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
{% import "partials/language.html" as lang with context %}

<div class="feedback md-typeset">
Questions or feedback? You can discuss issues and obtain free support on <a href="{{config.extra.support.gitter}}">Pegasys Pantheon Gitter room</a>.
<br/>
For paid professional support by <a href="https://pegasys.tech/">PegaSys</a>, contact us at <a href="mailto:{{config.extra.support.email}}">{{config.extra.support.email}}</a>
Questions or feedback? You can discuss issues and obtain free support on <a href="{{config.extra.support.gitter}}">{{config.site_name}} Gitter channel</a>.
<br/>
For paid professional support by <a href="{{config.extra.support.pegasys_website}}">PegaSys</a>, contact us at <a href="mailto:{{config.extra.support.email}}">{{config.extra.support.email}}</a>
</div>

<!-- Application footer -->
Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
mkdocs>=1.0
pymdown-extensions==6.0
mkdocs-material>=3.1
mkdocs-material>=4.0
Markdown==3.0.1
markdown-fenced-code-tabs==1.0.5
markdown-include==0.5.1
Expand Down
5 changes: 3 additions & 2 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

# Project information
site_name: Pantheon
site_url: https://docs.pantheon.pegasys.tech/
site_url: https://docs.pantheon.pegasys.tech/en/stable/
site_description: Pantheon Java Ethereum client documentation.
site_author: Pantheon community
copyright: Pantheon and its documentation are licensed under Apache 2.0 license /
Expand All @@ -22,14 +22,15 @@ extra:
support:
gitter: https://gitter.im/PegaSysEng/pantheon
email: support@pegasys.tech
pegasys_website: https://pegasys.tech/
google:
analytics_id: 'UA-117921923-2'
site_verification: 'za1cLzyS6LXDGO-pMzvfQdYTZ0Zc67uZtY0asA4YXZ0'


# Repository
repo_name: PegaSysEng/pantheon
repo_url: https://github.com/PegaSysEng/pantheon
repo_url: https://github.com/PegaSysEng/pantheon/

theme:
name: material
Expand Down

0 comments on commit b7a7455

Please sign in to comment.