From 1b6caf69c2ab66bd6d2517845f9165e57cdc5058 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 25 Oct 2020 13:29:58 -0700 Subject: [PATCH] Rename Navs to Navs and Tabs (#31965) * Rename Navs to Navs and Tabs Fixes #31378 * Add title to renamed file * Update navs-tabs.md * Add alias/redirect * Fix references to renamed file, tweak title Co-authored-by: Patrick H. Lauke --- site/content/docs/5.0/components/button-group.md | 2 +- site/content/docs/5.0/components/card.md | 2 +- site/content/docs/5.0/components/{navs.md => navs-tabs.md} | 3 ++- site/content/docs/5.0/components/scrollspy.md | 2 +- site/content/docs/5.0/migration.md | 1 + site/data/sidebar.yml | 2 +- 6 files changed, 7 insertions(+), 5 deletions(-) rename site/content/docs/5.0/components/{navs.md => navs-tabs.md} (99%) diff --git a/site/content/docs/5.0/components/button-group.md b/site/content/docs/5.0/components/button-group.md index 7a5992bbc7..b7f700c05f 100644 --- a/site/content/docs/5.0/components/button-group.md +++ b/site/content/docs/5.0/components/button-group.md @@ -26,7 +26,7 @@ In order for assistive technologies (such as screen readers) to convey that a se In addition, groups and toolbars should be given an explicit label, as most assistive technologies will otherwise not announce them, despite the presence of the correct role attribute. In the examples provided here, we use `aria-label`, but alternatives such as `aria-labelledby` can also be used. {{< /callout >}} -These classes can also be added to groups of links, as an alternative to the [`.nav` navigation components]({{< docsref "/components/navs" >}}). +These classes can also be added to groups of links, as an alternative to the [`.nav` navigation components]({{< docsref "/components/navs-tabs" >}}). {{< example >}}
diff --git a/site/content/docs/5.0/components/card.md b/site/content/docs/5.0/components/card.md index baa645be7c..cb25187bd1 100644 --- a/site/content/docs/5.0/components/card.md +++ b/site/content/docs/5.0/components/card.md @@ -296,7 +296,7 @@ You can quickly change the text alignment of any card—in its entirety or speci ## Navigation -Add some navigation to a card's header (or block) with Bootstrap's [nav components]({{< docsref "/components/navs" >}}). +Add some navigation to a card's header (or block) with Bootstrap's [nav components]({{< docsref "/components/navs-tabs" >}}). {{< example >}}
diff --git a/site/content/docs/5.0/components/navs.md b/site/content/docs/5.0/components/navs-tabs.md similarity index 99% rename from site/content/docs/5.0/components/navs.md rename to site/content/docs/5.0/components/navs-tabs.md index 0e74443f7c..d21837e251 100644 --- a/site/content/docs/5.0/components/navs.md +++ b/site/content/docs/5.0/components/navs-tabs.md @@ -1,8 +1,9 @@ --- layout: docs -title: Navs +title: Navs and tabs description: Documentation and examples for how to use Bootstrap's included navigation components. group: components +aliases: "/docs/5.0/components/navs/" toc: true --- diff --git a/site/content/docs/5.0/components/scrollspy.md b/site/content/docs/5.0/components/scrollspy.md index 57a12edc47..5579786370 100644 --- a/site/content/docs/5.0/components/scrollspy.md +++ b/site/content/docs/5.0/components/scrollspy.md @@ -10,7 +10,7 @@ toc: true Scrollspy has a few requirements to function properly: -- It must be used on a Bootstrap [nav component]({{< docsref "/components/navs" >}}) or [list group]({{< docsref "/components/list-group" >}}). +- It must be used on a Bootstrap [nav component]({{< docsref "/components/navs-tabs" >}}) or [list group]({{< docsref "/components/list-group" >}}). - Scrollspy requires `position: relative;` on the element you're spying on, usually the ``. - Anchors (``) are required and must point to an element with that `id`. diff --git a/site/content/docs/5.0/migration.md b/site/content/docs/5.0/migration.md index 6e5734854b..539f04821b 100644 --- a/site/content/docs/5.0/migration.md +++ b/site/content/docs/5.0/migration.md @@ -31,6 +31,7 @@ toc: true ### Docs +- Renamed "Navs" page to "Navs & Tabs" - Renamed "Screen readers" helper page to "Visually hidden", and filename to `visually-hidden` - Renamed "Checks" page to "Checks & radios", and filename to `checks-radios` - Improved documentation of check/radio powered button groups diff --git a/site/data/sidebar.yml b/site/data/sidebar.yml index 5ff66041a7..a751ccbfc5 100644 --- a/site/data/sidebar.yml +++ b/site/data/sidebar.yml @@ -65,7 +65,7 @@ - title: Dropdowns - title: List group - title: Modal - - title: Navs + - title: Navs & tabs - title: Navbar - title: Pagination - title: Popovers