forked from backstage/mkdocs-monorepo-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
edit_uri: fix edit URL for nested site_name
fixes backstage#127 and adds regression test for nested site_name in included project
- Loading branch information
1 parent
b1965a2
commit ee1c26c
Showing
8 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
__tests__/integration/fixtures/ok-include-path-edit-uri-nested/api/docs/index.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 @@ | ||
# API Documentation | ||
|
||
Some sub documentation |
1 change: 1 addition & 0 deletions
1
...__/integration/fixtures/ok-include-path-edit-uri-nested/api/docs/other/other.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 @@ | ||
# Other Documentation |
11 changes: 11 additions & 0 deletions
11
__tests__/integration/fixtures/ok-include-path-edit-uri-nested/api/mkdocs.yml
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,11 @@ | ||
site_name: "test/api" | ||
site_description: "This is an api." | ||
repo_url: https://github.com/backstage/mkdocs-monorepo-plugin | ||
edit_uri: edit/master/__tests__/integration/fixtures/ok-include-path-edit-uri-nested/api/docs/ | ||
|
||
plugins: | ||
- monorepo | ||
|
||
nav: | ||
- Home: index.md | ||
- Other: other/other.md |
3 changes: 3 additions & 0 deletions
3
__tests__/integration/fixtures/ok-include-path-edit-uri-nested/docs/index.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 @@ | ||
# Top Level Project Documentation | ||
|
||
Some higher level info about the project |
1 change: 1 addition & 0 deletions
1
__tests__/integration/fixtures/ok-include-path-edit-uri-nested/docs/other.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 @@ | ||
# Other Documentation |
12 changes: 12 additions & 0 deletions
12
__tests__/integration/fixtures/ok-include-path-edit-uri-nested/mkdocs.yml
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,12 @@ | ||
site_name: "Example" | ||
site_description: "Description Here" | ||
repo_url: https://github.com/backstage/mkdocs-monorepo-plugin | ||
edit_uri: edit/master/__tests__/integration/fixtures/ok-include-path-edit-uri-nested/docs/ | ||
|
||
plugins: | ||
- monorepo | ||
|
||
nav: | ||
- Home: "index.md" | ||
- Other: "other.md" | ||
- API: "!include api/mkdocs.yml" |
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