doc: correct version redirects where possible #1411
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation and Context
Resolves #1278
Description
.md
to.html
inall-pages.yml
generation.console.log
that affectedall-pages.yml
content.page.path
and format it with a prefixed/
and converted.md
to.html
.all-pages.yml
.Testing
Built Docs:
bundle install
npm install
npm run serve
Navigated to an old doc:
http://localhost:3000/docs/en/8.x/guide/cli/index.html
Observations:
Outdated Version Warning:
The link for "This version of the documentation is outdated! Click here for the latest released version." points to
http://localhost:3000/docs/en/latest/guide/cli/index.html
.Note: Clicking on this link will not work because the
latest
redirection is handled by.htaccess
, andserve
is not running an Apache Httpd server.12.x Version Link:
The link for
12.x
in the version dropdown points tohttp://localhost:3000/docs/en/12.x/guide/cli/index.html
. Clicking on this link will perform a redirect to the correct page.2.8.0 Version Link:
The link for
2.8.0
is grayed out since this version does not have a mapping for the current page. The link points tohttp://localhost:3000/docs/en/2.8.0/
. Clicking on this link will redirect to the root page of version 2.8.0.Checklist
(platform)
if this change only applies to one platform (e.g.(android)
)