Skip to content

Commit 7e049f6

Browse files
authored
Merge pull request tailwindlabs#131 from tailwindcss/add-upgrade-guide
Add upgrade guide
2 parents b51b62d + df6f364 commit 7e049f6

File tree

5 files changed

+1238
-23
lines changed

5 files changed

+1238
-23
lines changed

navigation.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<?php
22

33
return [
4-
'Introduction' => [
5-
'What is Tailwind?' => 'what-is-tailwind',
4+
'Upgrading' => [
5+
'Upgrading from v0.x to v1.0' => 'upgrading-to-v1',
66
],
77
'Getting Started' => [
8+
'What is Tailwind?' => 'what-is-tailwind',
89
'Installation' => 'installation',
910
'Configuration' => 'configuration',
1011
'Colors' => 'colors',

source/_assets/js/components/TableOfContents.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ export default {
3939
mounted() {
4040
anchors.options = { placement: 'left', class: 'text-gray-500' }
4141
anchors.add('#content h2, #content h3')
42-
this.links = anchors.elements.map((el) => {
42+
this.links = anchors.elements.filter(el => {
43+
return !el.classList.contains('no-toc')
44+
}).map(el => {
4345
return {
4446
isChild: el.tagName === 'H3',
4547
text: getHeadingText(el),

0 commit comments

Comments
 (0)