-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix expanding chapters bug (#1942)
* fix: fix expanding chapters bug * chore: make hidrated version working * chore: added further subchapters to cover the issue * chore: changeset
- Loading branch information
1 parent
d123efa
commit 599a11e
Showing
21 changed files
with
134 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@commercetools-docs/gatsby-theme-docs': patch | ||
'@commercetools-website/docs-smoke-test': patch | ||
--- | ||
|
||
Fix issue with multiple expanding chapters working in "tanem" when expanded |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 11 additions & 5 deletions
16
packages/gatsby-theme-docs/src/layouts/internals/sidebar.utils.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
websites/docs-smoke-test/src/content/empty-pages-2/empty-page-eight.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
title: Empty page | ||
--- |
3 changes: 3 additions & 0 deletions
3
websites/docs-smoke-test/src/content/empty-pages-2/empty-page-eleven.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
title: Empty page | ||
--- |
3 changes: 3 additions & 0 deletions
3
websites/docs-smoke-test/src/content/empty-pages-2/empty-page-five.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
title: Empty page | ||
--- |
3 changes: 3 additions & 0 deletions
3
websites/docs-smoke-test/src/content/empty-pages-2/empty-page-four.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
title: Empty page | ||
--- |
3 changes: 3 additions & 0 deletions
3
websites/docs-smoke-test/src/content/empty-pages-2/empty-page-fourteen.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
title: Empty page | ||
--- |
3 changes: 3 additions & 0 deletions
3
websites/docs-smoke-test/src/content/empty-pages-2/empty-page-nine.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
title: Empty page | ||
--- |
3 changes: 3 additions & 0 deletions
3
websites/docs-smoke-test/src/content/empty-pages-2/empty-page-one.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
title: Empty page | ||
--- |
3 changes: 3 additions & 0 deletions
3
websites/docs-smoke-test/src/content/empty-pages-2/empty-page-seven.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
title: Empty page | ||
--- |
3 changes: 3 additions & 0 deletions
3
websites/docs-smoke-test/src/content/empty-pages-2/empty-page-six.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
title: Empty page | ||
--- |
3 changes: 3 additions & 0 deletions
3
websites/docs-smoke-test/src/content/empty-pages-2/empty-page-ten.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
title: Empty page | ||
--- |
3 changes: 3 additions & 0 deletions
3
websites/docs-smoke-test/src/content/empty-pages-2/empty-page-thirteen.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
title: Empty page | ||
--- |
3 changes: 3 additions & 0 deletions
3
websites/docs-smoke-test/src/content/empty-pages-2/empty-page-three.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
title: Empty page | ||
--- |
3 changes: 3 additions & 0 deletions
3
websites/docs-smoke-test/src/content/empty-pages-2/empty-page-twelve.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
title: Empty page | ||
--- |
3 changes: 3 additions & 0 deletions
3
websites/docs-smoke-test/src/content/empty-pages-2/empty-page-two.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
title: Empty page | ||
--- |
10 changes: 10 additions & 0 deletions
10
websites/docs-smoke-test/src/content/empty-pages-2/overview-1.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
title: Empty pages | ||
showTimeToRead: false | ||
timeToRead: false | ||
--- | ||
|
||
# Contents of this chapter | ||
|
||
- [PageWithLongNameThatOverflowsBecauseItsOneWord](/empty-pages/empty-page-three) | ||
- [BetaPageWithLongNameThatOverflowsBecauseItsOneWord](/empty-pages/empty-page-four) |
10 changes: 10 additions & 0 deletions
10
websites/docs-smoke-test/src/content/empty-pages-2/overview.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
title: Empty pages | ||
showTimeToRead: false | ||
timeToRead: false | ||
--- | ||
|
||
# Contents of this chapter | ||
|
||
- [Page with some very long title too much for our innocent API to handle](/empty-pages/empty-page-one) | ||
- [Beta Page with some very long title too much for our innocent API to handle](/empty-pages/empty-page-two) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters