Skip to content

Commit 9f07eb0

Browse files
authored
Merge pull request tailwindlabs#154 from mattstauffer/docs-clean-up
Move errant SVG and extract nav links to a partial
2 parents 012a01e + 4bdb939 commit 9f07eb0

File tree

4 files changed

+113
-132
lines changed

4 files changed

+113
-132
lines changed

docs/config.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,10 @@
1414
return str_contains($page->getPath(), $path);
1515
});
1616
},
17+
'anyChildrenActive' => function ($page, $children) {
18+
return $children->contains(function ($link) use ($page) {
19+
return $page->getPath() == '/docs/'. $link;
20+
});
21+
},
22+
'navigation' => require_once('navigation.php'),
1723
];

docs/navigation.php

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
<?php
2+
3+
return [
4+
'Introduction' => [
5+
'What is Tailwind?' => 'what-is-tailwind',
6+
],
7+
'Getting Started' => [
8+
'Installation' => 'installation',
9+
'Configuration' => 'configuration',
10+
'Colors' => 'colors',
11+
'Responsive Design' => 'responsive-design',
12+
'Adding New Utilities' => 'adding-new-utilities',
13+
'Extracting Components' => 'extracting-components',
14+
'Functions &amp; Directives' => 'functions-and-directives',
15+
],
16+
'Styles' => [
17+
'Backgrounds' => [
18+
'Color' => 'background-color',
19+
'Position' => 'background-position',
20+
'Size' => 'background-size',
21+
],
22+
'Borders' => [
23+
'Width' => 'border-width',
24+
'Color' => 'border-color',
25+
'Style' => 'border-style',
26+
],
27+
'Border Radius' => 'border-radius',
28+
'Container' => 'container',
29+
'Display' => 'display',
30+
'Flexbox' => [
31+
'Display' => 'flexbox-display',
32+
'Direction' => 'flexbox-direction',
33+
'Wrapping' => 'flexbox-wrapping',
34+
'Justify Content' => 'flexbox-justify-content',
35+
'Align Items' => 'flexbox-align-items',
36+
'Align Content' => 'flexbox-align-content',
37+
'Align Self' => 'flexbox-align-self',
38+
'Flex, Grow, &amp; Shrink' => 'flexbox-flex-grow-shrink',
39+
],
40+
'Floats' => 'floats',
41+
'Forms' => 'forms',
42+
'Grid' => 'grid',
43+
'Interactivity' => [
44+
'Cursor' => 'cursor',
45+
'Resize' => 'resize',
46+
'Pointer Events' => 'pointer-events',
47+
'User Select' => 'user-select',
48+
],
49+
'Lists' => 'lists',
50+
'Opacity' => 'opacity',
51+
'Overflow' => 'overflow',
52+
'Positioning' => 'positioning',
53+
'Shadows' => 'shadows',
54+
'Sizing' => [
55+
'Width' => 'width',
56+
'Min-Width' => 'min-width',
57+
'Max-Width' => 'max-width',
58+
'Height' => 'height',
59+
'Min-Height' => 'min-height',
60+
'Max-Height' => 'max-height',
61+
],
62+
'Spacing' => 'spacing',
63+
'SVG' => 'svg',
64+
'Typography' => [
65+
'Fonts' => 'fonts',
66+
'Color' => 'text-color',
67+
'Sizing' => 'text-sizing',
68+
'Weight' => 'font-weight',
69+
'Alignment' => 'text-alignment',
70+
'Line Height' => 'line-height',
71+
'Letter Spacing' => 'letter-spacing',
72+
'Style &amp; Decoration' => 'text-style',
73+
'Whitespace &amp; Wrapping' => 'whitespace-and-wrapping',
74+
],
75+
'Vertical Alignment' => 'vertical-alignment',
76+
'Visibility' => 'visibility',
77+
'Z-Index' => 'z-index',
78+
],
79+
'Examples' => [
80+
'Alerts' => 'examples/alerts',
81+
'Buttons' => 'examples/buttons',
82+
'Cards' => 'examples/cards',
83+
'Forms' => 'examples/forms',
84+
'Navigation' => 'examples/navigation',
85+
],
86+
];

0 commit comments

Comments
 (0)