Skip to content

The latest folder with redirects deleted by mike 2.0.0 #188

@Vegebutcher

Description

@Vegebutcher

Summary

After running a pipeline which builds a site using Material for MkDocs and mike, all redirects are gone (the general URL for docs doesn't work, e.g. https://my.docs.com). The latest folder is deleted by mike so the only way to open docs is to specify their version in the URL, e.g. https://my.docs.com/2.0. mike adds the latest file which contains the latest version number but it does not seem to be used anywhere.

Configuration and Logs

The git repository is private (GitLab), password-protected docs are deployed to Netlify from the pages branch.

  • MkDocs 1.5.3 and mike 2.0.0
  • CI scripts which call mike (first deploys docs without changing the latest alias):
  script:
    - mike deploy --update-aliases -b $PAGES_BRANCH -p $VERSION
  script:
    - mike deploy --update-aliases -p -b $PAGES_BRANCH $VERSION latest
    - mike set-default -b $PAGES_BRANCH -p latest

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions