jekyll-theme-centos 2.52.0.beta.61 → 2.52.0.beta.62

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5b7e893c013752b7b34a6af7749ef0916f8aa25c00a94c5ef5f86d1c0859b976
4
- data.tar.gz: c9ec2808ab13330ddef448ff6a0b91c2adfcfb74a6b532b6ef322c022f80a713
3
+ metadata.gz: 95c3c58fc8e3e9f053743df79f6583ec21f5541723728e57b2aa777f9e0cbab7
4
+ data.tar.gz: '00560891a7c52c835607a0ce8c572f4e2567363431cf7e437e4eb896dbe92049'
5
5
  SHA512:
6
- metadata.gz: 3409fd4e69613e06c4f2f2d6bc86e9a3600c78321ec074a16c2cfe03668904ff4c853e85d6cf4521de5ef4ca58485b5bf26f9db319d488b4c1b124f40a45ed37
7
- data.tar.gz: b680f8834f223eee0cf72776e749d524ad8f0cd4053922253ca35c0151f4008e638852d11962a081253b385192a9e051d269b6cf324eef9d7e1bb2ada7cea7ee
6
+ metadata.gz: fc41eb9f10c67249f47f19ffe395063a9ef75fa4670d7c76f3ef7734a9d64b5fad85577fb9ff14be00eb4eb1c399cc75926af92a86fefe67cb283372ae0eeccd
7
+ data.tar.gz: e6142f99530d2ce229f6a11424b67adf220a84d3d038f9ddd2e6f3f78c8bfa5c7f8fb59d8bec8154f37b1d68599a3a4d34369c3eb34a4945a814f0be52c8fa4a
@@ -0,0 +1,42 @@
1
+ title: Configuration Variables Component Configuration
2
+ description: >-
3
+ Include parameters for the 'configuration_variables' component. All parameters
4
+ are optional and apply to both the top-level table and all recursively
5
+ generated nested tables.
6
+ type: object
7
+ properties:
8
+ schema:
9
+ type: object
10
+ description: >-
11
+ A schema object passed directly as a parameter. Overrides automatic schema
12
+ resolution from `site.data` and `site.data.base`. Use this when the schema
13
+ is stored under a non-standard data key or namespace.
14
+ columns:
15
+ type: array
16
+ description: >-
17
+ Array of `{ key, label }` objects defining which schema fields to render as
18
+ columns. When set, overrides the `col_type`, `col_default`, and
19
+ `col_description` parameters. Can also be declared in the `*_schema.yml`
20
+ file itself.
21
+ col_name:
22
+ type: string
23
+ default: Name
24
+ description: >-
25
+ Label for the variable name column. Always rendered as the first column,
26
+ regardless of whether `columns` is set.
27
+ col_type:
28
+ type: string
29
+ default: Type
30
+ description: >-
31
+ Label for the type column. Used only when `columns` is not set.
32
+ col_default:
33
+ type: string
34
+ default: Default
35
+ description: >-
36
+ Label for the default column. Used only when `columns` is not set.
37
+ col_description:
38
+ type: string
39
+ default: Description
40
+ description: >-
41
+ Label for the description column. Used only when `columns` is not set.
42
+ additionalProperties: false
@@ -24,11 +24,51 @@ properties:
24
24
  legals:
25
25
  type: array
26
26
  description: >-
27
- A list of objects defining legal links (e.g., Privacy Policy, Terms of Use) to be displayed alongside the copyright note. Each item is configured
28
- using the external `base/link.html.liquid` template structure.
27
+ A list of objects defining legal links (e.g., Privacy Policy, Terms of Use) to be displayed alongside the copyright notice.
29
28
  items:
30
29
  type: object
31
- description: Configuration for a single legal text link. Refer to the link component's documentation for valid properties.
32
- additionalProperties: true
30
+ description: Configuration for a single legal link rendered using the `base/link.html.liquid` template.
31
+ properties:
32
+ name:
33
+ type: string
34
+ description: >-
35
+ The display text for the legal link (e.g., `Privacy Policy`).
36
+ link:
37
+ type: string
38
+ description: >-
39
+ The URL for the legal document. Accepts absolute URLs, site-relative
40
+ paths, and anchor references (e.g., `https://example.org/legal`,
41
+ `/privacy/`, `#terms`).
42
+ color:
43
+ type: string
44
+ description: >-
45
+ The Bootstrap link color scheme (e.g., `light`, `primary`). Has no
46
+ effect when `class` is also set, because the Copyright component
47
+ supplies a default `class` that takes precedence.
48
+ icon:
49
+ type: string
50
+ description: >-
51
+ Font Awesome icon class to display alongside the link text
52
+ (e.g., `fa-solid fa-file-lines`).
53
+ icon_position:
54
+ type: string
55
+ enum: [start, end]
56
+ default: start
57
+ description: >-
58
+ Position of the icon relative to the link text. Set to `start`
59
+ (default) to place the icon before the text, or `end` to place
60
+ it after.
61
+ role:
62
+ type: string
63
+ description: >-
64
+ ARIA `role` attribute for the anchor element
65
+ (e.g., `menuitem`).
66
+ class:
67
+ type: string
68
+ description: >-
69
+ Custom CSS classes applied to the anchor element. When set,
70
+ overrides the default legal link styling entirely.
71
+ required:
72
+ - name
33
73
  additionalProperties: false
34
74
  additionalProperties: false
@@ -50,7 +50,7 @@ Data Source Hierarchy (priority):
50
50
 
51
51
  {%- comment %} --- HTML --- {% endcomment %}
52
52
  <div class="announcement alert alert-{{ announcement_color }} alert-dismissible fade show shadow mb-3" role="alert">
53
- <div class="d-flex justify-content-between align-items-start">
53
+ <div class="d-flex justify-content-between align-items-center">
54
54
  <div class="me-3">
55
55
  <div class="h6 my-1"><i class="{{ announcement_icon }}"></i></div>
56
56
  </div>
@@ -20,9 +20,9 @@
20
20
  {%- endif %}
21
21
  <tr>
22
22
  <td class="text-nowrap">{{ _item_name }}</td>
23
- <td class="text-nowrap"><a href="javascript:void(0);" class="text-decoration-none copy-btn" data-bs-toggle="tooltip" data-bs-title="Copy hex value" data-copy-value="{{ item.hex }}" aria-label="Copy hex value {{ item.hex }}"><span class="fa-regular fa-copy"></span></a> <i class="fas fa-circle fa-xl" style="color: {{ item.hex }}"></i> <code>{{ item.hex }}</code></td>
24
- <td class="text-nowrap"><a href="javascript:void(0);" class="text-decoration-none copy-btn" data-bs-toggle="tooltip" data-bs-title="Copy RGB value" data-copy-value="{{ item.rgb }}" aria-label="Copy RGB value {{ item.rgb }}"><span class="fa-regular fa-copy"></span></a> <code>{{ item.rgb }}</code></td>
25
- <td class="text-nowrap"><a href="javascript:void(0);" class="text-decoration-none copy-btn" data-bs-toggle="tooltip" data-bs-title="Copy HSV value" data-copy-value="{{ item.hsv }}" aria-label="Copy HSV value {{ item.hsv }}"><span class="fa-regular fa-copy"></span></a> <code>{{ item.hsv }}</code></td>
23
+ <td class="text-nowrap"><span role="button" class="copy-btn" data-bs-toggle="tooltip" data-bs-title="Copy hex value" data-copy-value="{{ item.hex }}" aria-label="Copy hex value {{ item.hex }}"><span class="fa-regular fa-copy"></span> <i class="fas fa-circle fa-xl" style="color: {{ item.hex }}"></i> <code>{{ item.hex }}</code></span></td>
24
+ <td class="text-nowrap"><span role="button" class="copy-btn" data-bs-toggle="tooltip" data-bs-title="Copy RGB value" data-copy-value="{{ item.rgb }}" aria-label="Copy RGB value {{ item.rgb }}"><span class="fa-regular fa-copy"></span> <code>{{ item.rgb }}</code></span></td>
25
+ <td class="text-nowrap"><span role="button" class="copy-btn" data-bs-toggle="tooltip" data-bs-title="Copy HSV value" data-copy-value="{{ item.hsv }}" aria-label="Copy HSV value {{ item.hsv }}"><span class="fa-regular fa-copy"></span> <code>{{ item.hsv }}</code></span></td>
26
26
  <td><span class="badge {{ item.text_badge }}">{{ item.text_color }}</span></td>
27
27
  <td class="text-nowrap"><code>{{ item.contrast_ratio | remove: '`' }}</code> <a href="https://webaim.org/resources/contrastchecker/?fcolor={{ item.text_color_hex | remove: '#' | upcase }}&bcolor={{ item.hex | remove: '#' | upcase }}" target="_blank" class="text-decoration-none" data-bs-toggle="tooltip" title="Verify with WebAIM" aria-label="Verify contrast ratio with WebAIM"><i class="fas fa-external-link-alt"></i></a></td>
28
28
  <td class="text-nowrap">{% if item.wcag_2_2_aa %}<span class="d-inline-block" data-bs-toggle="tooltip" title="Exceeds WCAG 2.2 AA standard (4.5:1 minimum)"><i class="fas fa-circle-check text-success"></i></span>{% else %}<span class="d-inline-block" data-bs-toggle="tooltip" title="Underperforms WCAG 2.2 AA standard (4.5:1 minimum)"><i class="fas fa-circle-xmark text-danger"></i></span>{% endif %} <code>{{ item.wcag_2_2_aa_margin | remove: '`' }}</code></td>
@@ -81,7 +81,7 @@ others. Requires two distinct loops for valid HTML structure.
81
81
  {% assign next_parent_name = include.parent_name | append: "." | append: prop_key %}
82
82
  {% assign next_level_val = current_level | plus: 1 %}
83
83
 
84
- {% include base/configuration-variables-nested.html.liquid
84
+ {% include base/configuration_variables-nested.html.liquid
85
85
  properties=nested_properties
86
86
  parent_name=next_parent_name
87
87
  type_desc=next_type_desc
@@ -79,7 +79,7 @@ of separate, nested DataTables for complex properties.
79
79
  {% assign initial_level = 1 %}
80
80
 
81
81
  {% comment %} Call the recursive include for the first level of nested properties. {% endcomment %}
82
- {% include base/configuration-variables-nested.html.liquid
82
+ {% include base/configuration_variables-nested.html.liquid
83
83
  properties=nested_properties
84
84
  parent_name=prop_key
85
85
  type_desc=type_desc
@@ -94,5 +94,5 @@ of separate, nested DataTables for complex properties.
94
94
  {% endfor -%}
95
95
 
96
96
  {% else %}
97
- <p>The `{{ page.component.name }}` {{ page.component.type }} {{ pt }} doesn't have configuration variables.</p>
97
+ <p>The <code>{{ page.component.name }}</code> {{ page.component.type }} {{ pt }} doesn't have configuration variables.</p>
98
98
  {% endif %}
@@ -0,0 +1,7 @@
1
+ {%- assign content_schema_key = "content_schema" %}
2
+ {%- assign content_schema = include.schema
3
+ | default: site.data[content_schema_key]
4
+ | default: site.data.base[content_schema_key]
5
+ -%}
6
+
7
+ {{ content }}
@@ -6,10 +6,10 @@ Auto-detects and handles both escaped and unescaped values.
6
6
  ================================================================================
7
7
 
8
8
  Recommended Usage (in template):
9
- <a class="copy-btn" data-copy-value="{{ command | escape }}"
10
- data-bs-toggle="tooltip" data-bs-title="Copy command">
9
+ <span role="button" class="copy-btn" data-copy-value="{{ command | escape }}"
10
+ data-bs-toggle="tooltip" data-bs-title="Copy command">
11
11
  <span class="fa-regular fa-copy"></span>
12
- </a>
12
+ </span>
13
13
 
14
14
  Strategic Design Logic:
15
15
  - Armored implementation: handles escaped and unescaped values
@@ -52,10 +52,10 @@
52
52
  {% if page.with_content %}
53
53
  <div class="row mb-3">
54
54
  <div class="{{ site.data.base.content.class | default: 'col' }} content">
55
- {{ content }}
55
+ {% include base/content.html.liquid %}
56
56
  </div>
57
57
  </div>
58
- {% endif %}
58
+ {% endif %}
59
59
 
60
60
  </main>
61
61
 
@@ -257,6 +257,25 @@ main {
257
257
  // --------------------------------------------------------------------------------
258
258
  .content { .dt-container { margin-bottom: 1rem; } }
259
259
 
260
+ // --------------------------------------------------------------------------------
261
+ // Copy Value Component
262
+ // --------------------------------------------------------------------------------
263
+ .content {
264
+ .copy-btn {
265
+ cursor: pointer;
266
+ color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
267
+ text-decoration: none;
268
+
269
+ &:hover {
270
+ --bs-link-color-rgb: var(--bs-link-hover-color-rgb);
271
+ }
272
+ }
273
+
274
+ .alert .copy-btn {
275
+ color: var(--bs-alert-link-color);
276
+ }
277
+ }
278
+
260
279
  // --------------------------------------------------------------------------------
261
280
  // Highlightjs-copy
262
281
  // --------------------------------------------------------------------------------
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-centos
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.52.0.beta.61
4
+ version: 2.52.0.beta.62
5
5
  platform: ruby
6
6
  authors:
7
7
  - ReleaseBot
@@ -290,6 +290,7 @@ files:
290
290
  - _data/base/card_schema.yml
291
291
  - _data/base/color.yml
292
292
  - _data/base/color_schema.yml
293
+ - _data/base/configuration_variables_schema.yml
293
294
  - _data/base/content.yml
294
295
  - _data/base/content_schema.yml
295
296
  - _data/base/copyright.yml
@@ -333,8 +334,9 @@ files:
333
334
  - _includes/base/breakingnews.html.liquid
334
335
  - _includes/base/card.html.liquid
335
336
  - _includes/base/color-table.html.liquid
336
- - _includes/base/configuration-variables-nested.html.liquid
337
- - _includes/base/configuration-variables.html.liquid
337
+ - _includes/base/configuration_variables-nested.html.liquid
338
+ - _includes/base/configuration_variables.html.liquid
339
+ - _includes/base/content.html.liquid
338
340
  - _includes/base/copyright.html.liquid
339
341
  - _includes/base/copyvalue.html.liquid
340
342
  - _includes/base/datatable.html.liquid