diff --git a/Project.toml b/Project.toml index 1ba56eda..deee1f8a 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "JuDocTemplates" uuid = "6793090a-55ae-11e9-0511-73b91164f4ea" authors = ["Thibaut Lienart "] -version = "0.1.1" +version = "0.2.0" [compat] julia = "^1.0.0" diff --git a/README.md b/README.md index 0ddc0433..c89f1141 100644 --- a/README.md +++ b/README.md @@ -4,23 +4,12 @@ Templates for [JuDoc](https://github.com/tlienart/JuDoc.jl), the static-site gen Most of these templates are adapted from popular existing templates with minor modifications to accommodate JuDoc's content. -The sources are listed below. - -| Name | Source | License | -| ---- | ------ | ------- | -| `"basic"` | N/A | MIT | -| `"hypertext"` | [grav theme hypertext](https://github.com/artofthesmart/hypertext) | [MIT](https://github.com/artofthesmart/hypertext/blob/master/LICENSE) | -| `"pure-sm"` | [pure css](https://purecss.io/layouts/side-menu/) | [Yahoo BSD](https://github.com/pure-css/pure-site/blob/master/LICENSE.md) | -| `"vela"` | [grav theme vela](https://github.com/danzinger/grav-theme-vela) | [MIT](https://github.com/danzinger/grav-theme-vela/blob/develop/LICENSE) | -| `"tufte"` | [Tufte CSS](https://github.com/edwardtufte/tufte-css), and a bit of [Lawler.io](https://github.com/Eiriksmal/lawler-dot-io) for the menu | [both](https://github.com/edwardtufte/tufte-css/blob/gh-pages/LICENSE) [MIT](https://github.com/Eiriksmal/lawler-dot-io/blob/main/license.md) | -| `"hyde"` | [Hyde](https://github.com/poole/hyde) | [MIT](https://github.com/poole/hyde/blob/master/LICENSE.md) | - -WIP - -| Name | Source | License | -| ---- | ------ | ------- | -| `"lanyon"` | [Lanyon](https://github.com/poole/lanyon) | [MIT](https://github.com/poole/lanyon/blob/master/LICENSE.md) - -## Contributing - -A guide on how to contribute your own template will be added soon. +| Name | Source | License | Nabar | JS | +| ---- | ------ | ------- | ----- | --- | +| `"basic"` | N/A | MIT | Top | No | +| `"hypertext"` | [grav theme hypertext](https://github.com/artofthesmart/hypertext) | [MIT](https://github.com/artofthesmart/hypertext/blob/master/LICENSE) | Top | No | +| `"pure-sm"` | [pure css](https://purecss.io/layouts/side-menu/) | [Yahoo BSD](https://github.com/pure-css/pure-site/blob/master/LICENSE.md) | Side | No | +| `"vela"` | [grav theme vela](https://github.com/danzinger/grav-theme-vela) | [MIT](https://github.com/danzinger/grav-theme-vela/blob/develop/LICENSE) | Side (collapsable) | Yes | +| `"tufte"` | [Tufte CSS](https://github.com/edwardtufte/tufte-css), and a bit of [Lawler.io](https://github.com/Eiriksmal/lawler-dot-io) for the menu | [both](https://github.com/edwardtufte/tufte-css/blob/gh-pages/LICENSE) [MIT](https://github.com/Eiriksmal/lawler-dot-io/blob/main/license.md) | Side | No | +| `"hyde"` | [Hyde](https://github.com/poole/hyde) | [MIT](https://github.com/poole/hyde/blob/master/LICENSE.md) | Side | No | +| `"lanyon"` | [Lanyon](https://github.com/poole/lanyon) | [MIT](https://github.com/poole/lanyon/blob/master/LICENSE.md) | Side (collapsable) | No | diff --git a/src/templates/hyde/src/_css/adjust.css b/src/templates/hyde/src/_css/adjust.css deleted file mode 100644 index 914d9e03..00000000 --- a/src/templates/hyde/src/_css/adjust.css +++ /dev/null @@ -1,24 +0,0 @@ -html { - font-size: 17px; -} - -.jd-content { - position: relative; - padding-left: 8%; - padding-right: 5%; - line-height: 1.35em; } - -/* on wide screens, fix content width to a max value */ -@media (min-width: 940px) { - .jd-content { - width: 100%; - margin-left: auto; - margin-right: auto; } - } - -/* on narrow device, reduce margins */ -@media (max-width: 768px) { - .jd-content { - padding-left: 6%; - padding-right: 6%; } - } diff --git a/src/templates/hyde/src/_html_parts/head.html b/src/templates/hyde/src/_html_parts/head.html index 73073ac7..9ea38ba6 100644 --- a/src/templates/hyde/src/_html_parts/head.html +++ b/src/templates/hyde/src/_html_parts/head.html @@ -7,7 +7,17 @@ {{if hascode}} {{insert head_highlight.html }} {{end}} - + + {{isdef title}} {{fill title}} {{end}} diff --git a/src/templates/pure-sm/src/_html_parts/head.html b/src/templates/pure-sm/src/_html_parts/head.html index 0f9f4bd5..3b055143 100644 --- a/src/templates/pure-sm/src/_html_parts/head.html +++ b/src/templates/pure-sm/src/_html_parts/head.html @@ -8,6 +8,14 @@ + + {{isdef title}} {{fill title}} {{end}}