Skip to content

Commit f4f14f8

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 5c17321 + a804b4f commit f4f14f8

8 files changed

Lines changed: 398 additions & 295 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ static/pagefind/
44
.DS_Store
55
node_modules/
66
data/get_almalinux.yaml
7+
resources/_gen/

assets/scss/main.scss

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,3 +409,102 @@ a{
409409
max-width: 1320px;
410410
}
411411
}
412+
413+
.al-page-toc {
414+
font-size: 0.9rem;
415+
}
416+
417+
.al-page-toc-inner {
418+
padding: 1rem;
419+
background: rgba(8, 35, 54, 0.55);
420+
border: 1px solid rgba(196, 225, 255, 0.15);
421+
border-radius: 6px;
422+
}
423+
424+
.al-page-toc-title {
425+
font-size: 0.75rem;
426+
font-weight: 700;
427+
text-transform: uppercase;
428+
letter-spacing: 0.05em;
429+
color: $al-c-candlelight;
430+
margin-bottom: 0.5rem;
431+
padding-bottom: 0.5rem;
432+
border-bottom: 1px solid rgba(196, 225, 255, 0.15);
433+
}
434+
435+
.al-page-toc #TableOfContents {
436+
max-height: calc(100vh - 8rem);
437+
overflow-y: auto;
438+
}
439+
440+
.al-page-toc #TableOfContents ul {
441+
list-style: none;
442+
padding-left: 0;
443+
margin: 0;
444+
}
445+
446+
.al-page-toc #TableOfContents ul ul {
447+
padding-left: 0.9rem;
448+
margin-top: 0.15rem;
449+
}
450+
451+
.al-page-toc-flat #TableOfContents ul ul {
452+
display: none;
453+
}
454+
455+
.al-wysiwyg h1[id],
456+
.al-wysiwyg h2[id],
457+
.al-wysiwyg h3[id],
458+
.al-wysiwyg h4[id],
459+
.al-wysiwyg h5[id],
460+
.al-wysiwyg h6[id] {
461+
scroll-margin-top: 120px;
462+
}
463+
464+
.al-back-to-top {
465+
font-size: 0.7em;
466+
margin-right: 0.6em;
467+
padding: 0.05em 0.45em;
468+
color: $al-link-color;
469+
background: rgba(8, 35, 54, 0.4);
470+
border: 1px solid rgba(196, 225, 255, 0.25);
471+
border-radius: 3px;
472+
text-decoration: none;
473+
font-weight: 400;
474+
vertical-align: middle;
475+
opacity: 0.6;
476+
transition: opacity 0.15s ease, color 0.15s ease;
477+
}
478+
479+
.al-back-to-top:hover {
480+
opacity: 1;
481+
color: $al-c-candlelight;
482+
border-color: $al-c-candlelight;
483+
}
484+
485+
.al-page-toc #TableOfContents li {
486+
margin: 0.2rem 0;
487+
line-height: 1.3;
488+
}
489+
490+
.al-page-toc #TableOfContents a {
491+
color: $al-link-color;
492+
text-decoration: none;
493+
display: block;
494+
padding: 0.2rem 0.5rem;
495+
border-left: 2px solid transparent;
496+
border-radius: 0 3px 3px 0;
497+
}
498+
499+
.al-page-toc #TableOfContents a:hover {
500+
color: #fff;
501+
border-left-color: $al-c-candlelight;
502+
background: rgba(255, 203, 18, 0.1);
503+
}
504+
505+
@media (min-width: 992px) {
506+
.al-page-toc-inner {
507+
position: sticky;
508+
top: 1rem;
509+
}
510+
}

content/p/foundation-bylaws.md

Lines changed: 264 additions & 285 deletions
Large diffs are not rendered by default.

i18n/en.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,5 +698,7 @@
698698
"Chair of the Board of Directors": "Chair of the Board of Directors",
699699
"To avoid any surprises, we highly recommend that you test upgrade scenarios in a virtual machine or sandbox before running upgrades in production.": "To avoid any surprises, we highly recommend that you test upgrade scenarios in a virtual machine or sandbox before running upgrades in production.",
700700
"If you are able to help investigate and fix the bug, please collaborate with CentOS Stream. This is the most impactful thing an AlmaLinux Community Member can do. Check the CentOS Contributor's Guide (opens new window) for more details.": "If you are able to help investigate and fix the bug, please collaborate with CentOS Stream. This is the most impactful thing an AlmaLinux Community Member can do. Check the CentOS Contributor's Guide (opens new window) for more details.",
701-
"Navigating the fluctuating compatibility and dependencies for your environment is hard enough without having to dig into your operating system. Make the best use of your time by checking the list of compatible solutions for your needs, environment.": "Navigating the fluctuating compatibility and dependencies for your environment is hard enough without having to dig into your operating system. Make the best use of your time by checking the list of compatible solutions for your needs, environment."
701+
"Navigating the fluctuating compatibility and dependencies for your environment is hard enough without having to dig into your operating system. Make the best use of your time by checking the list of compatible solutions for your needs, environment.": "Navigating the fluctuating compatibility and dependencies for your environment is hard enough without having to dig into your operating system. Make the best use of your time by checking the list of compatible solutions for your needs, environment.",
702+
"On this page": "On this page",
703+
"Back to top": "Back to top"
702704
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{{- printf "<h%d id=\"%s\">" .Level .Anchor | safeHTML -}}
2+
{{- if and (eq .Page.Section "p") (eq .Level 2) -}}
3+
<a
4+
href="#"
5+
class="al-back-to-top"
6+
aria-label="{{ i18n "Back to top" }}"
7+
title="{{ i18n "Back to top" }}"
8+
></a
9+
>
10+
{{- end -}}
11+
{{- .Text | safeHTML -}}
12+
{{- printf "</h%d>" .Level | safeHTML -}}

layouts/p/single.html

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,25 @@
33
<section class="al-page-page" dir="ltr">
44
<div class="container py-5">
55
<h1 class="al-section-title mb-4">{{ .Title }}</h1>
6-
<article>
7-
<div class="al-page-content pb-5 al-wysiwyg">
8-
{{ .Content }}
9-
</div>
10-
</article>
6+
<div class="row">
7+
<aside class="col-lg-3 mb-4 mb-lg-0 d-print-none">
8+
<nav
9+
class="al-page-toc{{ if .Params.tocFlat }}
10+
al-page-toc-flat
11+
{{ end }}"
12+
aria-label="{{ i18n "On this page" }}">
13+
<div class="al-page-toc-inner">
14+
<div class="al-page-toc-title">{{ i18n "On this page" }}</div>
15+
{{ .TableOfContents }}
16+
</div>
17+
</nav>
18+
</aside>
19+
<article class="col-lg-9">
20+
<div class="al-page-content pb-5 al-wysiwyg">
21+
{{ .Content }}
22+
</div>
23+
</article>
24+
</div>
1125
</div>
1226
</section>
1327
</div>

resources/_gen/assets/scss/main.scss_fda126c12ab7f563dcca729be43875b0.content

Lines changed: 0 additions & 3 deletions
This file was deleted.

resources/_gen/assets/scss/main.scss_fda126c12ab7f563dcca729be43875b0.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)