jekyll-theme-rop 2.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +1084 -0
- data/_config.yml +89 -0
- data/_data/placeholder.yml +0 -0
- data/_includes/_nav-item.html +38 -0
- data/_includes/_post-meta.html +24 -0
- data/_includes/external-link.html +59 -0
- data/_includes/featured_posts.html +11 -0
- data/_includes/featured_software.html +55 -0
- data/_includes/featured_specs.html +31 -0
- data/_includes/head.html +9 -0
- data/_includes/home-hero.html +27 -0
- data/_includes/home-hub.html +81 -0
- data/_includes/home-project.html +19 -0
- data/_includes/index-page-hero.html +3 -0
- data/_includes/index-page-item-filter.html +83 -0
- data/_includes/item-doc-page.html +138 -0
- data/_includes/item-external-links.html +5 -0
- data/_includes/legal.html +24 -0
- data/_includes/logo.html +1 -0
- data/_includes/nav-links.html +45 -0
- data/_includes/nav-page-link.html +17 -0
- data/_includes/post-author-pic.html +13 -0
- data/_includes/post-card.html +59 -0
- data/_includes/project-doc-page.html +0 -0
- data/_includes/project-nav.html +0 -0
- data/_includes/scripts.html +0 -0
- data/_includes/social-links.html +23 -0
- data/_includes/software-card-hub.html +45 -0
- data/_includes/software-symbol.html +6 -0
- data/_includes/symbol.svg +19 -0
- data/_includes/tag-list.html +17 -0
- data/_includes/title.html +1 -0
- data/_layouts/blog-index.html +19 -0
- data/_layouts/default.html +156 -0
- data/_layouts/docs-base.html +87 -0
- data/_layouts/home.html +13 -0
- data/_layouts/page.html +5 -0
- data/_layouts/post.html +57 -0
- data/_layouts/product.html +9 -0
- data/_layouts/project-index.html +45 -0
- data/_layouts/software-index.html +31 -0
- data/_layouts/spec-index.html +31 -0
- data/_layouts/spec.html +6 -0
- data/_pages/blog.html +8 -0
- data/_pages/software.html +6 -0
- data/_pages/specs.html +6 -0
- data/_sass/headroom.scss +22 -0
- data/_sass/jekyll-theme-open-project.scss +2 -0
- data/_sass/jekyll-theme-rop.scss +798 -0
- data/_sass/normalize.scss +424 -0
- data/_sass/rop-base.scss +572 -0
- data/_sass/rop-header-footer.scss +366 -0
- data/_sass/rop-mixins.scss +871 -0
- data/assets/css/style.scss +13 -0
- data/assets/fa/fa-brands.js +456 -0
- data/assets/fa/fa-solid.js +915 -0
- data/assets/fa/fontawesome.js +1805 -0
- data/assets/img/external-link.svg +4 -0
- data/assets/js/adoc-toc.js +175 -0
- data/assets/js/anchor-scroll.js +81 -0
- data/assets/js/clipboard.min.js +7 -0
- data/assets/js/headroom.min.js +7 -0
- data/assets/js/opf.js +289 -0
- data/assets/listing-widget.js +19 -0
- metadata +276 -0
data/_config.yml
ADDED
@@ -0,0 +1,89 @@
|
|
1
|
+
markdown: kramdown
|
2
|
+
|
3
|
+
includes_dir: .
|
4
|
+
|
5
|
+
permalink: /blog/:year-:month-:day-:title/
|
6
|
+
|
7
|
+
# algolia_search:
|
8
|
+
# api_key: ''
|
9
|
+
# index_name: ''
|
10
|
+
# Uncomment this if you want to use Algolia’s search.
|
11
|
+
# It’s free for open-source projects.
|
12
|
+
|
13
|
+
exclude:
|
14
|
+
- home-hero.html
|
15
|
+
- title.html
|
16
|
+
- nav-links.html
|
17
|
+
- flavor-sample-summary.html
|
18
|
+
- project-nav.html
|
19
|
+
- /**/.git/*
|
20
|
+
- /_projects/**/_*_repo/*
|
21
|
+
- /_projects/*/assets/css/*
|
22
|
+
- /_projects/**/docs/*
|
23
|
+
- .sass-cache/
|
24
|
+
|
25
|
+
external_links:
|
26
|
+
selector: 'body.site--project main a, body.site--hub.layout--post main a'
|
27
|
+
ignored_selectors:
|
28
|
+
- .layout--home a
|
29
|
+
- a[href*=travis]
|
30
|
+
- a[href*=coverity]
|
31
|
+
- a[href*=codecov]
|
32
|
+
|
33
|
+
landing_priority: [software, specs, blog]
|
34
|
+
|
35
|
+
plugins:
|
36
|
+
- jekyll-theme-rop
|
37
|
+
- jekyll-seo-tag
|
38
|
+
- jekyll-sitemap
|
39
|
+
- jekyll-data
|
40
|
+
- jekyll-asciidoc
|
41
|
+
- jekyll-redirect-from
|
42
|
+
- kramdown-parser-gfm
|
43
|
+
- kramdown-syntax-coderay
|
44
|
+
|
45
|
+
collections:
|
46
|
+
projects:
|
47
|
+
output: false
|
48
|
+
software:
|
49
|
+
output: true
|
50
|
+
permalink: /software/:path/
|
51
|
+
specs:
|
52
|
+
output: true
|
53
|
+
permalink: /specs/:path/
|
54
|
+
posts:
|
55
|
+
output: true
|
56
|
+
permalink: /blog/:month-:day-:year/:title/
|
57
|
+
pages:
|
58
|
+
output: true
|
59
|
+
permalink: /:name/
|
60
|
+
|
61
|
+
fontawesome_cdn:
|
62
|
+
version: v5.8.1
|
63
|
+
integrity: "sha384-g5uSoOSBd7KkhAMlnQILrecXvzst9TdC09/VM+pjDTCM+1il8RHz5fKANTFFb+gQ"
|
64
|
+
# Only applies if no_auto_fontawesome is not set.
|
65
|
+
|
66
|
+
no_auto_fontawesome: false
|
67
|
+
# If set to yes, site (with default design) must specify <script> elements
|
68
|
+
# that make required FA styles available in SVG mode.
|
69
|
+
|
70
|
+
defaults:
|
71
|
+
- scope:
|
72
|
+
path: ""
|
73
|
+
values:
|
74
|
+
layout: default
|
75
|
+
- scope:
|
76
|
+
path: _posts
|
77
|
+
type: posts
|
78
|
+
values:
|
79
|
+
layout: post
|
80
|
+
- scope:
|
81
|
+
path: _software
|
82
|
+
type: software
|
83
|
+
values:
|
84
|
+
layout: product
|
85
|
+
- scope:
|
86
|
+
path: _specs
|
87
|
+
type: specs
|
88
|
+
values:
|
89
|
+
layout: spec
|
File without changes
|
@@ -0,0 +1,38 @@
|
|
1
|
+
{% assign base_url = include.base_url | default: "" %}
|
2
|
+
{% assign link = base_url | append: include.item.path %}
|
3
|
+
|
4
|
+
{% if include.item == include.selected_item %}
|
5
|
+
{% assign selected = true %}
|
6
|
+
{% assign selected_item = include.item %}
|
7
|
+
{% elsif include.selected_item == null and page.url == link %}
|
8
|
+
{% assign selected = true %}
|
9
|
+
{% assign selected_item = include.item %}
|
10
|
+
{% else %}
|
11
|
+
{% assign selected = false %}
|
12
|
+
{% comment %} Otherwise in Liquid selected value falls through to next include instance {% endcomment %}
|
13
|
+
{% endif %}
|
14
|
+
|
15
|
+
<li class="{% if selected %}selected{% endif %}">
|
16
|
+
<div class="item-title"
|
17
|
+
title="{{ include.item.title }}{% if include.item.description %} ({{ include.item.description }}){% endif %}">
|
18
|
+
{% if include.item.path == null or selected == true %}
|
19
|
+
<span>
|
20
|
+
{{ include.item.title }}
|
21
|
+
</span>
|
22
|
+
{% else %}
|
23
|
+
<a href="{{ link }}">
|
24
|
+
{{ include.item.title }}
|
25
|
+
</a>
|
26
|
+
{% endif %}
|
27
|
+
</div>
|
28
|
+
|
29
|
+
{% if include.top_level_only != true %}
|
30
|
+
{% if include.item.items %}
|
31
|
+
<ul class="nav-items subitmes">
|
32
|
+
{% for item in include.item.items %}
|
33
|
+
{% include _nav-item.html item=item base_url=include.base_url selected_item=include.selected_item %}
|
34
|
+
{% endfor %}
|
35
|
+
</ul>
|
36
|
+
{% endif %}
|
37
|
+
{% endif %}
|
38
|
+
</li>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
{% assign authors = "" | split: "," %}
|
2
|
+
{% if include.post.author %}
|
3
|
+
{% assign authors = authors | push: include.post.author %}
|
4
|
+
{% endif %}
|
5
|
+
{% if include.post.authors %}
|
6
|
+
{% assign authors = authors | concat: include.post.authors %}
|
7
|
+
{% endif %}
|
8
|
+
{% assign num_authors = authors | size %}
|
9
|
+
|
10
|
+
<span class="authors">
|
11
|
+
{% for author in authors %}
|
12
|
+
<span class="author">
|
13
|
+
{% if author.name %}
|
14
|
+
{% include post-author-pic.html author=author %}
|
15
|
+
<span class="author-name">{{ author.name }}</span>
|
16
|
+
{% endif %}
|
17
|
+
</span>
|
18
|
+
{% endfor %}
|
19
|
+
</span>
|
20
|
+
|
21
|
+
<span class="date">
|
22
|
+
{% if num_authors > 0 %}on {% endif %}
|
23
|
+
{{ include.post.date | date_to_string }}
|
24
|
+
</span>
|
@@ -0,0 +1,59 @@
|
|
1
|
+
<a href="{{ include.url }}">
|
2
|
+
|
3
|
+
{% if include.url contains "github.com" %}
|
4
|
+
<span class="ico">
|
5
|
+
<i class="fab fa-github"></i>
|
6
|
+
</span>
|
7
|
+
<span class="lbl">
|
8
|
+
{{ include.title | default: "GitHub" }}
|
9
|
+
</span>
|
10
|
+
|
11
|
+
{% elsif include.url contains "rubygems.org" %}
|
12
|
+
<span class="ico">
|
13
|
+
<i class="fas fa-gem"></i>
|
14
|
+
</span>
|
15
|
+
<span class="lbl">
|
16
|
+
{{ include.title | default: "Gem" }}
|
17
|
+
</span>
|
18
|
+
|
19
|
+
{% elsif include.url contains "crates.io/crates" %}
|
20
|
+
<span class="ico">
|
21
|
+
<i class="fas fa-cubes"></i>
|
22
|
+
</span>
|
23
|
+
<span class="lbl">
|
24
|
+
{{ include.title | default: "Crate" }}
|
25
|
+
</span>
|
26
|
+
|
27
|
+
{% elsif include.url contains "rubydoc" %}
|
28
|
+
<span class="ico">
|
29
|
+
<i class="fas fa-gem"></i>
|
30
|
+
</span>
|
31
|
+
<span class="lbl">
|
32
|
+
{{ include.title | default: "RubyDoc" }}
|
33
|
+
</span>
|
34
|
+
|
35
|
+
{% elsif include.url contains "docs.rs" %}
|
36
|
+
<span class="ico">
|
37
|
+
<i class="fas fa-book"></i>
|
38
|
+
</span>
|
39
|
+
<span class="lbl">
|
40
|
+
{{ include.title | default: "Docs.rs" }}
|
41
|
+
</span>
|
42
|
+
|
43
|
+
{% elsif include.url contains "ietf.org/html/rfc" %}
|
44
|
+
<span class="lbl">
|
45
|
+
{{ include.title | default: "IETF RFC" }}
|
46
|
+
</span>
|
47
|
+
|
48
|
+
{% elsif include.url contains "datatracker.ietf.org" %}
|
49
|
+
<span class="lbl">
|
50
|
+
{{ include.title | default: "IETF document" }}
|
51
|
+
</span>
|
52
|
+
|
53
|
+
{% else %}
|
54
|
+
<span class="lbl">
|
55
|
+
{{ include.title }}
|
56
|
+
</span>
|
57
|
+
|
58
|
+
{% endif %}
|
59
|
+
</a>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
{% assign posts = site.posts_combined %}
|
2
|
+
|
3
|
+
<section class="featured-posts">
|
4
|
+
<h2 class="title">From the <a href="/blog/">Blog</a></h2>
|
5
|
+
|
6
|
+
<div class="items">
|
7
|
+
{% for item in posts | limit: site.max_featured_posts %}
|
8
|
+
{% include post-card.html post=item %}
|
9
|
+
{% endfor %}
|
10
|
+
</div>
|
11
|
+
</section>
|
@@ -0,0 +1,55 @@
|
|
1
|
+
<section class="software">
|
2
|
+
{% unless site.one_software %}
|
3
|
+
<h2 class="title">
|
4
|
+
Software
|
5
|
+
{% if site.num_all_software > site.num_featured_software %}
|
6
|
+
— <a href="/software/">see all</a>
|
7
|
+
{% endif %}
|
8
|
+
</h2>
|
9
|
+
{% endunless %}
|
10
|
+
|
11
|
+
<div class="items">
|
12
|
+
{% assign software = site.featured_software %}
|
13
|
+
{% for item in software | limit: site.max_featured_software %}
|
14
|
+
{% assign url = item.url %}
|
15
|
+
{% assign item_docs = site.software | where_exp: "item", "item.url contains url" %}
|
16
|
+
{% assign item_data = site.software | where_exp: "item", "item.url == url" | first %}
|
17
|
+
{% assign nav = item_docs | where_exp: "item", "item.path contains 'docs/navigation'" | first %}
|
18
|
+
|
19
|
+
<div class="item" role="article">
|
20
|
+
{% unless site.one_software %}
|
21
|
+
<header>
|
22
|
+
<div class="logo-container">
|
23
|
+
{% include software-symbol.html item_id=item.id %}
|
24
|
+
</div>
|
25
|
+
|
26
|
+
<h3 class="title"><a href="{{ item.url }}">{{ item.title }}</a></h3>
|
27
|
+
</header>
|
28
|
+
|
29
|
+
<p class="body">
|
30
|
+
{{ item.description }}
|
31
|
+
</p>
|
32
|
+
{% endunless %}
|
33
|
+
|
34
|
+
{% assign top_level_nav_item_with_path = nav.items | where_exp: "item", "item.path" | first %}
|
35
|
+
{% if nav and top_level_nav_item_with_path %}
|
36
|
+
<div class="docs-nav">
|
37
|
+
{% assign docs_base_url = item.url | append: "docs/" %}
|
38
|
+
{% assign nav_items = nav.items | slice: 0, 3 %}
|
39
|
+
<ul class="nav-items">
|
40
|
+
{% for nav_item in nav_items %}
|
41
|
+
{% include _nav-item.html item=nav_item base_url=docs_base_url top_level_only=true %}
|
42
|
+
{% endfor %}
|
43
|
+
</ul>
|
44
|
+
</div>
|
45
|
+
{% endif %}
|
46
|
+
|
47
|
+
<div class="external-links">
|
48
|
+
<ul class="nav-items">
|
49
|
+
{% include item-external-links.html item_data=item_data %}
|
50
|
+
</ul>
|
51
|
+
</div>
|
52
|
+
</div>
|
53
|
+
{% endfor %}
|
54
|
+
</div>
|
55
|
+
</section>
|
@@ -0,0 +1,31 @@
|
|
1
|
+
<section class="specs">
|
2
|
+
<h2 class="title">
|
3
|
+
Specification{% if site.num_all_specs > 1 %}s{% endif %}
|
4
|
+
{% if site.num_all_specs > site.num_featured_specs %}
|
5
|
+
— <a href="/specs/">see all</a>
|
6
|
+
{% endif %}
|
7
|
+
</h2>
|
8
|
+
<div class="items">
|
9
|
+
{% assign specs = site.featured_specs %}
|
10
|
+
{% for item in specs | limit: site.max_featured_specs %}
|
11
|
+
{% assign url = item.url %}
|
12
|
+
{% assign item_data = site.specs | where_exp: "item", "item.url == url" | first %}
|
13
|
+
|
14
|
+
<div class="item" role="article">
|
15
|
+
<header>
|
16
|
+
<h3 class="title"><a href="{{ item.url }}">{{ item.title }}</a></h3>
|
17
|
+
</header>
|
18
|
+
|
19
|
+
<p class="body">
|
20
|
+
{{ item.description }}
|
21
|
+
</p>
|
22
|
+
|
23
|
+
<div class="external-links">
|
24
|
+
<ul class="nav-items">
|
25
|
+
{% include item-external-links.html item_data=item_data %}
|
26
|
+
</ul>
|
27
|
+
</div>
|
28
|
+
</div>
|
29
|
+
{% endfor %}
|
30
|
+
</div>
|
31
|
+
</section>
|
data/_includes/head.html
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
<meta charset="utf-8">
|
2
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
3
|
+
<link rel="stylesheet" href="{{ "/assets/css/style.css" | relative_url }}">
|
4
|
+
{% if page.custom_css %}
|
5
|
+
{% for stylesheet in page.custom_css %}
|
6
|
+
<link rel="stylesheet" href="{{ stylesheet | relative_url }}">
|
7
|
+
{% endfor %}
|
8
|
+
{% endif %}
|
9
|
+
{% seo %}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<div class="text">
|
2
|
+
<h1 class="title">{{ site.tagline }}</h1>
|
3
|
+
|
4
|
+
{% if site.pitch %}
|
5
|
+
<p class="desc">{{ site.pitch | safe }}</p>
|
6
|
+
{% endif %}
|
7
|
+
|
8
|
+
{% if site.is_hub %}
|
9
|
+
<div class="cta">
|
10
|
+
<a class="button" href="{{ "/projects/" | relative_url }}">
|
11
|
+
<i class="icon fas fa-search"></i>
|
12
|
+
Explore Projects
|
13
|
+
</a>
|
14
|
+
</div>
|
15
|
+
{% else if site.one_software %}
|
16
|
+
{% else %}
|
17
|
+
<div class="cta">
|
18
|
+
{% assign ctas = site.home_calls_to_action | slice: 0, 2 %}
|
19
|
+
|
20
|
+
{% for link in ctas %}
|
21
|
+
<a class="button" href="{{ link.url | relative_url }}">
|
22
|
+
{{ link.title }}
|
23
|
+
</a>
|
24
|
+
{% endfor %}
|
25
|
+
</div>
|
26
|
+
{% endif %}
|
27
|
+
</div>
|
@@ -0,0 +1,81 @@
|
|
1
|
+
{% assign projects = site.projects | where_exp: "item", "item.home_url != nil" %}
|
2
|
+
{% assign posts = site.posts_combined %}
|
3
|
+
{% assign num_posts = site.num_posts_combined %}
|
4
|
+
|
5
|
+
{% assign featured_projects = projects | where: "featured", true %}
|
6
|
+
{% assign num_featured_projects = featured_projects | size %}
|
7
|
+
{% if num_featured_projects > 0 %}
|
8
|
+
<section class="featured-projects">
|
9
|
+
<h2 class="title">Featured Projects</h2>
|
10
|
+
|
11
|
+
<div class="items">
|
12
|
+
|
13
|
+
{% for item in featured_projects limit:3 %}
|
14
|
+
<a class="item" href="{{ item.home_url }}" role="article">
|
15
|
+
<header>
|
16
|
+
<div class="logo-container">
|
17
|
+
{% assign symbol_path = item.path | split: "/" | slice: 1, 1 | join: "/" | append: "/assets/symbol.svg" %}
|
18
|
+
{% assign relative_symbol_path = "/projects/" | append: symbol_path %}
|
19
|
+
<div class="logo"><img src="{{ relative_symbol_path }}"></div>
|
20
|
+
</div>
|
21
|
+
<h3 class="title">{{ item.title }}</h3>
|
22
|
+
</header>
|
23
|
+
|
24
|
+
<p class="body">
|
25
|
+
{{ item.description }}
|
26
|
+
</p>
|
27
|
+
|
28
|
+
<div class="cta-view-project">
|
29
|
+
<div class="button">Visit Site</div>
|
30
|
+
</div>
|
31
|
+
</a>
|
32
|
+
{% endfor %}
|
33
|
+
</div>
|
34
|
+
</section>
|
35
|
+
{% endif %}
|
36
|
+
|
37
|
+
{% if num_posts > 0 %}
|
38
|
+
<section class="featured-posts">
|
39
|
+
<div class="puny-label">Latest news</div>
|
40
|
+
<h2 class="title">From the Blog</h2>
|
41
|
+
|
42
|
+
<div class="items">
|
43
|
+
{% for item in posts limit:3 %}
|
44
|
+
{% include post-card.html post=item %}
|
45
|
+
{% endfor %}
|
46
|
+
</div>
|
47
|
+
</section>
|
48
|
+
{% endif %}
|
49
|
+
|
50
|
+
{% assign other_projects = projects | where: "featured", false %}
|
51
|
+
{% assign num_other_projects = other_projects | size %}
|
52
|
+
{% if num_other_projects > 0 %}
|
53
|
+
<section class="other-projects">
|
54
|
+
{% include assets/symbol.svg %}
|
55
|
+
|
56
|
+
<h2 class="title">Other Projects</h2>
|
57
|
+
|
58
|
+
<div class="items {% if num_other_projects < 5 %}one-row{% endif %}">
|
59
|
+
{% for item in other_projects %}
|
60
|
+
<a class="item" href="{{ item.home_url }}" role="article">
|
61
|
+
<header>
|
62
|
+
<div class="logo-container">
|
63
|
+
{% assign symbol_path = item.path | split: "/" | slice: 1, 1 | join: "/" | append: "/assets/symbol.svg" %}
|
64
|
+
{% assign relative_symbol_path = "/projects/" | append: symbol_path %}
|
65
|
+
<div class="logo"><img src="{{ relative_symbol_path }}"></div>
|
66
|
+
</div>
|
67
|
+
<h3 class="title">{{ item.title }}</h3>
|
68
|
+
</header>
|
69
|
+
|
70
|
+
<p class="body">
|
71
|
+
{{ item.description }}
|
72
|
+
</p>
|
73
|
+
|
74
|
+
<footer class="meta">
|
75
|
+
{% include tag-list.html tags=item.tags %}
|
76
|
+
</footer>
|
77
|
+
</a>
|
78
|
+
{% endfor %}
|
79
|
+
</div>
|
80
|
+
</section>
|
81
|
+
{% endif %}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
{% assign num_featured_software = site.featured_software | size %}
|
2
|
+
{% assign num_featured_specs = site.featured_specs | size %}
|
3
|
+
{% assign num_posts = site.num_posts_combined %}
|
4
|
+
|
5
|
+
{% assign num_posts_specs = num_posts | plus: num_featured_specs %}
|
6
|
+
|
7
|
+
{% for section_name in site.landing_priority %}
|
8
|
+
{% if section_name == "specs" and num_featured_specs > 0 %}
|
9
|
+
{% include featured_specs.html %}
|
10
|
+
{% elsif section_name == "software" and num_featured_software > 0 %}
|
11
|
+
{% include featured_software.html %}
|
12
|
+
{% elsif section_name == "blog" and num_posts > 0 %}
|
13
|
+
{% include featured_posts.html %}
|
14
|
+
{% elsif section_name == "custom_intro" %}
|
15
|
+
<section class="custom-intro">
|
16
|
+
{% include custom-intro.html %}
|
17
|
+
</section>
|
18
|
+
{% endif %}
|
19
|
+
{% endfor %}
|
@@ -0,0 +1,83 @@
|
|
1
|
+
{% capture rawtags %}{% for doc in include.items %}{% for tag in doc.tags %}{{ tag }} {% endfor %}{% endfor %}{% endcapture %}
|
2
|
+
|
3
|
+
{% assign tags = rawtags | split: " " | uniq %}
|
4
|
+
{% assign num_tags = tags | size %}
|
5
|
+
|
6
|
+
{% if include.tag %}
|
7
|
+
{% if include.tag contains ":" %}
|
8
|
+
{% assign tag_namespace = include.tag | split: ":" | first %}
|
9
|
+
{% else %}
|
10
|
+
{% assign tag_namespace = "" %}
|
11
|
+
{% endif %}
|
12
|
+
{% endif %}
|
13
|
+
|
14
|
+
{% if num_tags > 0 %}
|
15
|
+
<nav class="item-filter">
|
16
|
+
{% comment %}Non-namespaced tags{% endcomment %}
|
17
|
+
<ul class="tags">
|
18
|
+
{% for tag in tags %}
|
19
|
+
{% if tag contains ":" %}
|
20
|
+
{% assign _namespace = tag | split: ":" | first %}
|
21
|
+
{% else %}
|
22
|
+
{% assign _namespace = "" %}
|
23
|
+
{% endif %}
|
24
|
+
|
25
|
+
{% if _namespace == "" %}
|
26
|
+
<li>
|
27
|
+
{% assign tag_human = tag | replace: "_", " " %}
|
28
|
+
{% if tag == include.tag %}
|
29
|
+
<span>{{ tag_human }}</span>
|
30
|
+
{% else %}
|
31
|
+
<a href="{{ include.url_tag_prefix }}{{ tag }}">{{ tag_human }}</a>
|
32
|
+
{% endif %}
|
33
|
+
</li>
|
34
|
+
{% endif %}
|
35
|
+
{% endfor %}
|
36
|
+
</ul>
|
37
|
+
|
38
|
+
{% comment %}Namespaced tags{% endcomment %}
|
39
|
+
{% for namespace in site.tag_namespaces[include.tag_namespaces] %}
|
40
|
+
{% assign namespace_human = namespace[1] %}
|
41
|
+
{% assign namespace_id = namespace[0] %}
|
42
|
+
|
43
|
+
<div class="namespace">
|
44
|
+
<span class="namespace-title">{{ namespace_human }}: </span>
|
45
|
+
|
46
|
+
<ul class="tags">
|
47
|
+
{% for tag in tags %}
|
48
|
+
{% if tag contains ":" %}
|
49
|
+
{% assign _namespace = tag | split: ":" | first %}
|
50
|
+
{% else %}
|
51
|
+
{% assign _namespace = "" %}
|
52
|
+
{% endif %}
|
53
|
+
|
54
|
+
{% if _namespace == namespace_id %}
|
55
|
+
<li>
|
56
|
+
{% assign tag_human = tag | split: ":" | last | replace: "_", " " %}
|
57
|
+
{% if tag == include.tag %}
|
58
|
+
<span>{{ tag_human }}</span>
|
59
|
+
{% else %}
|
60
|
+
<a href="{{ include.url_tag_prefix }}{{ tag }}">{{ tag_human }}</a>
|
61
|
+
{% endif %}
|
62
|
+
</li>
|
63
|
+
{% endif %}
|
64
|
+
{% endfor %}
|
65
|
+
</ul>
|
66
|
+
</div>
|
67
|
+
{% endfor %}
|
68
|
+
</nav>
|
69
|
+
{% endif %}
|
70
|
+
|
71
|
+
{% if include.tag %}
|
72
|
+
{% assign tag_human = include.tag | split: ":" | last | replace: "_", " " %}
|
73
|
+
{% if tag_namespace != "" %}
|
74
|
+
{% assign namespace = site.tag_namespaces[include.tag_namespaces][tag_namespace] %}
|
75
|
+
{% endif %}
|
76
|
+
<header class="filter-header">
|
77
|
+
<h3 class="title">
|
78
|
+
Showing items matching
|
79
|
+
<span class="tag">{% if namespace %}<span class="namespace">{{ namespace }}:</span> {% endif %}{{ tag_human }}</span>
|
80
|
+
<a class="show-all" href="{{ include.url_tag_prefix }}">(show all)</a>
|
81
|
+
</h3>
|
82
|
+
</header>
|
83
|
+
{% endif %}
|
@@ -0,0 +1,138 @@
|
|
1
|
+
{% comment %}
|
2
|
+
This page conforms to the structure introduced by docs-base layout,
|
3
|
+
supporting expandable navigation widget.
|
4
|
+
{% endcomment %}
|
5
|
+
|
6
|
+
{% assign product_base_url = page.url | split: "/" | slice: 0, 3 | join: "/" | append: "/" %}
|
7
|
+
|
8
|
+
{% if page.url == product_base_url %}
|
9
|
+
{% assign is_docs_landing = true %}
|
10
|
+
{% else %}
|
11
|
+
{% assign is_docs_landing = false %}
|
12
|
+
{% endif %}
|
13
|
+
|
14
|
+
{% assign item_docs = include.items | where_exp: "item", "item.url contains product_base_url" %}
|
15
|
+
{% assign nav = item_docs | where_exp: "item", "item.path contains 'docs/navigation'" | first %}
|
16
|
+
{% if nav == nil %}
|
17
|
+
{% assign nav = page.navigation || layout.navigation %}
|
18
|
+
{% endif %}
|
19
|
+
|
20
|
+
{% assign num_top_nav_items = nav.items | size %}
|
21
|
+
{% assign item_data = include.items | where_exp: "item", "item.url == product_base_url" | first %}
|
22
|
+
|
23
|
+
{% if item_data['docs']['git_repo_subtree'] %}
|
24
|
+
{% assign docs_base_url = product_base_url | append: item_data['docs']['git_repo_subtree'] | append: "/" %}
|
25
|
+
{% else %}
|
26
|
+
{% assign docs_base_url = product_base_url %}
|
27
|
+
{% endif %}
|
28
|
+
|
29
|
+
{% if is_docs_landing != true %}
|
30
|
+
<header class="documentation-header {% if num_top_nav_items > 0 %} has-nav {% endif %}">
|
31
|
+
<div class="nav-header">
|
32
|
+
{% if site.one_software %}
|
33
|
+
<h3 class="title">
|
34
|
+
Docs
|
35
|
+
</h3>
|
36
|
+
{% else %}
|
37
|
+
{% if include.item_type == 'software' %}
|
38
|
+
<div class="logo-container">
|
39
|
+
{% include software-symbol.html item_id=page.id %}
|
40
|
+
</div>
|
41
|
+
{% endif %}
|
42
|
+
|
43
|
+
<h3 class="title">
|
44
|
+
<a href="javascript: void 0;">{{ item_data.title }}</a>
|
45
|
+
</h3>
|
46
|
+
{% endif %}
|
47
|
+
|
48
|
+
{% if num_top_nav_items > 0 %}
|
49
|
+
<span class="nav-toggle-icon">
|
50
|
+
<i class="open fas fa-ellipsis-v"></i>
|
51
|
+
<i class="close fas fa-times"></i>
|
52
|
+
</span>
|
53
|
+
{% endif %}
|
54
|
+
</div>
|
55
|
+
</header>
|
56
|
+
{% endif %}
|
57
|
+
|
58
|
+
<section class="documentation {% if is_docs_landing %}docs-landing{% endif %} {{ include.item_type }}">
|
59
|
+
|
60
|
+
{% if is_docs_landing == false %}
|
61
|
+
<nav class="docs-nav">
|
62
|
+
<ul class="nav-items">
|
63
|
+
|
64
|
+
<li class="item external-links">
|
65
|
+
<ul class="nav-items">
|
66
|
+
<li class="item home-link" title="Documentation index">
|
67
|
+
<a href="{{ product_base_url | relative_url }}">
|
68
|
+
<span class="ico">
|
69
|
+
<i class="fas fa-home"></i>
|
70
|
+
</span>
|
71
|
+
<span class="lbl">
|
72
|
+
Home
|
73
|
+
</span>
|
74
|
+
</a>
|
75
|
+
</li>
|
76
|
+
{% include item-external-links.html item_data=item_data %}
|
77
|
+
</ul>
|
78
|
+
</li>
|
79
|
+
|
80
|
+
{% for item in nav.items %}
|
81
|
+
{% include _nav-item.html item=item base_url=docs_base_url %}
|
82
|
+
{% endfor %}
|
83
|
+
|
84
|
+
</ul>
|
85
|
+
</nav>
|
86
|
+
{% endif %}
|
87
|
+
|
88
|
+
<article>
|
89
|
+
<header>
|
90
|
+
<div class="title">
|
91
|
+
{% if include.item_type == 'software' and page.url == product_base_url %}
|
92
|
+
<div class="logo-container">
|
93
|
+
{% include software-symbol.html item_id=page.id %}
|
94
|
+
</div>
|
95
|
+
{% endif %}
|
96
|
+
|
97
|
+
<h1 class="text">{{ page.article_header_title | default: page.title }}</h1>
|
98
|
+
</div>
|
99
|
+
|
100
|
+
{% if is_docs_landing == false %}
|
101
|
+
<nav role="toolbar">
|
102
|
+
<button class="docs-nav-toggle">Toggle table of contents</button>
|
103
|
+
|
104
|
+
{% assign suggest_edits_base_url = item_data.docs.git_repo_url | default: item_data.repo_url %}
|
105
|
+
{% if suggest_edits_base_url %}
|
106
|
+
<a href="{{ suggest_edits_base_url }}/edit/{{ item_data.docs.git_repo_branch | default: site.default_repo_branch | default: 'main' }} /{{ item_data.docs.git_repo_subtree | default: "docs" }}/{{ page.path | split: "/" | last }}" class="docs-suggest-edits">Suggest edits to this page</a>
|
107
|
+
{% endif %}
|
108
|
+
</nav>
|
109
|
+
{% endif %}
|
110
|
+
|
111
|
+
<div>
|
112
|
+
<h3 class="lead">{{ page.description }}</h3>
|
113
|
+
</div>
|
114
|
+
|
115
|
+
{% if is_docs_landing %}
|
116
|
+
<div class="external-links">
|
117
|
+
<ul class="nav-items">
|
118
|
+
{% include item-external-links.html item_data=item_data %}
|
119
|
+
</ul>
|
120
|
+
</div>
|
121
|
+
{% endif %}
|
122
|
+
</header>
|
123
|
+
|
124
|
+
<div class="body">
|
125
|
+
{{ content }}
|
126
|
+
</div>
|
127
|
+
|
128
|
+
{% assign nav_size = nav.items | size %}
|
129
|
+
{% if is_docs_landing and nav_size > 0 %}
|
130
|
+
<ul class="nav-items">
|
131
|
+
{% for item in nav.items %}
|
132
|
+
{% include _nav-item.html item=item base_url=docs_base_url %}
|
133
|
+
{% endfor %}
|
134
|
+
</ul>
|
135
|
+
{% endif %}
|
136
|
+
|
137
|
+
</article>
|
138
|
+
</section>
|