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

Recommendations on removing versions from a GHA published site #212

Closed swcurran closed 4 months ago

swcurran commented 4 months ago

I'm looking for recommendations on how to remove versions from a Mkdocs site published with GHA. I have two scenarios where I need things deleted -- a one time process because of a mistake in initial deploying the site, and the other -- an ongoing need to remove "release candidate" builds.

GitHub repo: https://github.com/hyperledger/aries-cloudagent-python Deployed pages: https://hyperledger.github.io/aries-cloudagent-python/ GHA: https://github.com/hyperledger/aries-cloudagent-python/blob/main/.github/workflows/publish-docs.yml

I specifically want to remove the version "docs-v0.12.0rc1" as it was created while I was trying to figure out the best flow for our situation.

We publish "Release Candidates" such as 0.12.0rc1, 0.12.0rc2. As we finalize the release (e.g., when 0.12.0 is released), I'd like to remove the release candidate docs from the published site.

Is there a recommend way to do that? Ideas I've had:

Suggestions would be welcome!

Thanks!