jekyll-theme-alta-docs 0.3.0 → 0.4.0
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 +4 -4
- data/_includes/feature_meta.html +30 -0
- data/_includes/head.html +1 -0
- data/_includes/models/_model.html +25 -0
- data/_includes/models/_models_list.html +6 -0
- data/_includes/nav.html +12 -1
- data/_layouts/doc.html +2 -0
- data/_sass/jekyll-theme-alta-docs.scss +101 -0
- metadata +5 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c8ca9cda661b8b01ab6a7275ffd600d739ea8b6c8483ef8e143a5846d8f21204
|
|
4
|
+
data.tar.gz: ef74fbed8ff07421c6188a96b61d905eedba9e1d85b1a6577e3d6fc845b7f89b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b7c287dfd11f48a8e5c7b60c5fe5fb00b45a2b4994b8c62626165f8801e10770a192097a9b6440f745a1260152262ac768037297551aba7073c6fe7879ae013f
|
|
7
|
+
data.tar.gz: 7491feddd407aaa43db35a403fab548aff2ca9dea1fbc290d0823f66827ab80b947c3d87e30aaaae4eb9cfa6131ebe66bc51276365abf4e29f3d37feeb39e858
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{% if page.status || page.prio || page.system_components || page.version %}
|
|
2
|
+
<div class='feature-meta'>
|
|
3
|
+
<div class='feature-meta__status'>
|
|
4
|
+
<label>Status:</label>
|
|
5
|
+
<div>
|
|
6
|
+
<span class='tag tag--{{ page.status }} feature-meta__status--{{ page.status }}'>{{ page.status }}</span>
|
|
7
|
+
</div>
|
|
8
|
+
</div>
|
|
9
|
+
<div class='feature-meta__prio'>
|
|
10
|
+
<label>Priority:</label>
|
|
11
|
+
<div>
|
|
12
|
+
<span class='tag tag--{{ page.prio }} feature-meta__prio--{{ page.prio }}'>{{ page.prio }}</span>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
<div class='feature-meta__system_components'>
|
|
16
|
+
<label>System components:</label>
|
|
17
|
+
<div>
|
|
18
|
+
{% for component in page.system_components %}
|
|
19
|
+
<span class='tag'>{{ component }}</span>
|
|
20
|
+
{% endfor %}
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
<div class='feature-meta__version'>
|
|
24
|
+
<label>Version:</label>
|
|
25
|
+
<div>
|
|
26
|
+
<span class='feature-meta__version'>{{ page.version }}</span>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
{% endif %}
|
data/_includes/head.html
CHANGED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{% assign model = include.model %}
|
|
2
|
+
<h3>{{ model.name | upcase }}</h3>
|
|
3
|
+
<p>{{ model.desc }}</p>
|
|
4
|
+
<table class="models-list__table">
|
|
5
|
+
<thead>
|
|
6
|
+
<tr>
|
|
7
|
+
<th>Field</th>
|
|
8
|
+
<th>Type</th>
|
|
9
|
+
</tr>
|
|
10
|
+
</thead>
|
|
11
|
+
<tbody>
|
|
12
|
+
{% for field in model.fields %}
|
|
13
|
+
<tr>
|
|
14
|
+
<td>{{ field.name }}</td>
|
|
15
|
+
<td>{{ field.type }}</td>
|
|
16
|
+
</tr>
|
|
17
|
+
{% endfor %}
|
|
18
|
+
</tbody>
|
|
19
|
+
</table>
|
|
20
|
+
<p>Relations</p>
|
|
21
|
+
<ul>
|
|
22
|
+
{% for relation in model.relations %}
|
|
23
|
+
<li>{{ relation.type }} <b>{{ relation.resource }}</b></li>
|
|
24
|
+
{% endfor %}
|
|
25
|
+
</ul>
|
data/_includes/nav.html
CHANGED
|
@@ -35,7 +35,18 @@
|
|
|
35
35
|
{% else %}
|
|
36
36
|
{% assign current = null %}
|
|
37
37
|
{% endif %}
|
|
38
|
-
<li{{ current }}
|
|
38
|
+
<li{{ current }}>
|
|
39
|
+
<a href="{{ site.baseurl }}{{ doc.url }}" class='ad-nav-link'>
|
|
40
|
+
<span class='title'>{{ doc.title }}</span>
|
|
41
|
+
{% if doc.status || doc.prio || doc.version %}
|
|
42
|
+
<div class='doc-meta-nav'>
|
|
43
|
+
<span class='tag tag--{{ doc.status }} feature-meta__status--{{ doc.status }}'>{{ doc.status }}</span>
|
|
44
|
+
<span class='tag tag--{{ doc.prio }} feature-meta__status--{{ doc.prio }}'>{{ doc.prio }}</span>
|
|
45
|
+
<span class='version'>{{ doc.version }}</span>
|
|
46
|
+
</div>
|
|
47
|
+
{% endif %}
|
|
48
|
+
</a>
|
|
49
|
+
</li>
|
|
39
50
|
{% endfor %}
|
|
40
51
|
</ul>
|
|
41
52
|
{% endfor %}
|
data/_layouts/doc.html
CHANGED
|
@@ -475,6 +475,107 @@ button.ad-collapsible, .ad-collapsible {
|
|
|
475
475
|
text-align: center;
|
|
476
476
|
}
|
|
477
477
|
|
|
478
|
+
.tag {
|
|
479
|
+
padding: 2px 4px;
|
|
480
|
+
background: $primary-color;
|
|
481
|
+
color: #fff;
|
|
482
|
+
font-size: 12px;
|
|
483
|
+
border-radius: 3px;
|
|
484
|
+
font-weight: 500;
|
|
485
|
+
font-family: $font-family-primary;
|
|
486
|
+
text-transform: uppercase;
|
|
487
|
+
|
|
488
|
+
&.tag--planning {
|
|
489
|
+
background: #06A789;
|
|
490
|
+
}
|
|
491
|
+
&.tag--todo {
|
|
492
|
+
background: #0392CC;
|
|
493
|
+
}
|
|
494
|
+
&.tag--inprogress {
|
|
495
|
+
background: #F6D102;
|
|
496
|
+
}
|
|
497
|
+
&.tag--done {
|
|
498
|
+
background: #09D660;
|
|
499
|
+
}
|
|
500
|
+
&.tag--pause {
|
|
501
|
+
background: #ABC9B8;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
&.tag--low {
|
|
505
|
+
background: #8AADB4;
|
|
506
|
+
}
|
|
507
|
+
&.tag--medium {
|
|
508
|
+
background: #F2BE04;
|
|
509
|
+
}
|
|
510
|
+
&.tag--high {
|
|
511
|
+
background: #F20455;
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
.ad-nav-link {
|
|
516
|
+
display: flex;
|
|
517
|
+
flex-direction: column;
|
|
518
|
+
.title {
|
|
519
|
+
}
|
|
520
|
+
.doc-meta-nav {
|
|
521
|
+
padding-top: 5px;
|
|
522
|
+
padding-bottom: 3px;
|
|
523
|
+
opacity: 0.2;
|
|
524
|
+
& > span {
|
|
525
|
+
margin-right: 5px;
|
|
526
|
+
&:last-child {
|
|
527
|
+
margin-right: 0;
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
.tag {
|
|
531
|
+
letter-spacing: 0.5px;
|
|
532
|
+
font-size: 9px;
|
|
533
|
+
padding: 1px 2px;
|
|
534
|
+
}
|
|
535
|
+
.version {
|
|
536
|
+
font-size: 11px;
|
|
537
|
+
font-weight: 500;
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
&:hover {
|
|
542
|
+
.doc-meta-nav {
|
|
543
|
+
opacity: 1;
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
.ad-site-nav {
|
|
549
|
+
li.active {
|
|
550
|
+
.ad-nav-link {
|
|
551
|
+
.doc-meta-nav {
|
|
552
|
+
opacity: 1;
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
.feature-meta {
|
|
559
|
+
display: flex;
|
|
560
|
+
& > div {
|
|
561
|
+
padding: 10px;
|
|
562
|
+
min-width: 20%;
|
|
563
|
+
border-right: 1px solid $gray-200;
|
|
564
|
+
display: flex;
|
|
565
|
+
flex-direction: column;
|
|
566
|
+
&:last-child {
|
|
567
|
+
border-width: 0;
|
|
568
|
+
}
|
|
569
|
+
label {
|
|
570
|
+
font-size: 12px;
|
|
571
|
+
margin-bottom: 2px;
|
|
572
|
+
font-weight: 500;
|
|
573
|
+
font-family: $font-family-primary;
|
|
574
|
+
color: $gray-400;
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
|
|
478
579
|
code.highlighter-rouge {
|
|
479
580
|
background: $code-bg;
|
|
480
581
|
padding: 1px 3px;
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-theme-alta-docs
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tom Antas
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-09-
|
|
11
|
+
date: 2020-09-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|
|
@@ -89,6 +89,7 @@ extra_rdoc_files: []
|
|
|
89
89
|
files:
|
|
90
90
|
- LICENSE.txt
|
|
91
91
|
- README.md
|
|
92
|
+
- _includes/feature_meta.html
|
|
92
93
|
- _includes/footer.html
|
|
93
94
|
- _includes/guidelines/rails/api_only_project_tree.md
|
|
94
95
|
- _includes/guidelines/rails/api_only_project_tree_with_files.md
|
|
@@ -99,6 +100,8 @@ files:
|
|
|
99
100
|
- _includes/guidelines/react/react_project_tree.md
|
|
100
101
|
- _includes/head.html
|
|
101
102
|
- _includes/head_scripts.html
|
|
103
|
+
- _includes/models/_model.html
|
|
104
|
+
- _includes/models/_models_list.html
|
|
102
105
|
- _includes/nav.html
|
|
103
106
|
- _includes/navbar.html
|
|
104
107
|
- _includes/project_overview.html
|