Deploying on Github pages - assets not showing up #7612
-
|
Hello, I'm having some trouble with setting up my page with Github pages. In my project, I have all my files in In the GitHub pages settings, I have tried setting the root dir to either and I have tried setting
In all these cases, the website appears with out the assets - I am just seeing blank markdown files. (link) What exactly should I set as site_url? Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
Your site is being built with Jekyll, not Material for MkDocs. I am not terribly familiar with GitHub Pages but one thing I wonder if whether your ci.yml file is in the correct path. AFAIK, it should be in a |
Beta Was this translation helpful? Give feedback.
-
|
Hello @tomtalp,
So your screenshot is incorrect: Your But again, you're using Note You might not want to use an gh-pages branch on your repository to store the site. There are other ways like using a special GitHub Action to upload the |
Beta Was this translation helpful? Give feedback.



Hello @tomtalp,
your CI file uses
mkdocs gh-deployto deploy the docs. The default behaviour is to use thegh-pagesbranch on your repository to store the built site.So your screenshot is incorrect:
Your
README_docsbranch contains the source files for your MkDocs documentation, while the built site frommkdocs buildwould go to thesitedirectory as per the .gitignore and no custom setsite_dirin yourmkdocs.ymlfile:But aga…