Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Customise the theme colours and the navigation bar. Update the content to use jekyll template variables.
- Loading branch information
Emily Toop
committed
Feb 4, 2019
1 parent
02999db
commit f9ce958
Showing
12 changed files
with
90 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
.DS_Store | ||
.DS_Store* | ||
_site/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,5 @@ plugins: | |
- jekyll-feed | ||
- jekyll-seo-tag | ||
|
||
search_enabled: true | ||
search_enabled: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
<li class="navigation-list-item{% if page.url contains '/javadoc/' %} active{% endif %}"> | ||
<a href="{{ site.url }}/javadoc/index.html" class="navigation-list-link{% if page.url contains '/javadoc/' %} active{% endif %}">API Documentation</a> | ||
</li> | ||
<li class="navigation-list-item{% if page.url contains 'CHANGELOG' %} active{% endif %}"> | ||
<a href="{{ site.url }}/javadoc/mozilla-central/org/mozilla/geckoview/doc-files/CHANGELOG.md" class="navigation-list-link{% if page.url contains 'CHANGELOG' %} active{% endif %}">API Changelog</a> | ||
</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<nav role="navigation" aria-label="Main navigation"> | ||
<ul class="navigation-list"> | ||
{% assign pages_list = site.html_pages | sort:"nav_order" %} | ||
{% for node in pages_list %} | ||
<!-- <div>{{node.title}} = {{node.nav_exclude}}</div> --> | ||
{% unless node.nav_exclude %} | ||
{% if node.parent == nil %} | ||
<li class="navigation-list-item{% if page.url == node.url or page.parent == node.title or page.grand_parent == node.title %} active{% endif %}"> | ||
{% if page.parent == node.title or page.grand_parent == node.title %} | ||
{% assign first_level_url = node.url | absolute_url %} | ||
{% endif %} | ||
<a href="{{ node.url | absolute_url }}" class="navigation-list-link{% if page.url == node.url %} active{% endif %}">{{ node.title }}</a> | ||
{% if node.has_children %} | ||
{% assign children_list = site.html_pages | sort:"nav_order" %} | ||
<ul class="navigation-list-child-list "> | ||
{% for child in children_list %} | ||
{% if child.parent == node.title %} | ||
<li class="navigation-list-item {% if page.url == child.url or page.parent == child.title %} active{% endif %}"> | ||
{% if page.url == child.url or page.parent == child.title %} | ||
{% assign second_level_url = child.url | absolute_url %} | ||
{% endif %} | ||
<a href="{{ child.url | absolute_url }}" class="navigation-list-link{% if page.url == child.url %} active{% endif %}">{{ child.title }}</a> | ||
{% if child.has_children %} | ||
{% assign grand_children_list = site.html_pages | sort:"nav_order" %} | ||
<ul class="navigation-list-child-list"> | ||
{% for grand_child in grand_children_list %} | ||
{% if grand_child.parent == child.title %} | ||
<li class="navigation-list-item {% if page.url == grand_child.url %} active{% endif %}"> | ||
<a href="{{ grand_child.url | absolute_url }}" class="navigation-list-link{% if page.url == grand_child.url %} active{% endif %}">{{ grand_child.title }}</a> | ||
</li> | ||
{% endif %} | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
</li> | ||
{% endif %} | ||
{% endfor %} | ||
</ul> | ||
{% endif %} | ||
</li> | ||
{% endif %} | ||
{% endunless %} | ||
{% endfor %} | ||
{% include javadoc.html %} | ||
</ul> | ||
</nav> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
$sidebar-color: #ededf0; | ||
|
||
$body-text-color: #4a4a4f; | ||
$body-heading-color: #2a2a2e; | ||
$nav-child-link-color: #2a2a2e; | ||
|
||
$link-color: #0060df; | ||
$btn-primary-color: #003eaa; | ||
|
||
$code-background-color: #ededf0; |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters