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

`mike deploy --push version` also updates latest #219

Closed shanduur closed 1 month ago

shanduur commented 1 month ago

Summary

when running Mike on dev branch (in my case main) resulting website is linked to "latest", which should point only to latest release.

Configuration and Logs

Steps to Reproduce

Expected Behavior

Only main is updated.

Additional Context

jimporter commented 1 month ago

Your CI logs indicate that nothing changed on your gh-pages branch, which means that the commit generated by mike was most likely generated elsewhere.

jimporter commented 1 month ago

Actually, another possibility would be that the "nothing changed" warning is coming from mike set-default here: https://github.com/anza-labs/lke-operator/blob/c06442a973f4ed866b9921d934643df84a7e8f37/hack/publish.py#L107-L109

Are you sure that is_initial() is returning the correct value here?

shanduur commented 1 month ago

Ah, yes! Sorry for that confusion!