jekyll-theme-centos 2.51.1.beta.48 → 2.51.1.beta.50
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_data/base/references.yml +12 -0
- data/_includes/base/announcements.html +10 -1
- data/_includes/base/breadcrumbs.html +8 -8
- data/_includes/base/breakingnews.html +4 -4
- data/_includes/base/copyright.html +11 -8
- data/_includes/base/languages.html +3 -3
- data/_includes/base/link.html +1 -0
- data/_includes/base/social.html +16 -0
- data/_includes/base/toc-accordion.html +4 -1
- data/_includes/base/topics.html +13 -0
- data/_layouts/base/default.html +3 -3
- data/_sass/base/_customization.scss +41 -34
- data/_sass/base/_variables.scss +8 -3
- data/assets/img/base/default-layout.svg +441 -416
- data/assets/img/base/default-layout.webp +0 -0
- data/assets/img/base/site-navigation-bar.svg +297 -0
- data/assets/img/base/site-navigation-bar.webp +0 -0
- metadata +9 -4
- data/_includes/base/pages.html +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83727d74f41256687d85ffe2f8d8291f38a4df39544ad525328e4f074edb4dfc
|
4
|
+
data.tar.gz: a496af0984c2547ca07b0bfacdbc0bb0a94c5caee77e12ce11d45045f4f91115
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6ccb90f5d028895616e853f2430091ce8e414a6bbf0fed19770a5ae99d23f689fe1e565166cd707b0045abad4d6ef63d86168f9e42361bfd466f00f4a8ec946
|
7
|
+
data.tar.gz: 85cef85ea69f40b975d680be3e980aff612a15a2282996b7780a3a696b371cba89791e370816115b783c5ffd502e4bf6bb81d0ae8cfe116f9f475646be812682
|
@@ -0,0 +1,12 @@
|
|
1
|
+
---
|
2
|
+
- title: Jekyll documentation
|
3
|
+
url: https://jekyllrb.com/docs/
|
4
|
+
|
5
|
+
- title: Liquid template language
|
6
|
+
url: https://shopify.github.io/liquid/
|
7
|
+
|
8
|
+
- title: The DITA style guide best practices for authors
|
9
|
+
url: https://www.oxygenxml.com/dita/styleguide/
|
10
|
+
|
11
|
+
- title: Modular documentation reference guide
|
12
|
+
url: https://redhat-documentation.github.io/modular-docs/
|
@@ -1,4 +1,13 @@
|
|
1
1
|
<div class="alert alert-{{ include.color | default: 'primary' }} alert-dismissible fade show shadow" role="alert">
|
2
|
-
<
|
2
|
+
<div class="container d-flex justify-content-between align-items-center">
|
3
|
+
<div class="me-3">
|
4
|
+
<div class="h5 mb-0"><i class="{{ include.icon | default: 'fa-solid fa-bullhorn' }}"></i></div>
|
5
|
+
</div>
|
6
|
+
<div class="flex-fill">
|
7
|
+
{%- if include.content != "" %}
|
8
|
+
{{ include.content }}
|
9
|
+
{%- endif %}
|
10
|
+
</div>
|
11
|
+
</div>
|
3
12
|
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
|
4
13
|
</div>
|
@@ -1,13 +1,13 @@
|
|
1
1
|
<nav aria-label="{{ include.arialabel | default: 'breadcrumb' }}">
|
2
2
|
<ol class="breadcrumb">
|
3
|
-
{
|
4
|
-
<li class="breadcrumb-item"><a href="{{ site.baseurl }}/">Home</a></li>
|
5
|
-
{
|
6
|
-
{
|
3
|
+
{%- assign crumbs = page.url | remove:'/index.html' | split: '/' %}
|
4
|
+
<li class="breadcrumb-item"><a class="link-offset-3 link-offset-3-hover link-underline link-underline-opacity-25 link-underline-opacity-75-hover" href="{{ site.baseurl }}/">Home</a></li>
|
5
|
+
{%- for crumb in crumbs offset: 1 %}
|
6
|
+
{%- if forloop.last %}
|
7
7
|
<li class="breadcrumb-item active">{{ page.title }}</li>
|
8
|
-
{
|
9
|
-
<li class="breadcrumb-item"><a href="{{ site.baseurl }}{% assign crumb_limit = forloop.index | plus: 1 %}{% for crumb in crumbs limit: crumb_limit %}{{ crumb | append: '/' | replace:'without-plugin/','without-plugins/' }}{% endfor %}">{{ crumb | replace:'-',' ' | remove:'.html' | capitalize }}</a></li>
|
10
|
-
{
|
11
|
-
{
|
8
|
+
{%- else %}
|
9
|
+
<li class="breadcrumb-item"><a class="link-offset-3 link-offset-3-hover link-underline link-underline-opacity-25 link-underline-opacity-75-hover" href="{{ site.baseurl }}{% assign crumb_limit = forloop.index | plus: 1 %}{% for crumb in crumbs limit: crumb_limit %}{{ crumb | append: '/' | replace:'without-plugin/','without-plugins/' }}{% endfor %}">{{ crumb | replace:'-',' ' | remove:'.html' | capitalize }}</a></li>
|
10
|
+
{%- endif %}
|
11
|
+
{%- endfor %}
|
12
12
|
</ol>
|
13
13
|
</nav>
|
@@ -4,14 +4,14 @@
|
|
4
4
|
<div class="h5 mb-0"><i class="{{ include.icon | default: 'fa-solid fa-bullhorn' }}"></i></div>
|
5
5
|
</div>
|
6
6
|
<div class="flex-fill">
|
7
|
-
{
|
7
|
+
{%- if include.content != "" %}
|
8
8
|
{{ include.content }}
|
9
|
-
{
|
9
|
+
{%- endif %}
|
10
10
|
</div>
|
11
|
-
{
|
11
|
+
{%- if include.url != "" %}
|
12
12
|
<div class="">
|
13
13
|
<a class="btn btn-sm btn-{{ include.color | default: 'primary') }} text-nowrap" href="{{ include.url }}" role="button">Know more <i class="fa-solid fa-arrow-right"></i></a>
|
14
14
|
</div>
|
15
|
-
{
|
15
|
+
{%- endif %}
|
16
16
|
</div>
|
17
17
|
</div>
|
@@ -3,15 +3,18 @@
|
|
3
3
|
{% else %}
|
4
4
|
{% assign copyright = site.data.base.copyright %}
|
5
5
|
{% endif %}
|
6
|
+
|
7
|
+
{%- assign color = include.color | default: "light" -%}
|
8
|
+
{%- capture legals -%}
|
9
|
+
{%- for item in copyright.legals -%}
|
10
|
+
{%- assign name = item.text -%}
|
11
|
+
{%- assign url = item.link -%}
|
12
|
+
<span class="border-start ms-2 ps-2">{% include base/link.html name=name url=url color=color %}</span>
|
13
|
+
{%- endfor -%}
|
14
|
+
{%- endcapture -%}
|
15
|
+
|
6
16
|
<div class="row my-3">
|
7
17
|
<div class="col">
|
8
|
-
|
9
|
-
<span>{{ site.time | date: "%Y" }}</span>
|
10
|
-
<span>{{ copyright.author }}</span>
|
11
|
-
{% for item in copyright.legals -%}
|
12
|
-
<span class="border-start ms-2 ps-2">
|
13
|
-
<a class="link-light link-offset-3 link-underline-opacity-25 link-underline-opacity-100-hover link-underline-light" href="{{ item.link }}">{{ item.text }}</a>
|
14
|
-
</span>
|
15
|
-
{% endfor %}
|
18
|
+
<div>Copyright © {{ site.time | date: "%Y" }} {{ copyright.author }} {{ legals }}</div>
|
16
19
|
</div>
|
17
20
|
</div>
|
@@ -11,7 +11,7 @@
|
|
11
11
|
{{ modal_title }}
|
12
12
|
</button>
|
13
13
|
|
14
|
-
<div class="modal fade" id="languageModal-{{ modal_id }}" tabindex="-1" aria-labelledby="languageModalLabel-{{ modal_id }}"
|
14
|
+
<div class="modal fade" id="languageModal-{{ modal_id }}" tabindex="-1" aria-labelledby="languageModalLabel-{{ modal_id }}">
|
15
15
|
<div class="modal-dialog">
|
16
16
|
<div class="modal-content">
|
17
17
|
<div class="modal-header">
|
@@ -20,9 +20,9 @@
|
|
20
20
|
</div>
|
21
21
|
<div class="modal-body">
|
22
22
|
<p>{{ modal_preamble }}</p>
|
23
|
-
<a href="{{ site.baseurl }}{{ page.url }}" role="button" class="btn btn-primary">{{ site.data.base.languages["en"] }}</a>
|
23
|
+
<a href="{{ site.baseurl }}{{ page.url }}" role="button" class="btn btn-sm btn-primary">{{ site.data.base.languages["en"] }}</a>
|
24
24
|
{% for locale in page.with_locales %}
|
25
|
-
<a href="{{ site.baseurl }}/{{ locale }}{{ page.url }}" role="button" class="btn btn-primary">{{ site.data.base.languages[locale] }}</a>
|
25
|
+
<a href="{{ site.baseurl }}/{{ locale }}{{ page.url }}" role="button" class="btn btn-sm btn-primary">{{ site.data.base.languages[locale] }}</a>
|
26
26
|
{% endfor %}
|
27
27
|
</div>
|
28
28
|
{% if modal_footer != "" %}
|
@@ -0,0 +1 @@
|
|
1
|
+
<a class="link-{{ include.color | default: 'primary' }} link-offset-3 link-offset-3-hover link-underline-{{ include.color | default: 'primary' }} link-underline-opacity-25 link-underline-opacity-75-hover" href="{{ include.url }}">{{ include.name }}</a>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
{% if site.data[site.component_data_dirname]["social"] %}
|
2
|
+
{% assign social_networks = site.data[site.component_data_dirname]["social"] %}
|
3
|
+
{% else %}
|
4
|
+
{% assign social_networks = site.data.base.social %}
|
5
|
+
{% endif %}
|
6
|
+
<div class="row">
|
7
|
+
<div class="mt-3 col-sm-12 col-lg-8">
|
8
|
+
<div class="lead">{{ site.description }}</div>
|
9
|
+
</div>
|
10
|
+
|
11
|
+
<div class="my-3 col-sm-12 col-lg-4 d-flex justify-content-sm-start justify-content-lg-end">
|
12
|
+
{% for item in social_networks -%}
|
13
|
+
<a class="btn border-0 btn-outline-primary fs-4" href="{{ item.link }}" role="button" aria-label="{{ item.name }}" data-bs-placement="bottom" data-bs-title="{{ item.name }}"><i class="{{ item.icon }}"></i></a>
|
14
|
+
{% endfor %}
|
15
|
+
</div>
|
16
|
+
</div>
|
@@ -6,8 +6,11 @@
|
|
6
6
|
<div id="flush-collapseOne" class="accordion-collapse collapse" aria-labelledby="flush-headingOne" data-bs-parent="#pageTocAccordion">
|
7
7
|
<div class="accordion-body small">
|
8
8
|
{% include base/toc.html
|
9
|
+
id="page-toc"
|
9
10
|
html=content
|
10
|
-
|
11
|
+
class="list-group"
|
12
|
+
item_class="list-unstyled"
|
13
|
+
anchor_class="link-primary list-group-item list-group-item-light list-group-item-action border-top-0 border-end-0 border-bottom-0 border-2 border-primary-subtle rounded-0 my-1"
|
11
14
|
%}
|
12
15
|
</div>
|
13
16
|
</div>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<div class="row my-4">
|
2
|
+
{%- for topic in include.topics %}
|
3
|
+
{%- if topic.title != page.title %}
|
4
|
+
<div class="col-sm-6">
|
5
|
+
{%- if site.url contains "http://" or site.url contains "https://" %}
|
6
|
+
<p><a class="link-offset-3 link-offset-3-hover link-underline link-underline-opacity-25 link-underline-opacity-75-hover" href="{{ topic.url }}">{{ topic.title }}</a></p>
|
7
|
+
{%- else %}
|
8
|
+
<p><a class="link-offset-3 link-offset-3-hover link-underline link-underline-opacity-25 link-underline-opacity-75-hover" href="{{ site.url }}{{ site.baseurl }}{{ topic.url }}">{{ topic.title }}</a></p>
|
9
|
+
{%- endif %}
|
10
|
+
</div>
|
11
|
+
{%- endif %}
|
12
|
+
{%- endfor %}
|
13
|
+
</div>
|
data/_layouts/base/default.html
CHANGED
@@ -32,7 +32,7 @@
|
|
32
32
|
</div>
|
33
33
|
{% endif %}
|
34
34
|
|
35
|
-
<main class="container bg-body py-
|
35
|
+
<main class="container bg-body py-3">
|
36
36
|
|
37
37
|
{% if page.with_announcements and page.with_announcements.size > 0 -%}
|
38
38
|
{% for announcement in page.with_announcements %}
|
@@ -45,7 +45,7 @@
|
|
45
45
|
{% endif -%}
|
46
46
|
|
47
47
|
{% if page.with_breadcrumbs == true or page.with_locales.size > 0 %}
|
48
|
-
<div class="row justify-content-center mb-
|
48
|
+
<div class="row justify-content-center mb-5 small">
|
49
49
|
<div class="col">
|
50
50
|
{% if page.with_breadcrumbs == true %}
|
51
51
|
{% include base/breadcrumbs.html %}
|
@@ -60,7 +60,7 @@
|
|
60
60
|
{% endif %}
|
61
61
|
|
62
62
|
{% if page.with_title == true -%}
|
63
|
-
<div class="row justify-content-center
|
63
|
+
<div class="row justify-content-center my-5">
|
64
64
|
<div class="col-sm-12 col-lg-8">
|
65
65
|
<div class="h1">{{ page.title }}</div>
|
66
66
|
{% if page.with_preamble == true -%}
|
@@ -9,7 +9,6 @@ body {
|
|
9
9
|
// --------------------------------------------------------------------------------
|
10
10
|
.sticky-top-breakingnews {
|
11
11
|
top: 59px;
|
12
|
-
z-index: 1031;
|
13
12
|
}
|
14
13
|
}
|
15
14
|
|
@@ -88,6 +87,42 @@ nav {
|
|
88
87
|
}
|
89
88
|
}
|
90
89
|
}
|
90
|
+
// --------------------------------------------------------------------------------
|
91
|
+
// Alerts (p), announcements (div), and breakingnews (div)
|
92
|
+
// --------------------------------------------------------------------------------
|
93
|
+
p {
|
94
|
+
&.alert {
|
95
|
+
padding-left: $spacer * 3;
|
96
|
+
background-repeat: no-repeat;
|
97
|
+
background-position-y: $spacer * 1.2;
|
98
|
+
background-position-x: $spacer;
|
99
|
+
border-left-width: 0.5rem;
|
100
|
+
}
|
101
|
+
&.alert-primary {
|
102
|
+
background-image: $alert-primary-icon;
|
103
|
+
}
|
104
|
+
&.alert-secondary {
|
105
|
+
background-image: $alert-secondary-icon;
|
106
|
+
}
|
107
|
+
&.alert-danger {
|
108
|
+
background-image: $alert-danger-icon;
|
109
|
+
}
|
110
|
+
&.alert-warning {
|
111
|
+
background-image: $alert-warning-icon;
|
112
|
+
}
|
113
|
+
&.alert-info {
|
114
|
+
background-image: $alert-info-icon;
|
115
|
+
}
|
116
|
+
&.alert-light {
|
117
|
+
background-image: $alert-light-icon;
|
118
|
+
}
|
119
|
+
&.alert-dark {
|
120
|
+
background-image: $alert-dark-icon;
|
121
|
+
}
|
122
|
+
&.alert-success {
|
123
|
+
background-image: $alert-success-icon;
|
124
|
+
}
|
125
|
+
}
|
91
126
|
|
92
127
|
main {
|
93
128
|
// --------------------------------------------------------------------------------
|
@@ -107,6 +142,11 @@ main {
|
|
107
142
|
scroll-margin-bottom: 100px;
|
108
143
|
margin-top: 3rem;
|
109
144
|
}
|
145
|
+
.content > h2 {
|
146
|
+
border-bottom: 5px solid $primary;
|
147
|
+
padding-bottom: $spacer * 0.5;
|
148
|
+
margin-bottom: $spacer * 0.75;
|
149
|
+
}
|
110
150
|
.content > figure {
|
111
151
|
scroll-margin-top: 80px;
|
112
152
|
scroll-margin-bottom: 100px;
|
@@ -130,39 +170,6 @@ main {
|
|
130
170
|
}
|
131
171
|
}
|
132
172
|
// --------------------------------------------------------------------------------
|
133
|
-
// Alerts
|
134
|
-
// --------------------------------------------------------------------------------
|
135
|
-
p {
|
136
|
-
&.alert {
|
137
|
-
padding-left: 2.5rem;
|
138
|
-
background-repeat: no-repeat;
|
139
|
-
background-position-y: 1.25rem;
|
140
|
-
background-position-x: 0.8rem;
|
141
|
-
border-width: 0 0 0 0.5rem;
|
142
|
-
}
|
143
|
-
&.alert-primary {
|
144
|
-
background-image: $alert-primary-icon;
|
145
|
-
}
|
146
|
-
&.alert-secondary {
|
147
|
-
background-image: $alert-secondary-icon;
|
148
|
-
}
|
149
|
-
&.alert-danger {
|
150
|
-
background-image: $alert-danger-icon;
|
151
|
-
}
|
152
|
-
&.alert-warning {
|
153
|
-
background-image: $alert-warning-icon;
|
154
|
-
}
|
155
|
-
&.alert-info {
|
156
|
-
background-image: $alert-info-icon;
|
157
|
-
}
|
158
|
-
&.alert-light {
|
159
|
-
background-image: $alert-light-icon;
|
160
|
-
}
|
161
|
-
&.alert-success {
|
162
|
-
background-image: $alert-success-icon;
|
163
|
-
}
|
164
|
-
}
|
165
|
-
// --------------------------------------------------------------------------------
|
166
173
|
// Tuneup first paragraph top margin when it is the first element inside
|
167
174
|
// content.
|
168
175
|
// --------------------------------------------------------------------------------
|
data/_sass/base/_variables.scss
CHANGED
@@ -13,9 +13,9 @@ $centos-green: #9ccd2a;
|
|
13
13
|
$primary: $centos-purple;
|
14
14
|
$secondary: $centos-orange;
|
15
15
|
$dark: #200735;
|
16
|
-
$success:
|
17
|
-
$info:
|
18
|
-
$warning:
|
16
|
+
$success: $centos-green;
|
17
|
+
$info: $centos-blue;
|
18
|
+
$warning: $centos-orange;
|
19
19
|
$danger: #dc3545;
|
20
20
|
$light: #f8f9fa;
|
21
21
|
|
@@ -25,6 +25,7 @@ $success-text-emphasis: shade-color($success, 60%);
|
|
25
25
|
$info-text-emphasis: shade-color($info, 60%);
|
26
26
|
$warning-text-emphasis: shade-color($warning, 60%);
|
27
27
|
$light-text-emphasis: shade-color($light, 60%);
|
28
|
+
$dark-text-emphasis: shade-color($dark, 60%);
|
28
29
|
$danger-text-emphasis: shade-color($danger, 60%);
|
29
30
|
$dropdown-dark-bg: $dark;
|
30
31
|
|
@@ -34,6 +35,9 @@ $dropdown-dark-bg: $dark;
|
|
34
35
|
$font-family-sans-serif: "Montserrat", sans-serif;
|
35
36
|
$font-family-monospace: "Source Code Pro", monospace;
|
36
37
|
$headings-font-weight: 700;
|
38
|
+
$font-size-base: 1rem; // Assumes the browser default, typically `16px`
|
39
|
+
$h1-font-size: $font-size-base * 2.75;
|
40
|
+
|
37
41
|
|
38
42
|
// --------------------------------------------------------------------------------
|
39
43
|
// Breadcrumb
|
@@ -50,6 +54,7 @@ $alert-info-icon: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg
|
|
50
54
|
$alert-danger-icon: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="1rem" fill="rgba(#{to-rgb($danger-text-emphasis)},1)" viewBox="0 0 512 512"><path d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24V264c0 13.3-10.7 24-24 24s-24-10.7-24-24V152c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"/></svg>');
|
51
55
|
$alert-success-icon: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="1rem" fill="rgba(#{to-rgb($success-text-emphasis)},1)" viewBox="0 0 512 512"><path d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"/></svg>');
|
52
56
|
$alert-light-icon: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="1rem" fill="rgba(#{to-rgb($light-text-emphasis)},1)" viewBox="0 0 512 512"><path d="M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160V416c0 53 43 96 96 96H352c53 0 96-43 96-96V320c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H96z"/></svg>');
|
57
|
+
$alert-dark-icon: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="1rem" fill="rgba(#{to-rgb($dark-text-emphasis)},1)" viewBox="0 0 512 512"><path d="M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160V416c0 53 43 96 96 96H352c53 0 96-43 96-96V320c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H96z"/></svg>');
|
53
58
|
|
54
59
|
// --------------------------------------------------------------------------------
|
55
60
|
// Negative margins
|