apx-docs-theme 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +39 -0
- data/_includes/footer.html +10 -0
- data/_includes/head.html +14 -0
- data/_includes/js_files.html +8 -0
- data/_includes/pages_nav.html +40 -0
- data/_includes/section_nav.html +52 -0
- data/_includes/toc.html +87 -0
- data/_includes/topnav.html +37 -0
- data/_layouts/default.html +20 -0
- data/_layouts/docs.html +36 -0
- data/_layouts/page.html +15 -0
- data/_layouts/post.html +43 -0
- data/_sass/_bootstrap.scss +56 -0
- data/_sass/_syntax-highlighting.scss +71 -0
- data/_sass/_typeahead.scss +59 -0
- data/_sass/bootstrap/_alerts.scss +73 -0
- data/_sass/bootstrap/_badges.scss +68 -0
- data/_sass/bootstrap/_breadcrumbs.scss +28 -0
- data/_sass/bootstrap/_button-groups.scss +244 -0
- data/_sass/bootstrap/_buttons.scss +168 -0
- data/_sass/bootstrap/_carousel.scss +270 -0
- data/_sass/bootstrap/_close.scss +36 -0
- data/_sass/bootstrap/_code.scss +69 -0
- data/_sass/bootstrap/_component-animations.scss +37 -0
- data/_sass/bootstrap/_dropdowns.scss +216 -0
- data/_sass/bootstrap/_forms.scss +617 -0
- data/_sass/bootstrap/_glyphicons.scss +307 -0
- data/_sass/bootstrap/_grid.scss +84 -0
- data/_sass/bootstrap/_input-groups.scss +171 -0
- data/_sass/bootstrap/_jumbotron.scss +54 -0
- data/_sass/bootstrap/_labels.scss +66 -0
- data/_sass/bootstrap/_list-group.scss +130 -0
- data/_sass/bootstrap/_media.scss +66 -0
- data/_sass/bootstrap/_mixins.scss +40 -0
- data/_sass/bootstrap/_modals.scss +150 -0
- data/_sass/bootstrap/_navbar.scss +662 -0
- data/_sass/bootstrap/_navs.scss +242 -0
- data/_sass/bootstrap/_normalize.scss +424 -0
- data/_sass/bootstrap/_pager.scss +54 -0
- data/_sass/bootstrap/_pagination.scss +89 -0
- data/_sass/bootstrap/_panels.scss +271 -0
- data/_sass/bootstrap/_popovers.scss +131 -0
- data/_sass/bootstrap/_print.scss +101 -0
- data/_sass/bootstrap/_progress-bars.scss +87 -0
- data/_sass/bootstrap/_responsive-embed.scss +35 -0
- data/_sass/bootstrap/_responsive-utilities.scss +179 -0
- data/_sass/bootstrap/_scaffolding.scss +161 -0
- data/_sass/bootstrap/_tables.scss +234 -0
- data/_sass/bootstrap/_theme.scss +291 -0
- data/_sass/bootstrap/_thumbnails.scss +38 -0
- data/_sass/bootstrap/_tooltip.scss +101 -0
- data/_sass/bootstrap/_type.scss +298 -0
- data/_sass/bootstrap/_utilities.scss +55 -0
- data/_sass/bootstrap/_variables.scss +874 -0
- data/_sass/bootstrap/_wells.scss +29 -0
- data/_sass/bootstrap/mixins/_alerts.scss +14 -0
- data/_sass/bootstrap/mixins/_background-variant.scss +12 -0
- data/_sass/bootstrap/mixins/_border-radius.scss +18 -0
- data/_sass/bootstrap/mixins/_buttons.scss +65 -0
- data/_sass/bootstrap/mixins/_center-block.scss +7 -0
- data/_sass/bootstrap/mixins/_clearfix.scss +22 -0
- data/_sass/bootstrap/mixins/_forms.scss +88 -0
- data/_sass/bootstrap/mixins/_gradients.scss +58 -0
- data/_sass/bootstrap/mixins/_grid-framework.scss +81 -0
- data/_sass/bootstrap/mixins/_grid.scss +122 -0
- data/_sass/bootstrap/mixins/_hide-text.scss +21 -0
- data/_sass/bootstrap/mixins/_image.scss +33 -0
- data/_sass/bootstrap/mixins/_labels.scss +12 -0
- data/_sass/bootstrap/mixins/_list-group.scss +32 -0
- data/_sass/bootstrap/mixins/_nav-divider.scss +10 -0
- data/_sass/bootstrap/mixins/_nav-vertical-align.scss +9 -0
- data/_sass/bootstrap/mixins/_opacity.scss +8 -0
- data/_sass/bootstrap/mixins/_pagination.scss +24 -0
- data/_sass/bootstrap/mixins/_panels.scss +24 -0
- data/_sass/bootstrap/mixins/_progress-bar.scss +10 -0
- data/_sass/bootstrap/mixins/_reset-filter.scss +8 -0
- data/_sass/bootstrap/mixins/_reset-text.scss +18 -0
- data/_sass/bootstrap/mixins/_resize.scss +6 -0
- data/_sass/bootstrap/mixins/_responsive-visibility.scss +21 -0
- data/_sass/bootstrap/mixins/_size.scss +10 -0
- data/_sass/bootstrap/mixins/_tab-focus.scss +9 -0
- data/_sass/bootstrap/mixins/_table-row.scss +28 -0
- data/_sass/bootstrap/mixins/_text-emphasis.scss +12 -0
- data/_sass/bootstrap/mixins/_text-overflow.scss +8 -0
- data/_sass/bootstrap/mixins/_vendor-prefixes.scss +222 -0
- data/assets/css/font-awesome.min.css +4 -0
- data/assets/css/main.scss +94 -0
- data/assets/fonts/FontAwesome.otf +0 -0
- data/assets/fonts/fontawesome-webfont.eot +0 -0
- data/assets/fonts/fontawesome-webfont.svg +2671 -0
- data/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/assets/fonts/fontawesome-webfont.woff +0 -0
- data/assets/fonts/fontawesome-webfont.woff2 +0 -0
- data/assets/img/bg.jpg +0 -0
- data/assets/img/logo.png +0 -0
- data/assets/js/bootstrap.min.js +7 -0
- data/assets/js/main.js +34 -0
- data/assets/js/typeahead.bundle.min.js +8 -0
- metadata +255 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 61304e2beb644868c38ea4b40a4c32e6fcdc584d
|
4
|
+
data.tar.gz: 7d307094420fc8bed6d1469044914eb9b016f62e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4a38f890899595cc9cdef2324267ada9cda8f7f9eff2f53b6df133aeb4afc7a675513618db0b15cae38bce0db65d8edd0449fb5233828a95b599aa08cbf7cde0
|
7
|
+
data.tar.gz: 517f7fe096cf850adaa603a161e8aa73460029abb228013265cd3a0cbc7555181dece408c0fc3635b401e8fbc464240f429338c53f20e72df34bb619a776f462
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2019 Aliaksei Stratsilatau
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
# apx-docs-theme
|
2
|
+
|
3
|
+
To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
|
4
|
+
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
|
8
|
+
Add this line to your Jekyll site's `Gemfile`:
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
gem "apx-docs-theme"
|
12
|
+
```
|
13
|
+
|
14
|
+
And add this line to your Jekyll site's `_config.yml`:
|
15
|
+
|
16
|
+
```yaml
|
17
|
+
theme: apx-docs-theme
|
18
|
+
```
|
19
|
+
|
20
|
+
And then execute:
|
21
|
+
|
22
|
+
$ bundle
|
23
|
+
|
24
|
+
Or install it yourself as:
|
25
|
+
|
26
|
+
$ gem install apx-docs-theme
|
27
|
+
|
28
|
+
## Development
|
29
|
+
|
30
|
+
To set up your environment to develop this theme, run `bundle install`.
|
31
|
+
|
32
|
+
Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
|
33
|
+
|
34
|
+
When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
|
35
|
+
To add a custom directory to your theme-gem, please edit the regexp in `apx-docs-theme.gemspec` accordingly.
|
36
|
+
|
37
|
+
## License
|
38
|
+
|
39
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<footer class="footer">
|
2
|
+
<div class="container">
|
3
|
+
|
4
|
+
<p class="text-center">
|
5
|
+
{{ site.title }} by UAVOS Inc. {{ site.time | date: '%Y' }} |
|
6
|
+
© <a href="https://linkedin.com/in/uavinda">Aliaksei Stratsilatau</a>
|
7
|
+
</p>
|
8
|
+
<!-- <p class="text-muted">Place sticky footer content here.</p> -->
|
9
|
+
</div>
|
10
|
+
</footer>
|
data/_includes/head.html
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
<head>
|
2
|
+
<meta charset="utf-8">
|
3
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
5
|
+
|
6
|
+
<link rel="stylesheet" href="{{ "/assets/css/main.css" | prepend: site.baseurl }}">
|
7
|
+
<link rel="stylesheet" href="{{ "/assets/css/font-awesome.min.css" | prepend: site.baseurl }}">
|
8
|
+
|
9
|
+
<link rel="shortcut icon" href="{{ "/favicon.ico?1" | prepend: site.baseurl }}">
|
10
|
+
{% seo %}
|
11
|
+
|
12
|
+
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
|
13
|
+
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" />
|
14
|
+
</head>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<script>
|
2
|
+
var baseurl = '{{ site.baseurl }}'
|
3
|
+
</script>
|
4
|
+
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
|
5
|
+
<script src="{{ "/assets/js/bootstrap.min.js" | prepend: site.baseurl }} "></script>
|
6
|
+
<script src="{{ "/assets/js/typeahead.bundle.min.js" | prepend: site.baseurl }} "></script>
|
7
|
+
|
8
|
+
<script src="{{ "/assets/js/main.js" | prepend: site.baseurl }} "></script>
|
@@ -0,0 +1,40 @@
|
|
1
|
+
{% assign section = page.id | split: "/" | shift | first %}
|
2
|
+
{% assign sdata = site.data[section] %}
|
3
|
+
{% if sdata.docs %}
|
4
|
+
|
5
|
+
<div class="{{ include.class }}">
|
6
|
+
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
|
7
|
+
{% for h in sdata.docs %}
|
8
|
+
<div class="panel panel-default">
|
9
|
+
<div class="panel-heading">
|
10
|
+
<h4 class="panel-title">
|
11
|
+
<a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapse-{{forloop.index}}" aria-expanded="false" aria-controls="collapse-{{forloop.index}}">
|
12
|
+
{{ h.title }}
|
13
|
+
</a>
|
14
|
+
</h4>
|
15
|
+
</div>
|
16
|
+
<div id="collapse-{{forloop.index}}" class="panel-collapse collapse" role="tabpanel" aria-label="Side Navigation">
|
17
|
+
<div class="list-group">
|
18
|
+
{% if sdata.doc %}
|
19
|
+
{% assign shome = sdata.doc %}
|
20
|
+
{% else %}
|
21
|
+
{% assign shome = "index" %}
|
22
|
+
{% endif %}
|
23
|
+
|
24
|
+
{% assign sdocs = shome | concat: h.pages %}
|
25
|
+
{% for item in sdocs %}
|
26
|
+
|
27
|
+
{% assign sid = section | prepend:"/" | append:"/" | append:item %}
|
28
|
+
{% assign doc = site.docs | where:"id", sid | first %}
|
29
|
+
|
30
|
+
<a class="list-group-item {% if doc.id == page.id %}active{% endif %}" href="{{ doc.url | prepend: site.baseurl }}">
|
31
|
+
{{ doc.title }}
|
32
|
+
</a>
|
33
|
+
{% endfor %}
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
{% endfor %}
|
38
|
+
</div>
|
39
|
+
</div>
|
40
|
+
{% endif %}
|
@@ -0,0 +1,52 @@
|
|
1
|
+
{% comment %}
|
2
|
+
Map grabs the doc sections, giving us an array of arrays. Join, flattens all
|
3
|
+
the items to a comma delimited string. Split turns it into an array again.
|
4
|
+
{% endcomment %}
|
5
|
+
{% assign docs = site.data.docs | map: 'docs' | join: ',' | split: ',' %}
|
6
|
+
|
7
|
+
{% comment %}
|
8
|
+
Because this is built for every page, lets find where we are in the ordered
|
9
|
+
document list by comparing url strings. Then if there's something previous or
|
10
|
+
next, lets build a link to it.
|
11
|
+
{% endcomment %}
|
12
|
+
|
13
|
+
{% for document in docs %}
|
14
|
+
{% assign document_url = document | prepend:"/docs/" | append:"/" %}
|
15
|
+
{% if document_url == page.url %}
|
16
|
+
<ul class="pager">
|
17
|
+
{% if forloop.first %}
|
18
|
+
<li class="previous disabled">
|
19
|
+
<a>
|
20
|
+
<span aria-hidden="true">←</span> Previous
|
21
|
+
</a>
|
22
|
+
</li>
|
23
|
+
{% else %}
|
24
|
+
{% assign previous = forloop.index0 | minus: 1 %}
|
25
|
+
{% assign previous_page = docs[previous] | prepend:"/docs/" | append:"/" %}
|
26
|
+
<li class="previous">
|
27
|
+
<a href="{{ previous_page | prepend: site.baseurl }}">
|
28
|
+
<span aria-hidden="true">←</span> Previous
|
29
|
+
</a>
|
30
|
+
</li>
|
31
|
+
{% endif %}
|
32
|
+
|
33
|
+
{% if forloop.last %}
|
34
|
+
<li class="next disabled">
|
35
|
+
<a>
|
36
|
+
Next <span aria-hidden="true">→</span>
|
37
|
+
</a>
|
38
|
+
</li>
|
39
|
+
{% else %}
|
40
|
+
{% assign next = forloop.index0 | plus: 1 %}
|
41
|
+
{% assign next_page = docs[next] | prepend:"/docs/" | append:"/" %}
|
42
|
+
<li class="next">
|
43
|
+
<a href="{{ next_page | prepend: site.baseurl }}">
|
44
|
+
Next <span aria-hidden="true">→</span>
|
45
|
+
</a>
|
46
|
+
</li>
|
47
|
+
{% endif %}
|
48
|
+
</ul>
|
49
|
+
<div class="clear"></div>
|
50
|
+
{% break %}
|
51
|
+
{% endif %}
|
52
|
+
{% endfor %}
|
data/_includes/toc.html
ADDED
@@ -0,0 +1,87 @@
|
|
1
|
+
{% capture tocWorkspace %}
|
2
|
+
{% comment %}
|
3
|
+
Version 1.0.6
|
4
|
+
https://github.com/allejo/jekyll-toc
|
5
|
+
|
6
|
+
"...like all things liquid - where there's a will, and ~36 hours to spare, there's usually a/some way" ~jaybe
|
7
|
+
|
8
|
+
Usage:
|
9
|
+
{% include toc.html html=content sanitize=true class="inline_toc" id="my_toc" h_min=2 h_max=3 %}
|
10
|
+
|
11
|
+
Parameters:
|
12
|
+
* html (string) - the HTML of compiled markdown generated by kramdown in Jekyll
|
13
|
+
|
14
|
+
Optional Parameters:
|
15
|
+
* sanitize (bool) : false - when set to true, the headers will be stripped of any HTML in the TOC
|
16
|
+
* class (string) : '' - a CSS class assigned to the TOC
|
17
|
+
* id (string) : '' - an ID to assigned to the TOC
|
18
|
+
* h_min (int) : 1 - the minimum TOC header level to use; any header lower than this value will be ignored
|
19
|
+
* h_max (int) : 6 - the maximum TOC header level to use; any header greater than this value will be ignored
|
20
|
+
* ordered (bool) : false - when set to true, an ordered list will be outputted instead of an unordered list
|
21
|
+
* item_class (string) : '' - add custom class(es) for each list item; has support for '%level%' placeholder, which is the current heading level
|
22
|
+
* baseurl (string) : '' - add a base url to the TOC links for when your TOC is on another page than the actual content
|
23
|
+
* anchor_class (string) : '' - add custom class(es) for each anchor element
|
24
|
+
|
25
|
+
Output:
|
26
|
+
An ordered or unordered list representing the table of contents of a markdown block. This snippet will only
|
27
|
+
generate the table of contents and will NOT output the markdown given to it
|
28
|
+
{% endcomment %}
|
29
|
+
|
30
|
+
{% capture my_toc %}{% endcapture %}
|
31
|
+
{% assign orderedList = include.ordered | default: false %}
|
32
|
+
{% assign minHeader = include.h_min | default: 1 %}
|
33
|
+
{% assign maxHeader = include.h_max | default: 6 %}
|
34
|
+
{% assign nodes = include.html | split: '<h' %}
|
35
|
+
{% assign firstHeader = true %}
|
36
|
+
|
37
|
+
{% capture listModifier %}{% if orderedList %}1.{% else %}-{% endif %}{% endcapture %}
|
38
|
+
|
39
|
+
{% for node in nodes %}
|
40
|
+
{% if node == "" %}
|
41
|
+
{% continue %}
|
42
|
+
{% endif %}
|
43
|
+
|
44
|
+
{% assign headerLevel = node | replace: '"', '' | slice: 0, 1 | times: 1 %}
|
45
|
+
|
46
|
+
{% if headerLevel < minHeader or headerLevel > maxHeader %}
|
47
|
+
{% continue %}
|
48
|
+
{% endif %}
|
49
|
+
|
50
|
+
{% if firstHeader %}
|
51
|
+
{% assign firstHeader = false %}
|
52
|
+
{% assign minHeader = headerLevel %}
|
53
|
+
{% endif %}
|
54
|
+
|
55
|
+
{% assign indentAmount = headerLevel | minus: minHeader | add: 1 %}
|
56
|
+
{% assign _workspace = node | split: '</h' %}
|
57
|
+
|
58
|
+
{% assign _idWorkspace = _workspace[0] | split: 'id="' %}
|
59
|
+
{% assign _idWorkspace = _idWorkspace[1] | split: '"' %}
|
60
|
+
{% assign html_id = _idWorkspace[0] %}
|
61
|
+
|
62
|
+
{% capture _hAttrToStrip %}{{ _workspace[0] | split: '>' | first }}>{% endcapture %}
|
63
|
+
{% assign header = _workspace[0] | replace: _hAttrToStrip, '' %}
|
64
|
+
|
65
|
+
{% assign space = '' %}
|
66
|
+
{% for i in (1..indentAmount) %}
|
67
|
+
{% assign space = space | prepend: ' ' %}
|
68
|
+
{% endfor %}
|
69
|
+
|
70
|
+
{% unless include.item_class == blank %}
|
71
|
+
{% capture listItemClass %}{:.{{ include.item_class | replace: '%level%', headerLevel }}}{% endcapture %}
|
72
|
+
{% endunless %}
|
73
|
+
|
74
|
+
{% capture my_toc %}{{ my_toc }}
|
75
|
+
{{ space }}{{ listModifier }} {{ listItemClass }} [{% if include.sanitize %}{{ header | strip_html }}{% else %}{{ header }}{% endif %}]({% if include.baseurl %}{{ include.baseurl }}{% endif %}#{{ html_id }}){% if include.anchor_class %}{:.{{ include.anchor_class }}}{% endif %}{% endcapture %}
|
76
|
+
{% endfor %}
|
77
|
+
|
78
|
+
{% if include.class %}
|
79
|
+
{% capture my_toc %}{:.{{ include.class }}}
|
80
|
+
{{ my_toc | lstrip }}{% endcapture %}
|
81
|
+
{% endif %}
|
82
|
+
|
83
|
+
{% if include.id %}
|
84
|
+
{% capture my_toc %}{: #{{ include.id }}}
|
85
|
+
{{ my_toc | lstrip }}{% endcapture %}
|
86
|
+
{% endif %}
|
87
|
+
{% endcapture %}{% assign tocWorkspace = '' %}{{ my_toc | markdownify | strip }}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
<nav class="navbar navbar-default navbar-fixed-top" id="custom-navss">
|
2
|
+
<div class="container navbar-container">
|
3
|
+
<div class="navbar-header">
|
4
|
+
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
|
5
|
+
<span class="sr-only">Toggle navigation</span>
|
6
|
+
<span class="icon-bar"></span>
|
7
|
+
<span class="icon-bar"></span>
|
8
|
+
<span class="icon-bar"></span>
|
9
|
+
</button>
|
10
|
+
<a class="navbar-brand" href="{{ site.baseurl }}/">
|
11
|
+
<span><img src="{{site.baseurl}}/assets/img/logo.png" alt="Logo"></span> {{ site.title }}
|
12
|
+
</a>
|
13
|
+
</div>
|
14
|
+
<div id="navbar" class="collapse navbar-collapse">
|
15
|
+
<ul class="nav navbar-nav">
|
16
|
+
{% for section in site.data.sections %}
|
17
|
+
{% assign sdata = site.data[section] %}
|
18
|
+
{% if sdata.doc %}
|
19
|
+
{% assign sid = sdata.doc | prepend:"/" %}
|
20
|
+
{% else %}
|
21
|
+
{% assign sid = section | prepend:"/" | append:"/index" %}
|
22
|
+
{% endif %}
|
23
|
+
{% assign doc = site.docs | where:"id", sid | first %}
|
24
|
+
<li {% if page.id==doc.id %} class="active" {% endif %}><a href="{{ doc.url | prepend: site.baseurl }}">{{ sdata.title }}</a></li>
|
25
|
+
{% endfor %}
|
26
|
+
</ul>
|
27
|
+
<div class="navbar-right">
|
28
|
+
<form class="navbar-form navbar-right">
|
29
|
+
<div class="form-group has-feedback">
|
30
|
+
<input id="search-box" type="search" class="form-control" placeholder="Search...">
|
31
|
+
<i class="fa fa-search form-control-feedback"></i>
|
32
|
+
</div>
|
33
|
+
</form>
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
</nav>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
|
3
|
+
|
4
|
+
{% include head.html %}
|
5
|
+
|
6
|
+
<body>
|
7
|
+
|
8
|
+
{% include topnav.html %}
|
9
|
+
|
10
|
+
<div class="page-content">
|
11
|
+
<div class="wrapper">
|
12
|
+
{{ content }}
|
13
|
+
</div>
|
14
|
+
</div>
|
15
|
+
|
16
|
+
{% include footer.html %}
|
17
|
+
{% include js_files.html %}
|
18
|
+
</body>
|
19
|
+
|
20
|
+
</html>
|
data/_layouts/docs.html
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<div class="container">
|
6
|
+
<div class="row">
|
7
|
+
|
8
|
+
{% include pages_nav.html class="col-md-3" %}
|
9
|
+
|
10
|
+
<div class="col-md-9">
|
11
|
+
<h1>{{ page.title }}</h1>
|
12
|
+
{% if page.toc %}
|
13
|
+
<div class="panel panel-info">
|
14
|
+
<div class="panel-heading">On this page</div>
|
15
|
+
<div class="panel-body">
|
16
|
+
{% include toc.html html=content sanitize=true class="inline_toc" id="my_toc" h_min=2 h_max=3 %}
|
17
|
+
</div>
|
18
|
+
</div>
|
19
|
+
{% endif %}
|
20
|
+
<div id="markdown-content-container">
|
21
|
+
{{ content }}
|
22
|
+
</div>
|
23
|
+
<!-- div style="clear:both;">
|
24
|
+
<p class="text-center">
|
25
|
+
<br />
|
26
|
+
<a target="_blank" href="{{site.git_edit_address}}/{{ page.path }}" class="btn btn-default githubEditButton" role="button">
|
27
|
+
<i class="fa fa-pencil fa-lg"></i> Improve this page
|
28
|
+
</a>
|
29
|
+
</p>
|
30
|
+
</div -->
|
31
|
+
<hr>
|
32
|
+
{% include section_nav.html %}
|
33
|
+
</div>
|
34
|
+
|
35
|
+
</div>
|
36
|
+
</div>
|
data/_layouts/page.html
ADDED
data/_layouts/post.html
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
|
5
|
+
<div class="container">
|
6
|
+
<div class="row">
|
7
|
+
|
8
|
+
<div class="col-md-4">
|
9
|
+
<div class="well">
|
10
|
+
<h4>RECENT POSTS</h4>
|
11
|
+
<ul class="list-unstyled post-list-container">
|
12
|
+
{% for post in site.posts limit:10 %}
|
13
|
+
<li><a href="{{ post.url | prepend: site.baseurl }}" {% if page.title==post.title %} class="active" {% endif %}>{{ post.title }}</a></li>
|
14
|
+
{% endfor %}
|
15
|
+
<li><a href="{{ "/allposts" | prepend: site.baseurl }}">All posts ...</a></li>
|
16
|
+
</ul>
|
17
|
+
</div>
|
18
|
+
</div>
|
19
|
+
|
20
|
+
<div class="col-md-8">
|
21
|
+
<h1>{{ page.title }}</h1>
|
22
|
+
<p>{{ page.date | date: "%b %-d, %Y" }}{% if page.author %} • {{ page.author }}{% endif %}{% if page.meta %} • {{ page.meta }}{% endif %}</p>
|
23
|
+
<div id="markdown-content-container">{{ content }}</div>
|
24
|
+
<hr>
|
25
|
+
<ul class="pager">
|
26
|
+
{% if page.previous %}
|
27
|
+
<li class="previous">
|
28
|
+
<a href="{{ page.previous.url | prepend: site.baseurl }}">
|
29
|
+
<span aria-hidden="true">←</span> Older
|
30
|
+
</a>
|
31
|
+
</li>
|
32
|
+
{% endif %} {% if page.next %}
|
33
|
+
<li class="next">
|
34
|
+
<a href="{{ page.next.url | prepend: site.baseurl }}">
|
35
|
+
Newer <span aria-hidden="true">→</span>
|
36
|
+
</a>
|
37
|
+
</li>
|
38
|
+
{% endif %}
|
39
|
+
</ul>
|
40
|
+
</div>
|
41
|
+
|
42
|
+
</div>
|
43
|
+
</div>
|