-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure URL fragments to named anchors also validate (#363)
Ensure URL fragments to named anchors also validate
- Loading branch information
Showing
9 changed files
with
145 additions
and
88 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
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
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 |
---|---|---|
@@ -1,2 +1,10 @@ | ||
lazy val root = (project in file(".")) | ||
.enablePlugins(ParadoxPlugin) | ||
|
||
lazy val additionalInternalMappings = settingKey[List[(File, String)]]("Additional mappings to add to paradox mappings") | ||
lazy val additionalMappings = settingKey[List[(File, String)]]("Additional mappings to add to paradox mappings") | ||
|
||
additionalInternalMappings := Nil | ||
additionalMappings := Nil | ||
(Compile / paradox / mappings) ++= additionalInternalMappings.value | ||
(Compile / paradoxValidateInternalLinks / mappings) ++= additionalMappings.value |
6 changes: 5 additions & 1 deletion
6
plugin/src/sbt-test/paradox/validation/src/main/paradox/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 |
---|---|---|
@@ -1,8 +1,12 @@ | ||
[docs site path link](test.html#frag) | ||
[docs site path link name frag](test.html#namefrag) | ||
|
||
[outside docs path link](../outside.html#frag) | ||
|
||
https://www.lightbend.com/thispagedoesnotexist | ||
This URL should 404 (or otherwise fail) | ||
https://github.com/lightbend/thisrepodoesnotexist | ||
This URL should 301 (or otherwise fail) | ||
https://lightbend.com | ||
|
||
Including this in build means we depend on github.com being up. Probably ok. | ||
https://github.com/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
<html> | ||
<body> | ||
<a id="frag"></a> | ||
<a name="namefrag"></a> | ||
</body> | ||
</html> |
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
Oops, something went wrong.