Skip to content

Commit

Permalink
Merge pull request #213 from peterdesmet/master
Browse files Browse the repository at this point in the history
Use remote theme
  • Loading branch information
peterdesmet authored Oct 29, 2018
2 parents 7c99acf + 1b426bd commit 9ed16c0
Show file tree
Hide file tree
Showing 12 changed files with 46 additions and 194 deletions.
2 changes: 1 addition & 1 deletion build/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
The build script `build.py` uses as input:

* [vocabulary/term_versions.csv](../vocabulary/term_versions.csv): the list of terms
* [docs/_layouts/terms.tmpl](../docs/_layouts/terms.tmpl): a Jinja2 template for the quick reference guide
* [terms.tmpl](terms.tmpl): a Jinja2 template for the quick reference guide

To create:

Expand Down
2 changes: 1 addition & 1 deletion build/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def process_terms(self):
template_data.append(class_group)
return template_data

def create_html(self, html_template="../docs/_layouts/terms.tmpl",
def create_html(self, html_template="terms.tmpl",
html_output="../docs/terms/index.md"):
"""build html with the processed term info, by filling in the
tmpl-template
Expand Down
3 changes: 3 additions & 0 deletions docs/_layouts/terms.tmpl → build/terms.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
This template is NOT use by jekyll, but by the Darwin Core build script
to create the terms/index.md file which mostly contains html.
#}
---
container: fluid
---

# Darwin Core quick reference guide

Expand Down
38 changes: 37 additions & 1 deletion docs/_config.yml
Original file line number Diff line number Diff line change
@@ -1 +1,37 @@
theme: jekyll-theme-cayman
# Site settings
title: Darwin Core
description: Website for the Darwin Core standard.
url: "https://dwc.tdwg.com"

navbar:
left:
- text: Terms
href: terms/
- text: Guides
menu:
- text: Simple Darwin Core
href: simple/
- text: Text
href: text/
- text: XML
href: xml/
- text: RDF
href: rdf/
- text: Namespace policy
href: namespace/
right:
- text: GitHub
href: https://github.com/tdwg/dwc

js: >-
$(document).ready(function() {
// In quick reference guide: add divider in sidebar after UseWithIRI
$("a[href='#usewithiri']", "#theme-sidebar-nav").parent().addClass("theme-divider-below");
});
# Build settings
markdown: kramdown
theme: tdwg-theme-jekyll
remote_theme: tdwg/tdwg-theme-jekyll
plugins:
- jekyll-feed
21 changes: 0 additions & 21 deletions docs/_includes/footer.html

This file was deleted.

20 changes: 0 additions & 20 deletions docs/_includes/head.html

This file was deleted.

32 changes: 0 additions & 32 deletions docs/_includes/navbar.html

This file was deleted.

85 changes: 0 additions & 85 deletions docs/_includes/toc.html

This file was deleted.

28 changes: 0 additions & 28 deletions docs/_layouts/default.html

This file was deleted.

2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
container: fixed
layout: home
---

# Darwin Core
Expand Down
4 changes: 0 additions & 4 deletions docs/namespace/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
---
container: fixed
---

# Darwin Core namespace policy

Title
Expand Down
3 changes: 3 additions & 0 deletions docs/terms/index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
---
container: fluid
---

# Darwin Core quick reference guide

Expand Down

0 comments on commit 9ed16c0

Please sign in to comment.