Commit 7e57034
committed
utils: perform portable path sanitisation of URLs
Some file systems have restrictions on character sets which are valid
file name characters. Add a filter for the Windows file system
character set restrictions. We replace them with `_` to match the
behaviour in the DocC bundle generation after swiftlang/swift-docc#668.
Conditionally enable the new portable paths based upon a setting in
`theme-settings.json` to provide a means for compatibility.1 parent a3c3a48 commit 7e57034
1 file changed
+10
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
59 | | - | |
60 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
61 | 69 | | |
62 | 70 | | |
63 | 71 | | |
| |||
0 commit comments