Skip to content

Commit 80f5feb

Browse files
committed
fixing docs
1 parent de53f0a commit 80f5feb

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

.nojekyll

Whitespace-only changes.

example/next.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
module.exports = {
2+
assetPrefix: process.env.DOCS ? require('../package.json').homepage : '',
23
exportPathMap() {
34
return {
45
'/': { page: '/' },

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"precommit": "lint-staged",
2424
"dev": "concurrently \"yarn tsc:main --watch\" \"yarn tsc:example --watch\" \"yarn build:rollup -w\" \"next dev example\"",
2525
"predocs": "yarn build",
26-
"docs": "next build example && next export -o ./docs example",
26+
"docs": "next build example && DOCS=true next export -o ./docs example && npx git-update-ghpages stipsan/scroll-into-view-if-needed docs",
2727
"prepublishOnly": "yarn build",
2828
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
2929
"test": "yarn tsc:main --noEmit && yarn tsc:example --noEmit",

0 commit comments

Comments
 (0)