jekyll-theme-open-project 1.0.0.rc2 → 1.0.0.rc3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/item-doc-page.html +64 -61
- data/_sass/jekyll-theme-open-project.scss +62 -36
- data/_sass/open-project-header-footer.scss +7 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 788953cc36031982e184c52ca83c3491efb199d6
|
4
|
+
data.tar.gz: 2ddb1ea7b99126a7dd725b58c8f745b78d0859f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6733041cf40760816231f85be359729c2270cdaf68882e5f88fe7c3476f828256151fd6c229673e3080fa425a59c421a6b3df230e63da493de5b2ee55e901e7f
|
7
|
+
data.tar.gz: 28e06f2577621970b8d0b3d1cb961fec1003d125496148c5cc796a2b13dff525372a78d1fe40226bb2837e4e9c278912a580710937fd7bfd84e0e7f313e88700
|
@@ -4,60 +4,88 @@
|
|
4
4
|
{% assign item_docs = include.items | where_exp: "item", "item.url contains docs_base_url" %}
|
5
5
|
{% assign nav = item_docs | where_exp: "item", "item.path contains 'docs/navigation'" | first %}
|
6
6
|
|
7
|
-
{% assign
|
7
|
+
{% assign item_data = include.items | where_exp: "item", "item.url == product_base_url" | first %}
|
8
8
|
|
9
|
-
{% assign num_sections = nav.sections | size %}
|
10
|
-
{% if num_sections > 0 %}
|
11
9
|
<nav class="nav-sidebar">
|
12
10
|
<header class="sidebar-header">
|
13
11
|
{% if include.item_type == 'software' and page.url != product_base_url %}
|
14
12
|
<div class="logo-container" role="presentation">
|
15
13
|
{% include software-symbol.html item_id=page.id %}
|
16
14
|
</div>
|
17
|
-
<h3 class="title"
|
15
|
+
<h3 class="title">
|
16
|
+
<a href="{{ product_base_url | relative_url }}">{{ item_data.title }}</a>
|
17
|
+
</h3>
|
18
18
|
{% else %}
|
19
|
-
<h3 class="title">
|
19
|
+
<h3 class="title">
|
20
|
+
<a href="{{ include.item_type | append: "/" | relative_url }}">
|
21
|
+
←
|
22
|
+
{% if include.item_type == 'software' %}
|
23
|
+
Software
|
24
|
+
{% else if include.item_type == 'specs' %}
|
25
|
+
Specifications
|
26
|
+
{% endif %}
|
27
|
+
</a>
|
28
|
+
</h3>
|
20
29
|
{% endif %}
|
21
30
|
</header>
|
22
31
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
{% if page.url != link and linked_page %}
|
32
|
+
<section class="external-links">
|
33
|
+
{% if include.item_type == 'software' and item_data.repo_url or item_data.docs_url %}
|
34
|
+
<ul class="section-items">
|
35
|
+
{% if item_data.repo_url %}
|
36
|
+
<li class="item">
|
37
|
+
<a href="{{ item_data.repo_url }}">Source Repository</a> {% endif %}
|
38
|
+
{% if item_data.docs_url %}
|
31
39
|
<li class="item">
|
32
|
-
<a href="{{
|
33
|
-
|
34
|
-
|
35
|
-
|
40
|
+
<a href="{{ item_data.docs_url }}">Documentation</a> {% endif %}
|
41
|
+
</ul>
|
42
|
+
{% else if include.item_type == 'specs' and item_data.rfc_id or item_data.ietf_datatracker_id or item_data.source_url %}
|
43
|
+
<ul class="section-items">
|
44
|
+
{% if item_data.rfc_id %}
|
45
|
+
<li class="item">
|
46
|
+
<a href="http://ietf.org/html/rfc{{ item_data.rfc_id }}">IETF RFC {{ item_data.rfc_id }}</a> {% endif %}
|
47
|
+
{% if item_data.ietf_datatracker_id %}
|
48
|
+
<li class="item">
|
49
|
+
<a href="https://datatracker.ietf.org/doc/{{ item_data.ietf_datatracker_id }}{% if page.ietf_datatracker_ver %}-{{ page.ietf_datatracker_ver }}{% endif %}">IETF document</a> {% endif %}
|
50
|
+
{% if item_data.source_url %}
|
51
|
+
<li class="item">
|
52
|
+
<a href="{{ item_data.source_url }}">Source Markup</a> {% endif %}
|
53
|
+
</ul>
|
54
|
+
{% endif %}
|
55
|
+
</section>
|
36
56
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
57
|
+
{% for section in nav.sections %}
|
58
|
+
<section>
|
59
|
+
<h4 class="section-title">{{ section.name }}</h4>
|
60
|
+
<ul class="section-items">
|
61
|
+
{% for item in section.items %}
|
62
|
+
{% assign link = docs_base_url | append: item | append: "/" %}
|
63
|
+
{% assign linked_page = include.items | where_exp: "item", "item.url contains link" | first %}
|
44
64
|
|
65
|
+
{% if page.url != link and linked_page %}
|
66
|
+
<li class="item">
|
67
|
+
<a href="{{ link | relative_url }}">
|
68
|
+
{{ linked_page.title }}
|
69
|
+
</a>
|
45
70
|
{% else %}
|
46
|
-
|
47
|
-
<
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
71
|
+
{% if page.url == link %}
|
72
|
+
<li class="item selected">
|
73
|
+
<span>
|
74
|
+
{{ linked_page.title }}
|
75
|
+
</span>
|
76
|
+
{% else %}
|
77
|
+
<li class="item disabled">
|
78
|
+
<span>
|
79
|
+
{{ item }}
|
80
|
+
</span>
|
81
|
+
{% endif %}
|
52
82
|
{% endif %}
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
</ul>
|
83
|
+
{% assign link = "" %}
|
84
|
+
{% endfor %}
|
85
|
+
</ul>
|
86
|
+
</section>
|
58
87
|
{% endfor %}
|
59
88
|
</nav>
|
60
|
-
{% endif %}
|
61
89
|
|
62
90
|
<article>
|
63
91
|
<header>
|
@@ -73,31 +101,6 @@
|
|
73
101
|
|
74
102
|
<div role="presentation">
|
75
103
|
<h3 class="lead">{{ page.description }}</h3>
|
76
|
-
|
77
|
-
{% if page.repo_url or page.docs_url %}
|
78
|
-
<div class="meta">
|
79
|
-
<ul>
|
80
|
-
{% if page.repo_url %}
|
81
|
-
<li>
|
82
|
-
<a href="{{ page.repo_url }}">Source code repository</a> {% endif %}
|
83
|
-
{% if page.docs_url %}
|
84
|
-
<li>
|
85
|
-
<a href="{{ page.docs_url }}">Documentation</a> {% endif %}
|
86
|
-
</ul>
|
87
|
-
</div>
|
88
|
-
{% else if page.rfc_id or page.ietf_datatracker_id or page.source_url %}
|
89
|
-
<ul>
|
90
|
-
{% if page.rfc_id %}
|
91
|
-
<li>
|
92
|
-
<a href="http://ietf.org/html/rfc{{ page.rfc_id }}">IETF RFC {{ page.rfc_id }}</a> {% endif %}
|
93
|
-
{% if page.ietf_datatracker_id %}
|
94
|
-
<li>
|
95
|
-
<a href="https://datatracker.ietf.org/doc/{{ page.ietf_datatracker_id }}{% if page.ietf_datatracker_ver %}-{{ page.ietf_datatracker_ver }}{% endif %}">IETF document</a> {% endif %}
|
96
|
-
{% if page.source_url %}
|
97
|
-
<li>
|
98
|
-
<a href="{{ page.source_url }}">Source markup</a> {% endif %}
|
99
|
-
</ul>
|
100
|
-
{% endif %}
|
101
104
|
</div>
|
102
105
|
</header>
|
103
106
|
|
@@ -466,6 +466,9 @@ body.project {
|
|
466
466
|
.title {
|
467
467
|
flex: 1;
|
468
468
|
line-height: 1;
|
469
|
+
font-weight: normal;
|
470
|
+
font-size: 15px;
|
471
|
+
|
469
472
|
a:link, a:visited {
|
470
473
|
color: #444;
|
471
474
|
}
|
@@ -480,48 +483,71 @@ body.project {
|
|
480
483
|
}
|
481
484
|
}
|
482
485
|
|
483
|
-
>
|
484
|
-
|
485
|
-
font-weight: bold;
|
486
|
-
margin: 0;
|
487
|
-
line-height: 1.8;
|
488
|
-
}
|
486
|
+
> section {
|
487
|
+
margin-bottom: 15px;
|
489
488
|
|
490
|
-
|
491
|
-
|
492
|
-
margin: 0 0 15px 0;
|
493
|
-
padding: 0;
|
494
|
-
line-height: 2;
|
489
|
+
&.external-links {
|
490
|
+
$side-margin: 16px;
|
495
491
|
|
496
|
-
|
497
|
-
font-size: 15px;
|
498
|
-
font-weight: normal;
|
492
|
+
margin-left: -$side-margin;
|
499
493
|
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
opacity: 0.4;
|
508
|
-
position: absolute;
|
509
|
-
width: $disabled-label-width;
|
510
|
-
left: -$disabled-label-width;;
|
511
|
-
content: "TBD";
|
512
|
-
font-weight: bold;
|
513
|
-
}
|
514
|
-
}
|
515
|
-
}
|
516
|
-
&.selected {
|
517
|
-
span {
|
494
|
+
> .section-items > .item {
|
495
|
+
margin-bottom: 10px;
|
496
|
+
margin-right: $side-margin;
|
497
|
+
|
498
|
+
a {
|
499
|
+
background-color: #F7F7F7;
|
500
|
+
display: block;
|
518
501
|
font-weight: bold;
|
519
|
-
|
502
|
+
padding: 4px 0 4px $side-margin;
|
503
|
+
border-radius: 10px;
|
520
504
|
}
|
521
505
|
}
|
522
|
-
|
523
|
-
|
524
|
-
|
506
|
+
}
|
507
|
+
|
508
|
+
> .section-title {
|
509
|
+
font-size: 20px;
|
510
|
+
font-weight: bold;
|
511
|
+
margin: 0;
|
512
|
+
line-height: 1.8;
|
513
|
+
}
|
514
|
+
|
515
|
+
> .section-items {
|
516
|
+
list-style: none;
|
517
|
+
margin: 0;
|
518
|
+
padding: 0;
|
519
|
+
line-height: 2;
|
520
|
+
|
521
|
+
> .item {
|
522
|
+
font-size: 15px;
|
523
|
+
font-weight: normal;
|
524
|
+
|
525
|
+
&.disabled {
|
526
|
+
span {
|
527
|
+
$disabled-label-width: 50px;
|
528
|
+
opacity: 0.5;
|
529
|
+
position: relative;
|
530
|
+
|
531
|
+
&:before {
|
532
|
+
opacity: 0.4;
|
533
|
+
position: absolute;
|
534
|
+
width: $disabled-label-width;
|
535
|
+
left: -$disabled-label-width;;
|
536
|
+
content: "TBD";
|
537
|
+
font-weight: bold;
|
538
|
+
}
|
539
|
+
}
|
540
|
+
}
|
541
|
+
&.selected {
|
542
|
+
span {
|
543
|
+
font-weight: bold;
|
544
|
+
color: $primary-dark-color;
|
545
|
+
}
|
546
|
+
}
|
547
|
+
a {
|
548
|
+
&:link, &:hover, &:visited {
|
549
|
+
color: #444;
|
550
|
+
}
|
525
551
|
}
|
526
552
|
}
|
527
553
|
}
|
@@ -115,7 +115,7 @@ body > .underlay > footer {
|
|
115
115
|
&:first-child {
|
116
116
|
margin-right: 10px;
|
117
117
|
|
118
|
-
&, &:link, &:
|
118
|
+
&, &:link, &:visited {
|
119
119
|
color: white;
|
120
120
|
background-color: rgba(white, 0.32);
|
121
121
|
}
|
@@ -123,11 +123,16 @@ body > .underlay > footer {
|
|
123
123
|
&:last-child {
|
124
124
|
margin-right: 0;
|
125
125
|
|
126
|
-
&, &:link, &:
|
126
|
+
&, &:link, &:visited {
|
127
127
|
color: $primary-dark-color;
|
128
128
|
background-color: white;
|
129
129
|
}
|
130
130
|
}
|
131
|
+
|
132
|
+
transition: box-shadow .2s ease-out;
|
133
|
+
&:hover {
|
134
|
+
box-shadow: 0 0 0 4px rgba(black, 0.2);
|
135
|
+
}
|
131
136
|
}
|
132
137
|
}
|
133
138
|
}
|