Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CleanRepo] Add ability to replace redirects from other repos #270

Open
gewarren opened this issue Nov 1, 2023 · 0 comments
Open

[CleanRepo] Add ability to replace redirects from other repos #270

gewarren opened this issue Nov 1, 2023 · 0 comments
Assignees

Comments

@gewarren
Copy link
Contributor

gewarren commented Nov 1, 2023

Add functionality that replaces site-relative links with their redirect target (if any).

For example:

  • Find site-relative links in all .md or .yml files, for example "link text".
  • For each different site, prompt the user for the repo path, e.g. "https://github.com/azure-docs".
  • Find all the redirection files in the repo, and see if any source_path or source_path_from_root matches the site-relative link in the repo being "cleaned". If so, replace it with the redirect target.

This will require mapping the source_path to its published URL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant