jobindjohn / obsidian-publish-mkdocs

A Template to Publish Obsidian/Foam Notes on Github Pages (uses MkDocs)
Creative Commons Zero v1.0 Universal
563 stars 38 forks source link

cname keeps getting wiped out #33

Open boozedog opened 1 year ago

boozedog commented 1 year ago

Each time I publish my site, I have to re-configure my custom domain in GitHub Pages.

Am I missing something?

Lix1993 commented 1 year ago

https://www.mkdocs.org/user-guide/deploying-your-docs/

So that the file does not get removed the next time you deploy, you need to copy the file to your docs_dir. With the file properly included in your docs_dir, MkDocs will include the file in your built site and push it to your "pages" branch each time you run the gh-deploy command.