on master help sign in
Urbit.org: Docs scaffold
commit946eac74cc8936440b51711b16e55aea5534ba54 authorMatilde Park <matilde@tlon.io> dateFri 30 Aug 2019, 17:49 (7 years ago) parenta0c0d95
4 files changed+12−31
templates/doc.html+1−13 templates/partials/navigation-docs.html+9−4 templates/sections/docs.html+1−1 templates/sections/docs/chapters.html+1−13
templates/doc.html+1−13
@@ -6,23 +6,11 @@
66<!-- search overlay (btn to activate located in navigations-docs partial) -->
77{% include "partials/search-overlay.html" %}
88<!-- content -->
9−<div>
10− <div>
11− <div>
129 {% include "partials/navigation-docs.html" %}
13− <div></div>
14− </div>
15− <div>
16− <div></div>
17− <article>
10+ <article class="mt6">
1811 <!-- header -->
1912 <h1>{{ page.title }}</h1>
2013 <!-- body -->
21− <div>
2214 {{ page.content | safe }}
23− </div>
2415 </article>
25− </div>
26− </div>
27−</div>
2816{% endblock content %}
templates/partials/navigation-docs.html+9−4
@@ -1,14 +1,19 @@
11{% block content %}
2−<nav>
3− <button id="js-search-window-toggle" type="button" style="outline:none">
4− <div ><span >⚲</span></div><span >Search</span>
2+<nav class="bg-gray1 pt6 full-left docs f5 f4-lg pr6">
3+ <a class="gray3" href="{{config.base_url}}">Urbit</a>
4+ <span class="gray3"> / </span>
5+ <a href="{{config.base_url}}/docs/">
6+ Documentation
7+ </a>
8+ <button id="js-search-window-toggle" class="mt6 mb6" type="button" style="outline:none">
9+ <span id="search-icon" class="f3 gray3">⚲</span><span class="ml3 gray3">Search</span> <span class="gray3 search-slash">/</span>
510 </button>
611 <ul>
712 {% block menu %}
813 {% set index = get_section(path="docs/_index.md") %}
914 {% for s in index.subsections %}
1015 {% set subsection = get_section(path=s) %}
11− <li>
16+ <li class="mt3">
1217 <a href="{{ subsection.permalink }}">
1318 {{ subsection.title }}
1419 </a>
templates/sections/docs.html+1−1
@@ -7,7 +7,7 @@
77{% include "partials/search-overlay.html" %}
88<!-- content -->
99 {% include "partials/navigation-docs.html" %}
10− <article>
10+ <article class="mt6">
1111 <!-- header -->
1212 <h1>{{ section.title }}</h1>
1313 <!-- body -->
templates/sections/docs/chapters.html+1−13
@@ -6,23 +6,11 @@
66<!-- search overlay (btn to activate located in navigations-docs partial) -->
77{% include "partials/search-overlay.html" %}
88<!-- content -->
9−<div>
10− <div>
11− <div>
129 {% include "partials/navigation-docs.html" %}
13− <div></div>
14− </div>
15− <div>
16− <div></div>
1710 <article>
1811 <!-- header -->
1912 <h1>{{ section.title }}</h1>
2013 <!-- body -->
21− <div>
2214 {{ section.content | safe }}
23− </div>
24− </div>
25− </div>
26− </div>
27−</div>
15+
2816{% endblock content %}