mkdocs / mkdocs-redirects

Open source plugin for Mkdocs page redirects
MIT License
176 stars 25 forks source link

[Feature request] Use an external file to store redirections mapping #47

Closed Guts closed 1 year ago

Guts commented 1 year ago

Hello!

Sometimes, in large base documentation evolving for a few years, it's quite hard to maintain a healthy redirections mapping and it's not really convenient as it's stored within the mkdocs.yml.

Why not allowing to load redirections map from an external file, for example a CSV with an option (mutually exclusive with redirect_maps) like this:

plugins:
    - redirects:
        redirect_file: "config/redirections.csv"
oprypin commented 1 year ago

I don't think this should be solved within this plugin because I'm sure many other plugins have the exact same inflexibility so it might be way more worth it to support it in MkDocs itself.

Unfortunately this issue didn't come to a satisfactory solution:

-- I am open to revisiting it instead.

I haven't looked at that issue in detail before, but to me a feature similar to this one seems very good to have: https://stackoverflow.com/a/9577670

Guts commented 1 year ago

Thanks for your answer. The configuration inheritance is clearly still a thing. I had already suggested to support multiple inheritance: https://github.com/mkdocs/mkdocs/issues/2624