I uncommented the `cname` line in `dendron-action....
# questions
p
I uncommented the
cname
line in
dendron-action.yml
and set it to my custom domain name. I also set the
siteUrl
and
assetsPrefix
according to the docs in
dendron.yml
.
s
Ah, I'm wondering if we need to update the docs. I think if you use a custom
cname
, then your
siteUrl
can just be whatever that cname is (ex.
'https://notes.opensrc.dev'
) without an
assetsPrefix
.
Example of someone using a custom cname with their setup on GitHub Pages using our GitHub Actions template: https://github.com/aglucky/knowledge
p
I started out with a local repository, instead of creating a repository on GitHub and then cloning it locally. That confused me due to naming differences I had between the local folder name versus the GitHub repository.
My other failure was that I was working on the
pages
branch, when I should not have been.
Something is still wrong. The JavaScript assets aren't being loaded. I wonder if it's the asset Prefix issue you just told me about. Let me give it a try.
Okay, so ....
assetPrefix
is NOT needed. And
siteUrl
must be set to your custom domain name, not your
*.github.io
name
Thanks guys!
s
Good to know. I'll update our docs to reflect this!
t
👍🏽 A more detailed explanation on how to do that would be great, please.
2 Views