Skip to content

Commit 8e00c3e

Browse files
committed
Mainframe: Fix duplicate doc. Fix catalog
1 parent b2de7d5 commit 8e00c3e

File tree

4 files changed

+18
-17
lines changed

4 files changed

+18
-17
lines changed

assets/css/v2/style.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,7 @@ p {
10671067
.breadcrumb-layout {
10681068
position: relative;
10691069
background-color: white;
1070-
width: calc(100% + 4rem);
1070+
/* width: calc(100% + 4rem); */
10711071
margin-left: -2rem;
10721072
padding: 1rem 2rem;
10731073

@@ -1712,6 +1712,14 @@ ul .code-block {
17121712
background-color: oklch(var(--color-codeblock-highlight));
17131713
}
17141714

1715+
/* MARK: Catalog
1716+
*/
1717+
.catalog {
1718+
.catalog__table {
1719+
padding-bottom: 2rem;
1720+
}
1721+
}
1722+
17151723
/* MARK: Images
17161724
*/
17171725
figure {

layouts/_default/docs.html

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="docs-container row override-sidebar-collapse">
44
<!-- Replace icons -->
55
{{ $content := partial "icon-replacement.html" (dict "content" .Content) }}
6-
6+
77
{{if (.Params.catalog) }}
88
<main class="content content-has-toc" role="main">
99
{{ else if and (gt .WordCount 200 ) (.Params.toc) }}
@@ -25,7 +25,7 @@
2525
<section class="breadcrumb-layout wide">
2626
{{ if not .IsHome }}
2727
{{ if not (in .Params.display_breadcrumb "false" ) }}
28-
{{ partial "breadcrumb" .}}
28+
{{ partial "breadcrumb" .}}
2929
{{ end }}
3030
{{ end }}
3131
</section>
@@ -36,7 +36,7 @@ <h1>{{ .Title }}</h1>
3636
{{ if in .Params.doctypes "beta" }}{{ partial "beta-badge" . }}{{ end }}
3737

3838
<hr>
39-
39+
4040
{{ if .Page.Lastmod }}
4141
<div class="last-modified">
4242
{{ partial "page-meta-links" . }}
@@ -48,14 +48,7 @@ <h1>{{ .Title }}</h1>
4848

4949
{{ partial "previous-next-links-in-section-with-title.html" . }}
5050
</main>
51-
{{ if and (gt .WordCount 200 ) (.Params.toc) }}
52-
{{ if (add (len (findRE "<h3" .Content)) (len (findRE "<h2" .Content))) }}
53-
<div id="toc" class="col-md-3 d-none d-xl-block d-print-none nginx-toc align-top">
54-
{{ partial "toc.html" . }}
55-
</div>
56-
{{ end }}
57-
{{ end }}
58-
51+
5952
</div>
6053
</section>
6154
</section>

layouts/shortcodes/dimensions.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
{{ $p := . }}
2323
<a name="{{$p.name}}"></a>
2424
<h3>{{$p.name}}
25-
<a class="headerlink float-right" href="#{{$p.name}}" title="{{$p.name}}"><i class="fas fa-link fa-xs" aria-hidden="true"></i></a></h3>
25+
<a class="headerlink float-right" href="#{{$p.name}}" title="{{$p.name}}"></a></h3>
2626
<table>
2727
<tr>
2828
<td style="width: 200px">description</td>

layouts/shortcodes/metrics.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
<a name="{{$p.name}}"></a>
2525
<h3>{{$p.name}}
26-
<a class="headerlink float-right" href="#{{$p.name}}" title="{{$p.name}}"><i class="fas fa-link fa-xs" aria-hidden="true"></i></a></h3>
26+
<a class="headerlink float-right" href="#{{$p.name}}" title="{{$p.name}}"></a></h3>
2727
<table>
2828
<tr>
2929
<td style="width: 200px; padding-bottom:5px">description</td>
@@ -79,9 +79,9 @@ <h3>{{$p.name}}
7979
<li>
8080
<a href="#{{$p.name}}">{{$p.name}}</a>
8181
</li>
82-
82+
8383
{{ end }}
8484
</ul>
8585
</div>
86-
87-
</div>
86+
87+
</div>

0 commit comments

Comments
 (0)