You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As we added more tutorials and new services to ACK and our documentation
website, it got harder to navigate throught the docs menu. This update
improves the UX by tweaking the `docs-menu.html` and
`reference-menu-item.html` files to make it easier to use the pages
sections.
This patch bring mainly two changes:
- On the `Documentation` page, all the sections (except the active one)
are collapsed by default. No more getting lost in a sea of sections!
- On the `API References` page, the expand icon now correctly shows the
status of the section/subsection (expanded/unexpanded), when selecting
a new CRD.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
<buttonclass="btn btn-toggle align-items-center rounded{{ if not $active }} collapsed{{ end }}" data-bs-toggle="collapse" data-bs-target="#section-{{ .Identifier }}" aria-expanded="{{ if not $active }}false{{ else }}true{{ end }}">
<buttonclass="btn btn-toggle align-items-center rounded {{ if not $serviceActive }} collapsed{{ end }}" data-bs-toggle="collapse" data-bs-target="#section-{{ .service.name }}" aria-expanded="{{ if not $root.serviceActive }} false{{ else }}true{{ end }}">
4
+
<buttonclass="btn btn-toggle align-items-center rounded {{ if not $serviceActive }} collapsed{{ end }}" data-bs-toggle="collapse" data-bs-target="#section-{{ .service.name }}" aria-expanded="{{ if not $serviceActive }} false{{ else }}true{{ end }}">
<divclass="collapse position-relative{{ if $serviceActive }} show{{ end }}" id="section-{{ $root.service.name }}">
7
+
<divclass="collapse position-relative{{ if not $serviceActive }} collapsed{{ else }} show{{ end }}" id="section-{{ $root.service.name }}" aria-expanded="{{ if not $root.serviceActive }} false{{ else }} true{{ end }}">
8
8
{{ range $api_version := sort $root.service.service_metadata.api_versions }}
<buttonclass="btn btn-toggle align-items-center rounded ms-2 small{{ if not $versionActive }} collapsed{{ end }}" data-bs-toggle="collapse" data-bs-target="#section-{{ $root.service.name }}-{{ $api_version.api_version }}" aria-expanded="{{ if not $versionActive }} false{{ else }}true{{ end }}">
0 commit comments