-
Notifications
You must be signed in to change notification settings - Fork 502
[system] Keep track of migrated docs and warn on use #35
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
Conversation
6bafa9d to
212bf80
Compare
|
To see this in use, add the id of a page from the old docs to the list of docs in |
|
Example output in the Docusaurus runner: |
sarjona
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Andrew! Thanks a lot for working on this. The patch is working as expected but, as you'll see, the replacement format is not the expected. It should be [Description](URL)
The commit adds a new migratedPages.js module which includes a list of legacy page to new page mappings. When a legacy link in the Wikimedia internal link format is encountered, it is checked against this list of migrated pages, and an updated page URL is generated. This value is notified to the Docusaurus CLI console, and the updated link is used in the generated documentation.
212bf80 to
5aa2f0d
Compare
|
Thanks Sara, I keep making that stupid mistake. Fixed now. |
sarjona
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Andrew! And here we go, one more feature in our road to migrate dev docs! <3
Release notes for 4.5.0
The commit adds a new migratedPages.js module which includes a list of
legacy page to new page mappings.
When a legacy link in the Wikimedia internal link format is encountered,
it is checked against this list of migrated pages, and an updated page
URL is generated.
This value is notified to the Docusaurus CLI console, and the updated
link is used in the generated documentation.