Skip to content

Commit 7585b41

Browse files
committed
Fix '/' problem
1 parent 0987bca commit 7585b41

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
},
2424
"scripts": {
2525
"unit-test": "",
26-
"build": "webdoc --tutorials ./tutorials --site-root example-documentation --site-domain https://webdoc-labs.github.io/",
26+
"build": "webdoc --tutorials ./tutorials --site-root example-documentation --site-domain https://webdoc-labs.github.io",
2727
"build-next": "cd .. && webdoc && cd example",
2828
"build-pixi-api": "cd ../../pixi-api && webdoc --site-root docs && cd ../webdoc/example",
2929
"build-pixi-api-prod": "cd ../../pixi-api && webdoc --site-root pixi-api && cd ../webdoc/example",

packages/webdoc-template-library/src/pipeline-elements/Sitemap.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ export class Sitemap implements TemplatePipelineElement<SitemapData> {
2323
this.dir = dir;
2424
this.domain = domain;
2525
this.root = root;
26+
27+
if (this.domain.charAt(this.domain.length - 1) !== "/") {
28+
this.domain += "/";
29+
}
2630
}
2731

2832
run(input: string, pipelineData: SitemapData = {}) {

0 commit comments

Comments
 (0)