diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 00000000..20663c07 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,7 @@ +# Contributing to Vapor Docs + +Found a mistake or want to add something? Fork the documentation, fix it, and submit a pull request. + +We'll merge it as soon as we can. + +Thanks! \ No newline at end of file diff --git a/couscous.yml b/couscous.yml index 90484e8c..6fb81c46 100644 --- a/couscous.yml +++ b/couscous.yml @@ -8,24 +8,6 @@ baseUrl: https://qutheory.github.io/documentation menu: sections: - links: - name: Links - items: - website: - text: Qutheory.io - absoluteUrl: http://qutheory.io - example: - text: Example - absoluteUrl: http://example.qutheory.io - github: - text: GitHub - absoluteUrl: https://github.com/qutheory/vapor - twitter: - text: Twitter - absoluteUrl: https://twitter.com/@qutheory - slack: - text: Slack - absoluteUrl: http://slack.qutheory.io getting-started: name: Getting Started items: diff --git a/template/default.twig b/template/default.twig index 4b9dd065..6568a190 100644 --- a/template/default.twig +++ b/template/default.twig @@ -18,6 +18,23 @@ Vapor

Vapor Docs

+
+ ✏️ Edit {{ content | raw }}
diff --git a/template/styles/main.css b/template/styles/main.css index aac3cd9a..8694ccb3 100644 --- a/template/styles/main.css +++ b/template/styles/main.css @@ -87,6 +87,26 @@ header { border-bottom: 3px solid #94a9d1; } +header ul { + position: absolute; + right: 24px; + top: 24px; + height: 100%; + margin: 0; + padding: 0; +} + +header ul li { + display: inline-block; + line-height: 48px; +} + +header ul li a { + padding: 0 6px; + display: block; + border-bottom: none; +} + nav { position: absolute; left: 0; @@ -164,6 +184,13 @@ main { height: 100%; } +main a.edit { + position: absolute; + top: 122px; + right: 24px; + border-bottom: none; +} + main h2 { margin-top: 24px; border-bottom: 1px dotted rgba(0, 0, 0, 0.10); @@ -190,7 +217,7 @@ p code { pre { margin-top: 12px; - margin-bottom: 12px; + margin-bottom: 15px; padding: 5px; background: #fbfbfb; border-radius: 10px;