-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add collection redirect page and consolidate htaccess configuration files #261
Open
oraNod
wants to merge
19
commits into
ansible:main
Choose a base branch
from
oraNod:redirect-collections
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 18 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
572c113
update collections page
oraNod 8508d5f
consolidate redirects
oraNod cf1b24d
remove old htaccess configuration files
oraNod dffb6f6
improve wording
oraNod 8cabe05
update old redirect urls
oraNod 3c087c5
missing line at end of file
oraNod 651f3c4
Update .htaccess
oraNod 1223404
Update .htaccess
oraNod fa7ac0c
Update .htaccess
oraNod 39db58c
Update .htaccess
oraNod f4fce27
Update .htaccess
oraNod a980609
Update .htaccess
oraNod 7ff4b90
rm domain name
oraNod f64b482
add comments and tidy up
oraNod abbc998
add 2.7 pages to rules
oraNod 033a41d
disable content negotiation
oraNod 58ac95a
add 2.8 to consolidated rules
oraNod a10f424
improve collections page and add galaxy search
oraNod 467753a
restore latest plugins and module redirects
oraNod File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
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.
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.
One big downside of this redirect is that it breaks a lot of existing links on the web (in blog posts, stack overflow answers, mailing list answers, ...) from Ansible 2.9 and before that right now still work.
I have no idea how frequently these URLs are still used though. Finding the module/plugin in question isn't too hard with the new collections.html page, though, so I guess it will be OK...
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 for taking a look @felixfontein I can also see this is going to hose the links to these pages: https://docs.ansible.com/ansible/latest/plugins/
I overlooked those plugin pages, but glad I caught them. I'll raise this at the next DaWGs meeting but maybe we should remove this redirect rule and avoid globbing any latest or devel urls to the
collections.html
page.Either that or we add a negative lookahead for the plugin pages which do exist, such as:
An alternative is to take all the latest source pages and redirect them to collections using the https://pypi.org/project/sphinx-reredirects/ extension.
It doesn't remove the maintenance overhead and maybe adds to the build time. We could probably add some regex to reduce the number of redirects that we'd need and point to specific collections, for example:
I guess we can see but we need to rethink the devel and latest rules here.
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.
Yeah, that works like a champ. I tried an experimental commit: oraNod/ansible-documentation@ec0790a
And deployed it to the test site on pages. All the latest redirects are there and it doesn't seem to add to the build time.