Skip to content

Commit

Permalink
[Docs] Fix anchors
Browse files Browse the repository at this point in the history
  • Loading branch information
pubiqq committed Apr 24, 2024
1 parent cc125d9 commit fea356a
Show file tree
Hide file tree
Showing 29 changed files with 35 additions and 38 deletions.
6 changes: 3 additions & 3 deletions docs/components/BottomAppBar.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ revert back to the previous style.

**Contents**

* [Design & API documentation](#design-api-documentation)
* [Design & API Documentation](#design--api-documentation)
* [Using bottom app bars](#using-bottom-app-bars)
* [Bottom app bar](#bottom-app-bar)
* [Theming bottom app bars](#theming-bottom-app-bars)
Expand Down Expand Up @@ -73,8 +73,8 @@ in the menu:

## Bottom app bar

Bottom app bars provide access to a bottom navigation drawer and up to four
actions, including the floating action button.
Bottom app bars provide access to up to four actions, including the
[floating action button](FloatingActionButton.md) (FAB).

### Bottom app bar examples

Expand Down
2 changes: 1 addition & 1 deletion docs/components/BottomNavigation.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ allow movement between primary destinations in an app.

**Contents**

* [Design & API documentation](#design-api-documentation)
* [Design & API Documentation](#design--api-documentation)
* [Using bottom navigation](#using-bottom-navigation)
* [Bottom navigation bar](#bottom-navigation-bar)
* [Theming](#theming-a-bottom-navigation-bar)
Expand Down
2 changes: 1 addition & 1 deletion docs/components/BottomSheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ containing supplementary content that are anchored to the bottom of the screen.

**Contents**

* [Design & API Documentation](#design-api-documentation)
* [Design & API Documentation](#design--api-documentation)
* [Using bottom sheets](#using-bottom-sheets)
* [Standard bottom sheet](#standard-bottom-sheet)
* [Modal bottom sheet](#modal-bottom-sheet)
Expand Down
2 changes: 1 addition & 1 deletion docs/components/Button.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ and make choices, with a single tap.

**Contents**

* [Design & API Documentation](#design-api-documentation)
* [Design & API Documentation](#design--api-documentation)
* [Using buttons](#using-buttons)
* [Elevated button](#elevated-button)
* [Filled button](#filled-button)
Expand Down
2 changes: 1 addition & 1 deletion docs/components/Card.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ a single subject.

**Contents**

* [Design & API Documentation](#design-api-documentation)
* [Design & API Documentation](#design--api-documentation)
* [Using cards](#using-cards)
* [Card](#card)
* [Theming](#theming-cards)
Expand Down
2 changes: 1 addition & 1 deletion docs/components/Carousel.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Carousels contain a collection of items that can move into or out of view

**Contents**

* [Design & API documentation](#design-api-documentation)
* [Design & API Documentation](#design--api-documentation)
* [Using carousel](#using-carousel)
* [Multi-browse strategy](#multi-browse-strategy)
* [Hero strategy](#hero-strategy)
Expand Down
2 changes: 1 addition & 1 deletion docs/components/Checkbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ checked](assets/checkbox/checkbox_hero.png)

**Contents**

* [Design & API Documentation](#design-api-documentation)
* [Design & API Documentation](#design--api-documentation)
* [Using checkboxes](#using-checkboxes)
* [Checkbox](#checkbox)
* [Theming checkboxes](#theming-checkboxes)
Expand Down
2 changes: 1 addition & 1 deletion docs/components/Chip.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ represent an input, attribute, or action.

**Contents**

* [Design & API Documentation](#design-api-documentation)
* [Design & API Documentation](#design--api-documentation)
* [Using chips](#using-chips)
* [Assist chip](#assist-chip)
* [Filter chip](#filter-chip)
Expand Down
2 changes: 1 addition & 1 deletion docs/components/DatePicker.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ date or range of dates.

**Contents**

* [Design & API documentation](#design-api-documentation)
* [Design & API Documentation](#design--api-documentation)
* [Using date pickers](#using-date-pickers)
* [Calendar date picker](#calendar-date-picker)
* [Theming date pickers](#theming-date-pickers)
Expand Down
2 changes: 1 addition & 1 deletion docs/components/Dialog.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ can contain critical information, require decisions, or involve multiple tasks.

**Contents**

* [Design & API documentation](#design-api-documentation)
* [Design & API Documentation](#design--api-documentation)
* [Using dialogs](#using-dialogs)
* [Basic dialog](#basic-dialog)
* [Full-screen dialog](#full-screen-dialog)
Expand Down
2 changes: 1 addition & 1 deletion docs/components/Divider.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ groups.

**Contents**

* [Design & API Documentation](#design-api-documentation)
* [Design & API Documentation](#design--api-documentation)
* [Using dividers](#using-dividers)
* [Divider's key properties](#key-properties)
* [Theming dividers](#theming-dividers)
Expand Down
2 changes: 1 addition & 1 deletion docs/components/FloatingActionButton.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ represents the primary action of a screen.

**Contents**

* [Design & API Documentation](#design-api-documentation)
* [Design & API Documentation](#design--api-documentation)
* [Using FABs](#using-fabs)
* [FABs](#fabs)
* [Small FABs](#small-fabs)
Expand Down
2 changes: 1 addition & 1 deletion docs/components/Menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ temporary surfaces.

**Contents**

* [Design & API Documentation](#design-api-documentation)
* [Design & API Documentation](#design--api-documentation)
* [Using menus](#using-menus)
* [Dropdown menus](#dropdown-menus)
* [Exposed dropdown menus](#exposed-dropdown-menus)
Expand Down
10 changes: 4 additions & 6 deletions docs/components/NavigationDrawer.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@ access to destinations in your app.

**Contents**

* [Design & API Documentation](#design-api-documentation)
* [Design & API Documentation](#design--api-documentation)
* [Using navigation drawers](#using-navigation-drawers)
* [Anatomy](#anatomy)
* [Standard navigation drawer](#standard-navigation-drawer)
* [Modal navigation drawer](#modal-navigation-drawer)
* [Bottom navigation drawer](#bottom-navigation-drawer)
* [Predictive Back](#predictive-back)
* [Theming](#theming)

Expand Down Expand Up @@ -344,10 +343,9 @@ Default style theme attribute: `?attr/drawerLayoutStyle`

### Types

There are three types of navigation drawers: 1\.
[Standard navigation drawer](#standard-navigation-drawer), 2\.
[Modal navigation drawer](#modal-navigation-drawer), 3\.
[Bottom navigation drawer](#bottom-navigation-drawer)
There are two types of navigation drawers:
- [Standard navigation drawer](#standard-navigation-drawer)
- [Modal navigation drawer](#modal-navigation-drawer)

## Standard navigation drawer

Expand Down
2 changes: 1 addition & 1 deletion docs/components/NavigationRail.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ access to primary destinations in your app on tablet and desktop screens.

**Contents**

* [Design & API Documentation](#design-api-documentation)
* [Design & API Documentation](#design--api-documentation)
* [Using navigation rail](#using-navigation-rail)
* [Navigation rail example](#navigation-rail-example)
* [Theming](#theming-a-navigation-rail)
Expand Down
2 changes: 1 addition & 1 deletion docs/components/ProgressIndicator.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ express an unspecified wait time or display the length of a process.

**Contents**

* [Design & API Documentation](#design-api-documentation)
* [Design & API Documentation](#design--api-documentation)
* [Using progress indicators](#using-progress-indicators)
* [Linear progress indicators](#linear-progress-indicators)
* [Circular progress indicators](#circular-progress-indicators)
Expand Down
2 changes: 1 addition & 1 deletion docs/components/RadioButton.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Use radio buttons to:

**Contents**

* [Design & API Documentation](#design-api-documentation)
* [Design & API Documentation](#design--api-documentation)
* [Using radio buttons](#using-radio-buttons)
* [Radio button](#radio-button)
* [Theming radio buttons](#theming-radio-buttons)
Expand Down
5 changes: 2 additions & 3 deletions docs/components/Search.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ surface that allows product-specific branding and additional navigation icons.

**Contents**

* [Design & API Documentation](#design-api-documentation)
* [Design & API Documentation](#design--api-documentation)
* [Using search components](#using-search-components)
* [Search Bar](#search-bar)
* [Search View](#search-view)
Expand Down Expand Up @@ -138,8 +138,7 @@ the scrolling view (usually a `RecyclerView` or `NestedScrollView`) in the
scrolling view. This scrolling behavior makes the `AppBarLayout` transparent and
not elevated so there are no undesirable shadows. It also adjusts the scrolling
child so that the `SearchBar` will overlap the rest of your content and appear
to be floating above it. See the [XML usage](#usage) section below for an
example of how to set up this behavior.
to be floating above it.

Additionally, if your app is going edge-to-edge, consider adding
`app:statusBarForeground="?attr/colorSurface"` to your `AppBarLayout` in order
Expand Down
2 changes: 1 addition & 1 deletion docs/components/SideSheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ See [Bottom Sheet documentation](BottomSheet.md) for documentation about

**Contents**

* [Design & API Documentation](#design-api-documentation)
* [Design & API Documentation](#design--api-documentation)
* [Using side sheets](#using-side-sheets)
* [Standard side sheet](#standard-side-sheet)
* [Modal side sheet](#modal-side-sheet)
Expand Down
2 changes: 1 addition & 1 deletion docs/components/Snackbar.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ button.](assets/snackbar/snackbar_hero.png)

**Contents**

* [Design & API Documentation](#design-api-documentation)
* [Design & API Documentation](#design--api-documentation)
* [Using snackbars](#using-snackbars)
* [Snackbar](#snackbar)
* [Theming snackbars](#theming-snackbars)
Expand Down
2 changes: 1 addition & 1 deletion docs/components/Switch.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ as "Wi-fi" and "Bluetooth"](assets/switch/switch_hero.png)

**Contents**

* [Design & API Documentation](#design-api-documentation)
* [Design & API Documentation](#design--api-documentation)
* [Using switches](#using-switches)
* [Switch](#switch)
* [Theming switches](#theming-switches)
Expand Down
2 changes: 1 addition & 1 deletion docs/components/Tabs.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ screens, data sets, and other interactions.

**Contents**

* [Design & API Documentation](#design-api-documentation)
* [Design & API Documentation](#design--api-documentation)
* [Using tabs](#using-tabs)
* [Fixed tabs](#fixed-tabs)
* [Scrollable tabs](#scrollable-tabs)
Expand Down
2 changes: 1 addition & 1 deletion docs/components/TextField.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ edit text.

**Contents**

* [Design & API Documentation](#design-api-documentation)
* [Design & API Documentation](#design--api-documentation)
* [Using text fields](#using-text-fields)
* [Filled text field](#filled-text-field)
* [Outlined text field](#outlined-text-field)
Expand Down
2 changes: 1 addition & 1 deletion docs/components/TimePicker.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ path: /catalog/time-pickers/

**Contents**

* [Design & API Documentation](#design-api-documentation)
* [Design & API Documentation](#design--api-documentation)
* [Using time pickers](#using-time-pickers)
* [Time pickers](#time-pickers)
* [Theming time pickers](#theming-time-pickers)
Expand Down
2 changes: 1 addition & 1 deletion docs/components/TopAppBar.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ information and actions related to the current screen.

**Contents**

* [Design & API Documentation](#design-api-documentation)
* [Design & API Documentation](#design--api-documentation)
* [Using top app bars](#using-top-app-bars)
* [Regular top app bars](#regular-top-app-bars)
* [Collapsing top app bar](#collapsing-top-app-bars)
Expand Down
2 changes: 1 addition & 1 deletion docs/foundations/PredictiveBack.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ With Android 14 (U / API level 34), the OS adds support for in-app predictive
back, which apps can take advantage of to show the user previous destinations
when swiping back within the app itself.

## Design & API documentation
## Design & API Documentation

- [Material Design guidelines: Predictive Back](https://m3.material.io/foundations/interaction/gestures#22462fb2-fbe8-4e0c-b3e7-9278bd18ea0d)
- [Android design guidelines](https://developer.android.com/design/ui/mobile/guides/patterns/predictive-back)
Expand Down
2 changes: 1 addition & 1 deletion docs/theming/Dark.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Starting with [Android Q][dark-theme-dac-docs], users are now able to switch
their device to a dark theme via a new system setting, which applies to both the
Android system UI and apps running on the device.

## Design & API documentation
## Design & API Documentation

- [Material Design guidelines: Dark Theme][dark-theme-mdc-spec]
- [Android Q Dark Theme Documentation][dark-theme-dac-docs]
Expand Down
2 changes: 1 addition & 1 deletion docs/theming/Shape.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ mechanism with which to easily customize component shapes at the theme level.
Shape theming offers a new dimension with which to customize the look and feel
of your app.

## Design & API documentation
## Design & API Documentation

- [Material Design 3 guidelines: Shape](https://m3.material.io/styles/shape/overview)

Expand Down
2 changes: 1 addition & 1 deletion docs/theming/Typography.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ reflect your brand or style by defining a set of type scales which will be used
throughout your app. You can use type scales to customize the appearance of text
in Material components.

## Design & API documentation
## Design & API Documentation

- [Material Design guidelines: Typography](https://m3.material.io/styles/typography/overview/)

Expand Down

0 comments on commit fea356a

Please sign in to comment.