ccamara
09/15/2022, 10:21 AMdendron publish export
2. copying the output from .next/out to docs/)
3. configuring gh-pages to read the content from `docs/`folder in main branch.
Regretfully, the site is not working (doesn't show CSS, no JS, links are broken) after having set up my siteUrl: to be the same url that is generated by gh pages: https://pages.github.<domain>/<group>/<repo_name>/.
I suspect that the problem might be that siteRootDir pointing to docs may be causing it, as there's no docs within docs folder.jyeung
09/15/2022, 10:35 AMdocs/?ccamara
09/15/2022, 10:36 AMrlh1994
09/15/2022, 10:37 AMccamara
09/15/2022, 10:45 AM/_next/static/chunks/<whatever>rlh1994
09/15/2022, 10:46 AMccamara
09/15/2022, 10:50 AMsiteUrl: https://pages.github.<domain>/<group>/<repo_name>/
I get into my dendron site from this url: https://pages.github.<domain>/<group>/<repo_name>/ and I get to see the content without js and css.
But here's one issue: If I click on the link of any child page, it will point to https://pages.github.<domain>/note/<hash> . As you see, the url is missing the <group>/<repo_name>/ from it. If I manually add it in the url, the note is displayed, but without CSSccamara
09/15/2022, 10:50 AMccamara
09/15/2022, 10:50 AM`
siteUrl: https://pages.github.<domain>/
siteRootDir: <group>/<repo>/ccamara
09/15/2022, 10:52 AMccamara
09/15/2022, 10:52 AMrlh1994
09/15/2022, 11:03 AMccamara
09/15/2022, 11:03 AMsiteRootDir: <group>/<repo>/
2. `siteUrl: https://pages.github.//`& siteRootDir: /
3. siteUrl: https://pages.github.<domain>/<group>/<repo> with no siteRootDir (thus, defaulting to docs/)
All of them yield the same result:
1. Missing CSS
2. Links to notes are missing the `/`part.rlh1994
09/15/2022, 11:04 AMccamara
09/15/2022, 11:04 AMccamara
09/15/2022, 11:07 AMassetsPrefix refers to any image or file used within the notes?ccamara
09/15/2022, 11:07 AMccamara
09/15/2022, 11:17 AMrlh1994
09/15/2022, 11:19 AMccamara
09/15/2022, 11:20 AMccamara
09/15/2022, 11:20 AMrlh1994
09/15/2022, 12:30 PMsiteUrl: Https://pages.github.<domain>
siteRootDir: docs
assetsPrefix: /<group>/<repo>ccamara
09/15/2022, 12:42 PMrlh1994
09/15/2022, 12:50 PMccamara
09/15/2022, 1:09 PMkevins8
09/15/2022, 2:12 PMccamara
09/15/2022, 2:16 PMyml
publishing:
siteUrl: https://pages.github.<domain>
siteRootDir: docs
assetsPrefix: /<group>/<repo>
the css paths are:
html
<link rel="preload" href="/<group>/<repo>/_next/static/css/0710c2518b3fd79e.css" as="style">
The notes' links work just fineccamara
09/15/2022, 2:17 PMhtml
<script src="/<group>/<repo>/_next/static/chunks/framework-bb5c596eafb42b22.js" defer=""></script>kevins8
09/15/2022, 2:37 PMccamara
09/15/2022, 2:41 PM/docs/_next/static/css/0710c2518b3fd79e.css , so it does exist.
However... my gh pages is set to be working within the docs folder, within main branch. This might be causing the issue, althought not 100% sure.
1. Changing gh-pages to be set to root folder within main branch renders my readme file, instead of dendron's site.
2. Editing as siteRootDir: "" doesn't seem to be working either.kevins8
09/15/2022, 3:11 PMkevins8
09/15/2022, 3:11 PMccamara
09/15/2022, 4:09 PMkevins8
09/15/2022, 4:10 PM/root to docs?ccamara
09/15/2022, 4:10 PMccamara
09/15/2022, 4:10 PMccamara
09/15/2022, 4:12 PMkevins8
09/15/2022, 4:25 PMccamara
09/15/2022, 5:27 PMccamara
09/15/2022, 5:28 PMccamara
09/15/2022, 5:30 PMccamara
09/15/2022, 5:30 PMccamara
09/15/2022, 5:31 PMccamara
09/15/2022, 6:51 PMdendron.yml settings here: https://github.com/ccamara/dendron-demo/blob/main/dendron.yml#L84
Live version: https://ccamara.github.io/dendron-demo/kevins8
09/15/2022, 8:14 PM.nojekyll file in the root of the docs folder
github docs: https://github.blog/2009-12-29-bypassing-jekyll-on-github-pages/
example: https://github.com/kevinslin/dendron-democcamara
09/15/2022, 10:07 PM