Skip to content

Commit 1da510c

Browse files
committed
Improve Status and Training page layout
1 parent f15873c commit 1da510c

File tree

4 files changed

+86
-18
lines changed

4 files changed

+86
-18
lines changed
+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
// Styles for docs-like pages without left sidebar
2+
3+
.td-no-left-sidebar .td-main {
4+
// Hide left sidebar
5+
.td-sidebar {
6+
display: none !important;
7+
}
8+
9+
// Adjust ToC sidebar, e.g., to fill Bootstrap columns that the left sidebar
10+
// would have taken was using.
11+
.td-sidebar-toc {
12+
@include media-breakpoint-up(md) {
13+
display: block !important;
14+
}
15+
16+
// Always 2 col wide (unless hidden)
17+
@extend .col-md-2;
18+
19+
// Don't scroll with the page (otherwise, for short pages, the ToC hides
20+
// behind the top navbar).
21+
position: fixed;
22+
right: 0;
23+
24+
// Ensure ToC doesn't overlap with the footer
25+
z-index: -1;
26+
}
27+
28+
// The <main> element sibling of the ToC sidebar
29+
> div > main {
30+
// Always 10 col wide (unless the ToC sidebar is hidden)
31+
@extend .col-md-10;
32+
@extend .col-xl-10;
33+
34+
@include media-breakpoint-up(md) {
35+
padding-right: 3rem;
36+
}
37+
38+
@include media-breakpoint-up(lg) {
39+
// Center content on larger screens
40+
41+
.td-content {
42+
max-width: 80%;
43+
margin-left: auto;
44+
margin-right: auto;
45+
46+
// Cancel .td-max-width-on-larger-screens
47+
> * {
48+
max-width: 100%;
49+
}
50+
}
51+
}
52+
}
53+
}

assets/scss/_styles_project.scss

+20-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
/* Docsy-delta full file override: we're not tracking changes to the Docsy file of the same name. */
2-
// cSpell:ignore cncf docsy
2+
// cSpell:ignore cncf docsy otca
33

44
@import 'registry';
55
@import 'tabs';
66
@import 'external_link';
77
@import 'td/code-dark';
8+
@import '_page_no_left_sidebar';
89

910
.td-home {
1011
.otel-logo {
@@ -335,3 +336,21 @@ details {
335336
padding-left: 0.6rem;
336337
}
337338
}
339+
340+
.ot-training {
341+
@extend .td-no-left-sidebar;
342+
343+
.otca img {
344+
border-style: none !important;
345+
max-width: 244px;
346+
margin: auto;
347+
}
348+
}
349+
350+
// TODO: upstream to Docsy
351+
352+
.hk-no-external-icon {
353+
a.external-link:after {
354+
display: none !important;
355+
}
356+
}

content/en/status.md

+2-6
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,10 @@ title: Status
33
menu: { main: { weight: 30 } }
44
aliases: [/project-status, /releases]
55
description: Maturity-level of the main OpenTelemetry components
6+
type: docs
7+
body_class: td-no-left-sidebar
68
---
79

8-
{{% blocks/section color="white" %}}
9-
10-
## {{% param title %}}
11-
1210
OpenTelemetry is made up of [several components](/docs/concepts/components/),
1311
some language-specific and others language-agnostic. When looking for a
1412
[status](/docs/specs/otel/versioning-and-stability/), make sure to look for the
@@ -50,5 +48,3 @@ state with components in `v1alpha1` and `v1beta1` states.
5048
For the development status, or maturity level, of the
5149
[specification](/docs/specs/otel/), see the following:
5250
[Specification Status Summary](/docs/specs/status/).
53-
54-
{{% /blocks/section %}}

content/en/training/_index.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
---
22
title: Training
33
menu: { main: { weight: 45 } }
4-
description: Training programs and certifications for OpenTelemetry
4+
description: OpenTelemetry certifications and courses
5+
type: docs
6+
body_class: ot-training
7+
hide_feedback: true
58
cSpell:ignore: otca
69
---
710

8-
{{% blocks/section color="white" %}}
9-
10-
## {{% param title %}}
11-
1211
This page showcases training resources for the OpenTelemetry project. Check back
1312
often for updates!
1413

@@ -17,12 +16,13 @@ often for updates!
1716
Demonstrate your expertise in OpenTelemetry by becoming an OpenTelemetry
1817
Certified Associate.
1918

20-
<a href="https://www.cncf.io/training/certification/otca/">
21-
<img src="lft-badge-opentelemetry-associate2.svg" style="width: 250px; height: auto;" alt="OTCA Badge">
22-
</a>
19+
<!-- prettier-ignore -->
20+
[![OTCA badge]][OTCA URL]
21+
{.otca .hk-no-external-icon}
2322

24-
### Training programs
23+
[OTCA badge]: lft-badge-opentelemetry-associate2.svg
24+
[OTCA URL]: https://www.cncf.io/training/certification/otca/
2525

26-
Coming soon!
26+
### Courses
2727

28-
{{% /blocks/section %}}
28+
Coming soon!

0 commit comments

Comments
 (0)