jimporter / mike

Manage multiple versions of your MkDocs-powered documentation via Git
BSD 3-Clause "New" or "Revised" License
511 stars 45 forks source link

warning: gh-pages is unrelated to origin/gh-pages - versions doesn't show up in github pages #153

Closed Hagar-Usama closed 1 year ago

Hagar-Usama commented 1 year ago

Hello,

I'm working with versioning using Mike in Mkdocs material. Although, it works when I run mike serve, it doesn't show up on GitHub page.

When I prompt mike list I get the following message followed by the local versions. When I prompt mike list --rebase, the list is clean. What's wrong with what I am doing right now?

warning: gh-pages is unrelated to origin/gh-pages
  Pass --ignore to ignore this or --rebase to rebase onto remote

Here is the repo: https://github.com/Hagar-Usama/mike_version Appreciate any help!

jimporter commented 1 year ago

It sounds like you didn't pull your gh-pages branch from your origin before adding commits to it.

However, I don't have enough information to confirm this from your report. Please fill out the bug report template with all the details.