on master help sign in
Urbit.org: Docs scaffold
946eac7Matilde Park
templates/doc.html+1−13
@@ -6,23 +6,11 @@
6<!-- search overlay (btn to activate located in navigations-docs partial) -->
6<!-- search overlay (btn to activate located in navigations-docs partial) -->
7{% include "partials/search-overlay.html" %}
7{% include "partials/search-overlay.html" %}
8<!-- content -->
8<!-- content -->
9−<div>
10− <div>
11− <div>
12 {% include "partials/navigation-docs.html" %}
9 {% include "partials/navigation-docs.html" %}
13− <div></div>
14− </div>
15− <div>
16− <div></div>
17− <article>
10+ <article class="mt6">
18 <!-- header -->
11 <!-- header -->
19 <h1>{{ page.title }}</h1>
12 <h1>{{ page.title }}</h1>
20 <!-- body -->
13 <!-- body -->
21− <div>
22 {{ page.content | safe }}
14 {{ page.content | safe }}
23− </div>
24 </article>
15 </article>
25− </div>
26− </div>
27−</div>
28{% endblock content %}
16{% endblock content %}
templates/partials/navigation-docs.html+9−4
@@ -1,14 +1,19 @@
1{% block content %}
1{% block content %}
2−<nav>
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>
3− <button id="js-search-window-toggle" type="button" style="outline:none">
8+ <button id="js-search-window-toggle" class="mt6 mb6" type="button" style="outline:none">
4− <div ><span >⚲</span></div><span >Search</span>
9+ <span id="search-icon" class="f3 gray3">⚲</span><span class="ml3 gray3">Search</span> <span class="gray3 search-slash">/</span>
5 </button>
10 </button>
6 <ul>
11 <ul>
7 {% block menu %}
12 {% block menu %}
8 {% set index = get_section(path="docs/_index.md") %}
13 {% set index = get_section(path="docs/_index.md") %}
9 {% for s in index.subsections %}
14 {% for s in index.subsections %}
10 {% set subsection = get_section(path=s) %}
15 {% set subsection = get_section(path=s) %}
11− <li>
16+ <li class="mt3">
12 <a href="{{ subsection.permalink }}">
17 <a href="{{ subsection.permalink }}">
13 {{ subsection.title }}
18 {{ subsection.title }}
14 </a>
19 </a>
templates/sections/docs.html+1−1
@@ -7,7 +7,7 @@
7{% include "partials/search-overlay.html" %}
7{% include "partials/search-overlay.html" %}
8<!-- content -->
8<!-- content -->
9 {% include "partials/navigation-docs.html" %}
9 {% include "partials/navigation-docs.html" %}
10− <article>
10+ <article class="mt6">
11 <!-- header -->
11 <!-- header -->
12 <h1>{{ section.title }}</h1>
12 <h1>{{ section.title }}</h1>
13 <!-- body -->
13 <!-- body -->
templates/sections/docs/chapters.html+1−13
@@ -6,23 +6,11 @@
6<!-- search overlay (btn to activate located in navigations-docs partial) -->
6<!-- search overlay (btn to activate located in navigations-docs partial) -->
7{% include "partials/search-overlay.html" %}
7{% include "partials/search-overlay.html" %}
8<!-- content -->
8<!-- content -->
9−<div>
10− <div>
11− <div>
12 {% include "partials/navigation-docs.html" %}
9 {% include "partials/navigation-docs.html" %}
13− <div></div>
14− </div>
15− <div>
16− <div></div>
17 <article>
10 <article>
18 <!-- header -->
11 <!-- header -->
19 <h1>{{ section.title }}</h1>
12 <h1>{{ section.title }}</h1>
20 <!-- body -->
13 <!-- body -->
21− <div>
22 {{ section.content | safe }}
14 {{ section.content | safe }}
23− </div>
15+
24− </div>
25− </div>
26− </div>
27−</div>
28{% endblock content %}
16{% endblock content %}