-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add optional
slug
field to chapter sections to allow for slug overr…
…iding (#2617) * Add optional `slug` field to chapter sections to allow for slug overriding. Useful for including special chars in slug. * Add tests for optional slug field of chapter sections * Update docs to include optional slug field of chapter sections * Improve documentation for slug field of chapter sections
- Loading branch information
1 parent
49beb9e
commit 0fadb4a
Showing
12 changed files
with
109 additions
and
2 deletions.
There are no files selected for viewing
File renamed without changes.
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
5 changes: 5 additions & 0 deletions
5
...tions/en/multiple-sections-duplicate-slug/multiple-sections-duplicate-slug-1.md
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,5 @@ | ||
# This is the first section | ||
|
||
## This is a second level heading | ||
|
||
This is the content for the first section. |
7 changes: 7 additions & 0 deletions
7
...tions/en/multiple-sections-duplicate-slug/multiple-sections-duplicate-slug-2.md
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,7 @@ | ||
# This is the second section | ||
|
||
## This is a second level heading | ||
|
||
## This is another second level heading | ||
|
||
This is the content for the second section. |
3 changes: 3 additions & 0 deletions
3
.../chapter-sections/en/single-section-invalid-slug/single-section-invalid-slug.md
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 @@ | ||
# This is the section heading | ||
|
||
This is the content for the section. |
3 changes: 3 additions & 0 deletions
3
...s/loaders/assets/chapter-sections/en/single-section-slug/single-section-slug.md
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 @@ | ||
# This is the section heading | ||
|
||
This is the content for the section. |
7 changes: 7 additions & 0 deletions
7
...sections/structure/multiple-sections-duplicate-slug/multiple-sections-duplicate-slug.yaml
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,7 @@ | ||
multiple-sections-duplicate-slug-1: | ||
section-number: 1 | ||
slug: new-slug | ||
|
||
multiple-sections-duplicate-slug-2: | ||
section-number: 2 | ||
slug: new-slug |
3 changes: 3 additions & 0 deletions
3
...s/chapter-sections/structure/single-section-invalid-slug/single-section-invalid-slug.yaml
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 @@ | ||
single-section-invalid-slug: | ||
section-number: 1 | ||
slug: single-section-invalid-slug |
3 changes: 3 additions & 0 deletions
3
...rs/loaders/assets/chapter-sections/structure/single-section-slug/single-section-slug.yaml
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 @@ | ||
single-section-slug: | ||
section-number: 1 | ||
slug: new-slug |
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