2020-03-23 15:23:37 +01:00
< nav class = "collapse bd-links" id = "bd-docs-nav" aria-label = "Docs navigation" >
2019-04-15 10:49:24 +02:00
{{- $url := split .Permalink "/" -}}
2019-01-08 17:33:28 +01:00
{{- $page_slug := index $url (sub (len $url) 2) -}}
2020-03-13 19:01:33 +01:00
< ul class = "list-unstyled mb-0" >
2019-07-26 16:22:08 +02:00
{{- range $group := .Site.Data.sidebar -}}
2019-01-08 17:33:28 +01:00
{{- $link := $group.title -}}
{{- $link_slug := $link | urlize -}}
{{- if $group.pages -}}
{{- $link = index $group.pages 0 -}}
{{- $link_slug = $link.title | urlize -}}
{{- end -}}
{{- $group_slug := $group.title | urlize -}}
2020-04-17 18:47:19 +02:00
{{- $is_active_group := eq $.Page.Params.group $group_slug }}
2019-01-08 17:33:28 +01:00
2020-04-17 18:47:19 +02:00
< li class = "my-1{{ if $is_active_group }} active{{ end }}" >
2020-05-26 18:02:19 +02:00
< a class = "d-inline-flex align-items-center rounded{{ if not $is_active_group }} collapsed{{ end }}" data-toggle = "collapse" href = "#{{ $group_slug }}-collapse" role = "button" aria-expanded = "{{ $is_active_group }}" { { if $ is_active_group } } aria-current = "true" { { end } } >
2020-02-07 12:18:30 +01:00
{{ $group.title }}
2019-08-30 07:01:21 +02:00
< / a >
2019-01-08 17:33:28 +01:00
2019-08-30 07:01:21 +02:00
{{- if $group.pages }}
2020-05-26 18:02:19 +02:00
< ul class = "list-unstyled font-weight-normal mb-2 collapse{{ if $is_active_group }} show{{ end }}" id = "{{ $group_slug }}-collapse" >
2019-08-30 07:01:21 +02:00
{{- range $doc := $group.pages -}}
2020-04-17 18:47:19 +02:00
{{- $doc_slug := $doc.title | urlize -}}
{{- $is_active := and $is_active_group (eq $page_slug $doc_slug) -}}
{{- $href := printf "/docs/%s/%s/%s/" $.Site.Params.docs_version $group_slug $doc_slug }}
2020-05-26 18:02:19 +02:00
< li > < a href = "{{ $href }}" class = "d-inline-flex align-items-center rounded{{ if $is_active }} active{{ end }}" { { if $ is_active } } aria-current = "page" { { end } } > {{ $doc.title }}< / a > < / li >
2019-01-08 17:33:28 +01:00
{{- end }}
2019-08-30 07:01:21 +02:00
< / ul >
{{- end }}
< / li >
{{- end }}
v5: Forms update (#28450)
* Initial spike of consolidated form checks
* Stub out forms rearrangement
- Prepping to drop non-custom file and range inputs
- Prepping to merge custom and native checks and radios (with switches)
- Prepping to merge custom select with form select
- Moving docs arround so forms has it's own area given volume of CSS
* Move input group Sass file to forms subdir
* Start to split and move the docs around
* Simpler imports
* Copyediting
* delete overview file
* Remove commented out code
* remove the custom-forms import
* rewrite flex-check as form-check, replace all custom properties
* Remove old forms doc
* stub out new subpage link section
* update migration guide
* Update nav, forms overview in page nav, and descriptions
* fix check bg position
* fix margin-top calculation
* rename .custom-select to .form-select
* Update validation styles for new checks
* add some vertical margin, fix inline checks
* fix docs examples
* better way to do this contents stuff, redo the toc while i'm at it
* page restyle for docs while here
* un-callout that, edit text
* redo padding on toc
* fix toc
* start to cleanup checks docs
* Rewrite Markdown tables into HTML
* Redesign tables, redo their docs
* Replace Open Iconic icons with custom Bootstrap icons
* Redesign the docs navbar, add a subheader, redo the sidebar
* Redesign docs homepage a bit
* Simplify table style overrides for docs tables
* Simplify docs typography for page titles and reading line length
* Stub out icons page
* Part of sidebar update, remove migration from nav.yml
* Move toc CSS to separate partial
* Change appearance of overview page
* fix sidebar arrow direction
* Add footer to docs layout
* Update descriptions
* Drop the .form-group class for margin utilities
* Remove lingering form-group-margin-bottom var
* improve footer spacing
* add headings to range page
* uncomment form range css
* Rename .custom-range to .form-range
* Drop unused docs var
* Uncomment the comment
* Remove unused variable
* Fix radio image sizing
* Reboot update: reset horizontal ul and ol padding
* de-dupe IDs
* tweak toc styles
* nvm, fix dropdown versions stuff
* remove sidebar nav toggle for now
* broken html
* fix more broken html, move css
* scss linting
* comment out broken helper docs
* scope styles
* scope styles
* Fixes #25540 and fixes #26407 for v5 only
* Update sidebar once more
* Match new sidenav order
* fix syntax error
* Rename custom-file to form-file, update paths, update migration docs for previous changes in #28696
* rename back
* fix size and alignment
* rename that back too
2019-07-12 23:52:33 +02:00
< li class = "my-3 mx-4 border-top" > < / li >
2020-03-13 19:01:33 +01:00
< li { { if eq $ page_slug " migration " } } class = "active" { { end } } >
2020-05-26 18:02:19 +02:00
< a href = "/docs/{{ $.Site.Params.docs_version }}/migration/" class = "d-inline-flex align-items-center rounded" >
2019-07-18 09:58:52 +02:00
Migration
2019-07-17 01:00:46 +02:00
< / a >
v5: Forms update (#28450)
* Initial spike of consolidated form checks
* Stub out forms rearrangement
- Prepping to drop non-custom file and range inputs
- Prepping to merge custom and native checks and radios (with switches)
- Prepping to merge custom select with form select
- Moving docs arround so forms has it's own area given volume of CSS
* Move input group Sass file to forms subdir
* Start to split and move the docs around
* Simpler imports
* Copyediting
* delete overview file
* Remove commented out code
* remove the custom-forms import
* rewrite flex-check as form-check, replace all custom properties
* Remove old forms doc
* stub out new subpage link section
* update migration guide
* Update nav, forms overview in page nav, and descriptions
* fix check bg position
* fix margin-top calculation
* rename .custom-select to .form-select
* Update validation styles for new checks
* add some vertical margin, fix inline checks
* fix docs examples
* better way to do this contents stuff, redo the toc while i'm at it
* page restyle for docs while here
* un-callout that, edit text
* redo padding on toc
* fix toc
* start to cleanup checks docs
* Rewrite Markdown tables into HTML
* Redesign tables, redo their docs
* Replace Open Iconic icons with custom Bootstrap icons
* Redesign the docs navbar, add a subheader, redo the sidebar
* Redesign docs homepage a bit
* Simplify table style overrides for docs tables
* Simplify docs typography for page titles and reading line length
* Stub out icons page
* Part of sidebar update, remove migration from nav.yml
* Move toc CSS to separate partial
* Change appearance of overview page
* fix sidebar arrow direction
* Add footer to docs layout
* Update descriptions
* Drop the .form-group class for margin utilities
* Remove lingering form-group-margin-bottom var
* improve footer spacing
* add headings to range page
* uncomment form range css
* Rename .custom-range to .form-range
* Drop unused docs var
* Uncomment the comment
* Remove unused variable
* Fix radio image sizing
* Reboot update: reset horizontal ul and ol padding
* de-dupe IDs
* tweak toc styles
* nvm, fix dropdown versions stuff
* remove sidebar nav toggle for now
* broken html
* fix more broken html, move css
* scss linting
* comment out broken helper docs
* scope styles
* scope styles
* Fixes #25540 and fixes #26407 for v5 only
* Update sidebar once more
* Match new sidenav order
* fix syntax error
* Rename custom-file to form-file, update paths, update migration docs for previous changes in #28696
* rename back
* fix size and alignment
* rename that back too
2019-07-12 23:52:33 +02:00
< / li >
< / ul >
2019-01-08 17:33:28 +01:00
< / nav >