Skip to content

Commit e2ffbbf

Browse files
authored
[schemes/Typography] Fix issue within the docs (material-components#7543)
The typography theming docs previously had a link to typography-theming but that file doesn't exist. This removes the extension section since the only extension file (typography-theming) doesn't exist. Additionally some formatting that results in the headers not being rendered correctly in some instances.
1 parent 01c00a8 commit e2ffbbf

File tree

3 files changed

+12
-25
lines changed

3 files changed

+12
-25
lines changed

components/schemes/Typography/README.md

+5-13
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ path: /catalog/theming/typography/
88
api_doc_root: true
99
-->
1010

11-
<!-- This file was auto-generated using scripts/generate_readme schemes/Typography -->
11+
<!-- This file was auto-generated using ./scripts/generate_readme schemes/Typography -->
1212

1313
# Typography Scheme
1414

@@ -37,7 +37,6 @@ font or button font.
3737
- [Importing](#importing)
3838
- [Usage](#usage)
3939
- [Dynamic Type](#dynamic-type)
40-
- [Extensions](#extensions)
4140

4241
- - -
4342

@@ -107,18 +106,11 @@ import MaterialComponents.MaterialTypographyScheme
107106

108107
### Dynamic Type
109108

110-
#### Overview
111-
Users configure text styles on fonts, such as caption and overline, included in a typography scheme. Then, these scalable fonts can be used for [Dynamic Type](../../Typography) for components. Some default versions of MDCTypographyScheme include scalable fonts. The inline documentation indicates whether a default version of MDCTypographyScheme consists of scalable fonts or not.
112-
113-
#### useCurrentContentSizeCategoryWhenApplied
114-
`useCurrentContentSizeCategoryWhenApplied` is a property on MDCTypographyScheme. This property only has an effect if the fonts stored on the typography scheme are scalable. It indicates whether the scalable font on the scheme should be adjusted with respect to the current content size category when it is applied on a component.
109+
#### Overview
115110

111+
Users configure text styles on fonts, such as caption and overline, included in a typography scheme. Then, these scalable fonts can be used for [Dynamic Type](../../Typography) for components. Some default versions of MDCTypographyScheme include scalable fonts. The inline documentation indicates whether a default version of MDCTypographyScheme consists of scalable fonts or not.
116112

117-
## Extensions
113+
#### useCurrentContentSizeCategoryWhenApplied
118114

119-
<!-- Template: Extensions should be called out separately from Usage docs.
115+
`useCurrentContentSizeCategoryWhenApplied` is a property on MDCTypographyScheme. This property only has an effect if the fonts stored on the typography scheme are scalable. It indicates whether the scalable font on the scheme should be adjusted with respect to the current content size category when it is applied on a component.
120116

121-
<!-- Extracted from docs/typography-theming.md -->
122-
123-
124-
-->

components/schemes/Typography/docs/README.md

-7
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,3 @@ import MaterialComponents.MaterialTypographyScheme
7979
## Usage
8080

8181
- [Dynamic Type](dynamic-type.md)
82-
83-
## Extensions
84-
85-
<!-- Template: Extensions should be called out separately from Usage docs.
86-
87-
- [Typography Theming](typography-theming.md)
88-
-->
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
### Dynamic Type
22

3-
#### Overview
4-
Users configure text styles on fonts, such as caption and overline, included in a typography scheme. Then, these scalable fonts can be used for [Dynamic Type](../../../Typography) for components. Some default versions of MDCTypographyScheme include scalable fonts. The inline documentation indicates whether a default version of MDCTypographyScheme consists of scalable fonts or not.
5-
6-
#### useCurrentContentSizeCategoryWhenApplied
7-
`useCurrentContentSizeCategoryWhenApplied` is a property on MDCTypographyScheme. This property only has an effect if the fonts stored on the typography scheme are scalable. It indicates whether the scalable font on the scheme should be adjusted with respect to the current content size category when it is applied on a component.
3+
#### Overview
4+
5+
Users configure text styles on fonts, such as caption and overline, included in a typography scheme. Then, these scalable fonts can be used for [Dynamic Type](../../../Typography) for components. Some default versions of MDCTypographyScheme include scalable fonts. The inline documentation indicates whether a default version of MDCTypographyScheme consists of scalable fonts or not.
6+
7+
#### useCurrentContentSizeCategoryWhenApplied
8+
9+
`useCurrentContentSizeCategoryWhenApplied` is a property on MDCTypographyScheme. This property only has an effect if the fonts stored on the typography scheme are scalable. It indicates whether the scalable font on the scheme should be adjusted with respect to the current content size category when it is applied on a component.

0 commit comments

Comments
 (0)