Skip to content

DOC: Redirect moved pages #24705

Closed
Closed
@datapythonista

Description

@datapythonista

Following up the discussion in #24451 (comment) and addressing the concerns of merging the PRs of #24499.

The problem is that we've moved many documentation pages (all the API pages, release.rst...) we'd like to move many more (almost every page). And we've got two options if we've been discussion so far are:

After thinking more on it, I think we can build a simpler redirect system than what we have, and keep redirects while reducing the complexity of the build.

What I'd do is create a file (e.g. doc/source/redirects.csv) containing the urls of the the old and new url (a line could look like io,user_guide/io or generated/pandas.DataFrame.to_parquet,api/reference/DataFrame/pandas.DataFrame.to_parquet)

Then, in doc/source/conf.py we open and iterate the file, and create a simple html in the old location with a link to the new. May be later we can use a nice template and a javascript that automatically redirects, but I'd keep it simple to start with.

If a page is splitted, we can have more than two columns in the csv (e.g. io,user_guide/io_plain,user_guide/io_binary), and show the two links in the redirect page.

I'd also move the current API redirect system to this, and we'd simplify conf.py.

@jorisvandenbossche @TomAugspurger does this sound good?

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocsNeeds DiscussionRequires discussion from core team before further action

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions