Skip to content

Commit b1fef70

Browse files
committed
Embed just-the-docs theme files, may be that will work correctly on GitHub side.
1 parent 3f2b8e3 commit b1fef70

41 files changed

Lines changed: 2985 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

_includes/head.html

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<head>
2+
<meta charset="UTF-8">
3+
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
4+
{% if page.description %}
5+
<meta name="Description" content="{{ page.description }}">
6+
{% endif %}
7+
8+
<title>{{ page.title }} - {{ site.title }}</title>
9+
<link rel="stylesheet" href="{{ "/assets/css/just-the-docs.css" | absolute_url }}">
10+
11+
{% if site.ga_tracking != nil %}
12+
<script>
13+
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
14+
ga('create', '{{ site.ga_tracking }}', '{{ site.url }}');
15+
ga('send', 'pageview');
16+
</script>
17+
<script async src="https://www.google-analytics.com/analytics.js"></script>
18+
{% endif %}
19+
20+
{% if site.search_enabled != nil %}
21+
<script type="text/javascript" src="{{ "/assets/js/vendor/lunr.min.js" | absolute_url }}"></script>
22+
{% endif %}
23+
<script type="text/javascript" src="{{ "/assets/js/just-the-docs.js" | absolute_url }}"></script>
24+
25+
<meta name="viewport" content="width=device-width, initial-scale=1">
26+
</head>

_includes/nav.html

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<nav role="navigation" aria-label="Main navigation">
2+
<ul class="navigation-list">
3+
{% assign pages_list = site.html_pages | sort:"nav_order" %}
4+
{% for node in pages_list %}
5+
{% unless node.nav_exclude %}
6+
{% if node.parent == nil %}
7+
<li class="navigation-list-item{% if page.url == node.url or page.parent == node.title or page.grand_parent == node.title %} active{% endif %}">
8+
{% if page.parent == node.title or page.grand_parent == node.title %}
9+
{% assign first_level_url = node.url | absolute_url %}
10+
{% endif %}
11+
<a href="{{ node.url | absolute_url }}" class="navigation-list-link{% if page.url == node.url %} active{% endif %}">{{ node.title }}</a>
12+
{% if node.has_children %}
13+
{% assign children_list = site.html_pages | sort:"nav_order" %}
14+
<ul class="navigation-list-child-list ">
15+
{% for child in children_list %}
16+
{% if child.parent == node.title %}
17+
<li class="navigation-list-item {% if page.url == child.url or page.parent == child.title %} active{% endif %}">
18+
{% if page.url == child.url or page.parent == child.title %}
19+
{% assign second_level_url = child.url | absolute_url %}
20+
{% endif %}
21+
<a href="{{ child.url | absolute_url }}" class="navigation-list-link{% if page.url == child.url %} active{% endif %}">{{ child.title }}</a>
22+
{% if child.has_children %}
23+
{% assign grand_children_list = site.html_pages | sort:"nav_order" %}
24+
<ul class="navigation-list-child-list">
25+
{% for grand_child in grand_children_list %}
26+
{% if grand_child.parent == child.title %}
27+
<li class="navigation-list-item {% if page.url == grand_child.url %} active{% endif %}">
28+
<a href="{{ grand_child.url | absolute_url }}" class="navigation-list-link{% if page.url == grand_child.url %} active{% endif %}">{{ grand_child.title }}</a>
29+
</li>
30+
{% endif %}
31+
{% endfor %}
32+
</ul>
33+
{% endif %}
34+
</li>
35+
{% endif %}
36+
{% endfor %}
37+
</ul>
38+
{% endif %}
39+
</li>
40+
{% endif %}
41+
{% endunless %}
42+
{% endfor %}
43+
</ul>
44+
</nav>

_layouts/about.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
layout: default
3+
---
4+
5+
{{ content }}

_layouts/default.html

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
<!DOCTYPE html>
2+
3+
<html lang="en-us">
4+
{% include head.html %}
5+
<body>
6+
7+
<div class="page-wrap">
8+
<div class="side-bar">
9+
<a href="{{ site.url }}{{ site.baseurl }}" class="site-title fs-6 lh-tight">{{ site.title }}</a>
10+
<span class="fs-3"><button class="js-main-nav-trigger navigation-list-toggle btn btn-outline" type="button" data-text-toggle="Hide">Menu</button></span>
11+
<div class="navigation main-nav js-main-nav">
12+
{% include nav.html %}
13+
</div>
14+
<footer role="contentinfo" class="site-footer">
15+
<p class="text-small text-grey-dk-000 mb-0">This site uses <a href="https://github.com/pmarsceill/just-the-docs">Just the Docs</a>, a documentation theme for Jekyll.</p>
16+
</footer>
17+
</div>
18+
<div class="main-content-wrap js-main-content" tabindex="0">
19+
<div class="page-header">
20+
<div class="main-content">
21+
{% if site.search_enabled != nil %}
22+
<div class="search js-search">
23+
<div class="search-input-wrap">
24+
<input type="text" class="js-search-input search-input" tabindex="0" placeholder="Search {{ site.title }}" aria-label="Search {{ site.title }}" autocomplete="off">
25+
<svg width="14" height="14" viewBox="0 0 28 28" xmlns="http://www.w3.org/2000/svg" class="search-icon"><title>Search</title><g fill-rule="nonzero"><path d="M17.332 20.735c-5.537 0-10-4.6-10-10.247 0-5.646 4.463-10.247 10-10.247 5.536 0 10 4.601 10 10.247s-4.464 10.247-10 10.247zm0-4c3.3 0 6-2.783 6-6.247 0-3.463-2.7-6.247-6-6.247s-6 2.784-6 6.247c0 3.464 2.7 6.247 6 6.247z"/><path d="M11.672 13.791L.192 25.271 3.02 28.1 14.5 16.62z"/></g></svg>
26+
</div>
27+
<div class="js-search-results search-results-wrap"></div>
28+
</div>
29+
{% endif %}
30+
{% if site.aux_links != nil %}
31+
<ul class="list-style-none text-small mt-md-1 mb-md-1 pb-4 pb-md-0 js-aux-nav aux-nav">
32+
{% for link in site.aux_links %}
33+
<li class="d-inline-block my-0{% unless forloop.last %} mr-2{% endunless %}"><a href="{{ link.last }}">{{ link.first }}</a></li>
34+
{% endfor %}
35+
</ul>
36+
{% endif %}
37+
</div>
38+
</div>
39+
<div class="main-content">
40+
{% unless page.url == "/" %}
41+
{% if page.parent %}
42+
<nav class="breadcrumb-nav">
43+
<ol class="breadcrumb-nav-list">
44+
{% if page.grand_parent %}
45+
<li class="breadcrumb-nav-list-item"><a href="{{ first_level_url }}">{{ page.grand_parent }}</a></li>
46+
<li class="breadcrumb-nav-list-item"><a href="{{ second_level_url }}">{{ page.parent }}</a></li>
47+
{% else %}
48+
<li class="breadcrumb-nav-list-item"><a href="{{ first_level_url }}">{{ page.parent }}</a></li>
49+
{% endif %}
50+
<li class="breadcrumb-nav-list-item"><span>{{ page.title }}</span></li>
51+
</ol>
52+
</nav>
53+
{% endif %}
54+
{% endunless %}
55+
<div id="main-content" class="page-content" role="main">
56+
{{ content }}
57+
58+
{% if page.has_children == true and page.has_toc != false %}
59+
<hr>
60+
<h2 class="text-delta">Table of contents</h2>
61+
{% assign children_list = site.pages | sort:"nav_order" %}
62+
<ul>
63+
{% for child in children_list %}
64+
{% if child.parent == page.title and child.title != page.title %}
65+
<li>
66+
<a href="{{ child.url | absolute_url }}">{{ child.title }}</a>
67+
</li>
68+
{% endif %}
69+
{% endfor %}
70+
</ul>
71+
{% endif %}
72+
</div>
73+
</div>
74+
</div>
75+
</div>
76+
77+
</body>
78+
</html>

_layouts/home.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
layout: default
3+
---
4+
5+
{{ content }}

_layouts/page.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
layout: default
3+
---
4+
5+
{{ content }}

_layouts/post.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
layout: default
3+
---
4+
5+
{{ content }}

_sass/base.scss

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
//
2+
// Base element style overrides
3+
//
4+
// stylelint-disable selector-no-type, selector-max-type
5+
6+
* {
7+
box-sizing: border-box;
8+
}
9+
10+
::selection {
11+
color: $white;
12+
background: $link-color;
13+
}
14+
15+
html {
16+
@include fs-4;
17+
}
18+
19+
body {
20+
font-family: $body-font-family;
21+
font-size: inherit;
22+
line-height: $body-line-height;
23+
color: $body-text-color;
24+
background-color: $body-background-color;
25+
}
26+
27+
p,
28+
h1,
29+
h2,
30+
h3,
31+
h4,
32+
h5,
33+
h6,
34+
ol,
35+
ul,
36+
pre,
37+
address,
38+
blockquote,
39+
dl,
40+
div,
41+
fieldset,
42+
form,
43+
hr,
44+
noscript,
45+
table {
46+
margin-top: 0;
47+
}
48+
49+
h1,
50+
h2,
51+
h3,
52+
h4,
53+
h5,
54+
h6 {
55+
margin-top: 1.2em;
56+
margin-bottom: 0.8em;
57+
font-weight: 500;
58+
line-height: $body-heading-line-height;
59+
color: $body-heading-color;
60+
}
61+
62+
p {
63+
margin-bottom: 1em;
64+
}
65+
66+
a {
67+
color: $link-color;
68+
text-decoration: none;
69+
}
70+
71+
a:not([class]) {
72+
text-decoration: none;
73+
background-image: linear-gradient($border-color 0%, $border-color 100%);
74+
background-repeat: repeat-x;
75+
background-position: 0 100%;
76+
background-size: 1px 1px;
77+
78+
&:hover {
79+
background-image: linear-gradient(rgba($link-color, 0.45) 0%, rgba($link-color, 0.45) 100%);
80+
background-size: 1px 1px;
81+
82+
}
83+
}
84+
85+
code {
86+
font-family: $mono-font-family;
87+
font-size: 12px;
88+
line-height: $body-line-height;
89+
}
90+
91+
figure {
92+
margin: 0;
93+
}
94+
95+
li {
96+
margin: 0.25em 0;
97+
}
98+
99+
img {
100+
max-width: 100%;
101+
height: auto;
102+
}
103+
104+
hr {
105+
height: 1px;
106+
padding: 0;
107+
margin: $sp-6 0;
108+
background-color: $border-color;
109+
border: 0;
110+
}

0 commit comments

Comments
 (0)