Skip to content

Commit

Permalink
update templates (#492)
Browse files Browse the repository at this point in the history
update theme
update templates override and move them out of content dir
update config for moved templates

Fixes #490

Signed-off-by: Nicolas MASSART <nicolas.massart@consensys.net>

Co-authored-by: MadelineMurray <43356962+MadelineMurray@users.noreply.github.com>
  • Loading branch information
NicolasMassart and MadelineMurray authored Aug 18, 2020
1 parent 652604d commit 50edb18
Show file tree
Hide file tree
Showing 19 changed files with 28 additions and 111 deletions.
2 changes: 1 addition & 1 deletion CI/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mkdocs==1.1.2
mkdocs-material==5.4.0
mkdocs-material==5.5.6
Markdown==3.2.1
markdown-fenced-code-tabs==1.0.3
markdown-include==0.5.1
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
26 changes: 26 additions & 0 deletions custom_theme/partials/nav.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{#-
This file was automatically generated - do not edit
-#}
<nav class="md-nav md-nav--primary" aria-label="{{ lang.t('nav.title') }}" data-md-level="0">
<label class="md-nav__title" for="__drawer">
<a href="{{ config.site_url | default(nav.homepage.url, true) | url }}" title="{{ config.site_name }}" class="md-nav__button md-logo" aria-label="{{ config.site_name }}">
{% include "partials/logo.html" %}
</a>
<a href="{{ config.site_url | default(nav.homepage.url, true) | url }}"
title="{{ config.site_name }}">
{{ config.site_name }}
</a>
</label>
{% if config.repo_url %}
<div class="md-nav__source">
{% include "partials/source.html" %}
</div>
{% endif %}
<ul class="md-nav__list" data-md-scrollfix>
{% for nav_item in nav %}
{% set path = "nav-" + loop.index | string %}
{% set level = 1 %}
{% include "partials/nav-item.html" %}
{% endfor %}
</ul>
</nav>
File renamed without changes.
57 changes: 0 additions & 57 deletions docs/custom_theme/partials/nav.html

This file was deleted.

52 changes: 0 additions & 52 deletions docs/custom_theme/partials/search.html

This file was deleted.

2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ repo_url: https://github.com/hyperledger/besu/

theme:
name: material
custom_dir: docs/custom_theme
custom_dir: custom_theme
palette:
primary: blue-grey
accent: teal
Expand Down

0 comments on commit 50edb18

Please sign in to comment.