MkDocs site not getting deployed correctly to github pages

Viewed 157

I am using Deploy MkDocs action to deploy my site to github pages. After pushing my changes to my master branch the action successfully runs.

However, when I visit my project page link then my site seems to be broken. Any pointers would be of great help.

My repo structure is the following-->

enter image description here

The document contents are inside the "docs" directory.

When I tried to visit the site using my pages link, I can see something like this(I have checked my site locally and it renders properly on my local machine) -->

enter image description here

enter image description here

1 Answers

Add an index.md to the src folder e.g. When build this will produce needed index.html page. Also try to build with: mkdocs build --clean.

Related