Skip to content

applying redirect maps from a file. #68

Description

@patrikwm

Is it possible to read the redirect_map from a file?

somehting similar to this.

plugins:
  - redirects:
    redirect_map_file: my_redirects.yml

and then the my_redirects.yml file will contain.

redirect_maps:
  "my_old_url.md": "cool_page/my_new_url.md"
  "my_old_url2.md": "cool_page/my_new_url2.md"
  "my_old_url3.md": "cool_page/my_new_url3.md"

This would help when there are a lot of old urls that are removed or should be pointing at something new. Else the mkdocs.yml will be really big.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions