-
Notifications
You must be signed in to change notification settings - Fork 7
/
mkdocs.yml
148 lines (138 loc) · 5.72 KB
/
mkdocs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# Project information
site_name: 'React UI'
site_description: 'React components for your design system'
# Repository
repo_url: 'https://github.com/react-ui-org/react-ui'
repo_name: 'react-ui'
edit_uri: 'blob/master/src'
docs_dir: 'src'
markdown_extensions:
- admonition
- attr_list
- def_list
- pymdownx.highlight:
use_pygments: false
- pymdownx.inlinehilite
- pymdownx.superfences
- pymdownx.emoji:
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
- attr_list
- md_in_html
# Configuration
theme:
name: material
language: 'en'
favicon: 'favicon.ico'
custom_dir: 'src/docs/_overrides'
font:
text: 'Titillium Web'
palette:
- media: "(prefers-color-scheme: light)"
scheme: default
toggle:
icon: material/weather-night
name: Switch to dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
toggle:
icon: material/weather-sunny
name: Switch to light mode
features:
- navigation.sections
- navigation.footer
# Additional CSS. Mind the order!
extra_css:
- https://unpkg.com/[email protected]/themes/prism-twilight.min.css # Prism JS syntax highlighting
- docs/_assets/stylesheets/extra.css # mkDocs theme tweaks
- docs/_assets/generated/docs-custom-properties.development.css # Load React UI CSS custom properties to make them accessible in the document root (outside shadowDOM) so we can preview colors etc.
# Additional JS. Mind the order!
extra_javascript:
# First load dependencies
- https://unpkg.com/@babel/[email protected]/babel.min.js
- https://unpkg.com/[email protected]/umd/react.development.js
- https://unpkg.com/[email protected]/umd/react-dom.development.js
- https://unpkg.com/@floating-ui/[email protected]/dist/floating-ui.core.umd.min.js
- https://unpkg.com/@floating-ui/[email protected]/dist/floating-ui.dom.umd.min.js
- https://unpkg.com/@floating-ui/[email protected]/dist/floating-ui.react-dom.umd.min.js
- docs/_assets/generated/react-ui.development.js
- docs/_assets/js/ruiIcon.js
- docs/_assets/js/ruiSwatch.js
# Then load and init Docoff
- https://unpkg.com/@react-ui-org/[email protected]/public/generated/bundle.js
# Then load non-Docoff code highlighiting
- https://unpkg.com/[email protected]/components/prism-core.min.js
- https://unpkg.com/[email protected]/plugins/autoloader/prism-autoloader.min.js
# Must be open to external connections since MkDocs run in a docker container
dev_addr: '0.0.0.0:8000'
nav:
- Introduction: 'index.md'
- Basics:
- Getting Started:
- Installation: 'docs/getting-started/installation.md'
- Usage: 'docs/getting-started/usage.md'
- 'Browsers & Devices': 'docs/getting-started/browsers-and-devices.md'
- Foundation:
- 'Design Tokens': 'docs/foundation/design-tokens.md'
- 'Collections': 'docs/foundation/collections.md'
- 'Colors': 'docs/foundation/colors.md'
- 'Typography': 'docs/foundation/typography.md'
- 'Spacing': 'docs/foundation/spacing.md'
- 'Borders': 'docs/foundation/borders.md'
- 'Shadows': 'docs/foundation/shadows.md'
- 'Breakpoints': 'docs/foundation/breakpoints.md'
- 'Accessibility': 'docs/foundation/accessibility.md'
- 'Icons': 'docs/foundation/icons.md'
- Components:
- Actions:
- Button: 'components/Button/README.md'
- TextLink: 'components/TextLink/README.md'
- Inputs:
- CheckBoxField: 'components/CheckboxField/README.md'
- FileInputField: 'components/FileInputField/README.md'
- Radio: 'components/Radio/README.md'
- SelectField: 'components/SelectField/README.md'
- TextArea: 'components/TextArea/README.md'
- TextField: 'components/TextField/README.md'
- Toggle: 'components/Toggle/README.md'
- Layouts:
- ButtonGroup: 'components/ButtonGroup/README.md'
- FormLayout: 'components/FormLayout/README.md'
- Grid: 'components/Grid/README.md'
- InputGroup: 'components/InputGroup/README.md'
- Toolbar: 'components/Toolbar/README.md'
- Miscellaneous:
- Alert: 'components/Alert/README.md'
- Badge: 'components/Badge/README.md'
- Card: 'components/Card/README.md'
- Modal: 'components/Modal/README.md'
- Paper: 'components/Paper/README.md'
- Popover: 'components/Popover/README.md'
- ScrollView: 'components/ScrollView/README.md'
- Table: 'components/Table/README.md'
- Tabs: 'components/Tabs/README.md'
- Text: 'components/Text/README.md'
- Helpers:
- CSS Helpers:
- Animation: 'docs/css-helpers/animation.md'
- Box Alignment: 'docs/css-helpers/box-alignment.md'
- Colors: 'docs/css-helpers/colors.md'
- Display: 'docs/css-helpers/display.md'
- Spacing: 'docs/css-helpers/spacing.md'
- Typography: 'docs/css-helpers/typography.md'
- JS Helpers:
- Classnames: 'docs/js-helpers/classnames.md'
- Transferring Props: 'docs/js-helpers/transferProps.md'
- Guides:
- Customize:
- Theming:
- Overview: 'docs/customize/theming/overview.md'
- Forms: 'docs/customize/theming/forms.md'
- Global Props: 'docs/customize/global-props.md'
- Translations: 'docs/customize/translations.md'
- Contribute:
- General Guidelines: 'docs/contribute/general-guidelines.md'
- API Guidelines: 'docs/contribute/api.md'
- Composition: 'docs/contribute/composition.md'
- CSS Guidelines: 'docs/contribute/css.md'
- Releasing: 'docs/contribute/releasing.md'