Skip to content

Commit

Permalink
add lanyon and fixes; @JuliaRegistrator register()
Browse files Browse the repository at this point in the history
  • Loading branch information
tlienart committed May 6, 2019
1 parent 902c6d4 commit 14b1398
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 46 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "JuDocTemplates"
uuid = "6793090a-55ae-11e9-0511-73b91164f4ea"
authors = ["Thibaut Lienart <tlienart@me.com>"]
version = "0.1.1"
version = "0.2.0"

[compat]
julia = "^1.0.0"
29 changes: 9 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
24 changes: 0 additions & 24 deletions src/templates/hyde/src/_css/adjust.css

This file was deleted.

12 changes: 11 additions & 1 deletion src/templates/hyde/src/_html_parts/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,17 @@
{{if hascode}} {{insert head_highlight.html }} {{end}}
<link rel="stylesheet" href="/css/judoc.css">
<link rel="stylesheet" href="/css/poole_hyde.css">
<link rel="stylesheet" href="/css/adjust.css">
<!-- style adjustments -->
<style>
html {font-size: 17px;}
.jd-content {position: relative; padding-left: 8%; padding-right: 5%; line-height: 1.35em;}
@media (min-width: 940px) {
.jd-content {width: 100%; margin-left: auto; margin-right: auto;}
}
@media (max-width: 768px) {
.jd-content {padding-left: 6%; padding-right: 6%;}
}
</style>
<link rel="icon" href="/assets/infra/favicon.png">
{{isdef title}} <title>{{fill title}}</title> {{end}}
</head>
Expand Down
8 changes: 8 additions & 0 deletions src/templates/pure-sm/src/_html_parts/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@
<link rel="stylesheet" href="/css/judoc.css">
<link rel="stylesheet" href="/css/pure.css">
<link rel="stylesheet" href="/css/side-menu.css">
<!-- style adjustments -->
<style>
.jd-content{padding-left:10%;}
@media (min-width: 940px) {
.jd-content {width: 640px; margin-left: 0px; padding-left: 80px;}
.header {width: 700px;}
}
</style>
<link rel="icon" href="/assets/infra/favicon.png">
{{isdef title}} <title>{{fill title}}</title> {{end}}
</head>
Expand Down

0 comments on commit 14b1398

Please sign in to comment.