Skip to content

Commit 6b47f20

Browse files
authored
fix luxon path in api-docs script (#1214)
1 parent bf7127d commit 6b47f20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"build-global": "babel-node tasks/buildGlobal.js",
1515
"jest": "jest",
1616
"test": "jest --coverage",
17-
"api-docs": "mkdir -p build && documentation build src/luxon.js -f html -o build/api-docs && sed -i.bak 's/<\\/body>/<script src=\"\\/global\\/luxon.js\"><\\/script><script>console.log(\"You can try Luxon right here using the `luxon` global, like `luxon.DateTime.now()`\");<\\/script><\\/body>/g' build/api-docs/index.html && rm build/api-docs/index.html.bak",
17+
"api-docs": "mkdir -p build && documentation build src/luxon.js -f html -o build/api-docs && sed -i.bak 's/<\\/body>/<script src=\"\\..\\/global\\/luxon.js\"><\\/script><script>console.log(\"You can try Luxon right here using the `luxon` global, like `luxon.DateTime.now()`\");<\\/script><\\/body>/g' build/api-docs/index.html && rm build/api-docs/index.html.bak",
1818
"copy-site": "mkdir -p build && rsync -a docs/ build/docs && rsync -a site/ build",
1919
"site": "npm run api-docs && npm run copy-site",
2020
"format": "prettier --write 'src/**/*.js' 'test/**/*.js' 'benchmarks/*.js'",

0 commit comments

Comments
 (0)