Skip to content

Commit 5353fad

Browse files
authored
POC for new docs generation (#138)
* refactor to a structure compatible with github pages * add url to package.json * remove jekyll template as it didn't work as expected (my bad) * keep dist folder * Revert "keep dist folder" This reverts commit 95226a0. * typo * prepare to add docs folder * update tsc commands to work correctly * output docs * update ci test script
1 parent 8a1a5bb commit 5353fad

File tree

13 files changed

+16
-12
lines changed

13 files changed

+16
-12
lines changed

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
node_modules
22
dist
3-
docs/out
3+
docs
44
package.json

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"files.exclude": {
3-
"docs/**/*.js": true
3+
"example/**/*.js": true
44
}
55
}

docs/out/_next/7baeacdf5df8bb942b86f97b87f7f542/app.js renamed to docs/_next/67be4f1676ac78a2b3ace38359709557/app.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/out/index.html renamed to docs/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<!DOCTYPE html><html><head><link rel="preload" href="/_next/6537651d-35c3-46a9-b60c-291346ee0199/page/index.js" as="script"/><link rel="preload" href="/_next/6537651d-35c3-46a9-b60c-291346ee0199/page/_error/index.js" as="script"/><link rel="preload" href="/_next/7baeacdf5df8bb942b86f97b87f7f542/app.js" as="script"/><meta charSet="utf-8" class="next-head"/></head><body><div><div id="__next"><div data-reactroot=""><div>Hello world!</div></div></div><div id="__next-error"></div></div><div><script>
2-
__NEXT_DATA__ = {"props":{},"pathname":"/","query":{},"buildId":"6537651d-35c3-46a9-b60c-291346ee0199","buildStats":{"app.js":{"hash":"7baeacdf5df8bb942b86f97b87f7f542"}},"assetPrefix":"","nextExport":true,"err":null,"chunks":[]}
1+
<!DOCTYPE html><html><head><link rel="preload" href="/_next/0e56e789-0f9a-4750-b908-7fd366986d0d/page/index.js" as="script"/><link rel="preload" href="/_next/0e56e789-0f9a-4750-b908-7fd366986d0d/page/_error/index.js" as="script"/><link rel="preload" href="/_next/67be4f1676ac78a2b3ace38359709557/app.js" as="script"/><meta charSet="utf-8" class="next-head"/></head><body><div><div id="__next"><div data-reactroot=""><div>Hello world!</div></div></div><div id="__next-error"></div></div><div><script>
2+
__NEXT_DATA__ = {"props":{},"pathname":"/","query":{},"buildId":"0e56e789-0f9a-4750-b908-7fd366986d0d","buildStats":{"app.js":{"hash":"67be4f1676ac78a2b3ace38359709557"}},"assetPrefix":"","nextExport":true,"err":null,"chunks":[]}
33
module={}
44
__NEXT_LOADED_PAGES__ = []
55
__NEXT_LOADED_CHUNKS__ = []
@@ -11,4 +11,4 @@
1111
__NEXT_REGISTER_CHUNK = function (chunkName, fn) {
1212
__NEXT_LOADED_CHUNKS__.push({ chunkName: chunkName, fn: fn })
1313
}
14-
</script><script async="" id="__NEXT_PAGE__/" type="text/javascript" src="/_next/6537651d-35c3-46a9-b60c-291346ee0199/page/index.js"></script><script async="" id="__NEXT_PAGE__/_error" type="text/javascript" src="/_next/6537651d-35c3-46a9-b60c-291346ee0199/page/_error/index.js"></script><div></div><script type="text/javascript" src="/_next/7baeacdf5df8bb942b86f97b87f7f542/app.js" async=""></script></div></body></html>
14+
</script><script async="" id="__NEXT_PAGE__/" type="text/javascript" src="/_next/0e56e789-0f9a-4750-b908-7fd366986d0d/page/index.js"></script><script async="" id="__NEXT_PAGE__/_error" type="text/javascript" src="/_next/0e56e789-0f9a-4750-b908-7fd366986d0d/page/_error/index.js"></script><div></div><script type="text/javascript" src="/_next/67be4f1676ac78a2b3ace38359709557/app.js" async=""></script></div></body></html>

docs/index.md

Lines changed: 0 additions & 1 deletion
This file was deleted.
File renamed without changes.

docs/next.config.ts renamed to example/next.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
2-
exportPathMaps() {
2+
exportPathMap() {
33
return {
44
'/': { page: '/' },
55
}
File renamed without changes.

0 commit comments

Comments
 (0)