-
Notifications
You must be signed in to change notification settings - Fork 85
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
Fix links #2614
Fix links #2614
Conversation
"This document has been superseded."
Browser add-ons links are dead. Not really safe to recommend tools we don't monitor.
Section renamed in #2422 with content not changed.
It often changes without any consistency https://web.archive.org/web/*/https://www.php.net/manual/en/install.fpm.configuration.php
formatting_date_and_time.md: section was renamed in #2506
@@ -936,7 +936,7 @@ extra: | |||
latest_tag_4_5: '4.5.7' | |||
latest_tag_4_6: '4.6.16' | |||
|
|||
symfony_doc: 'https://symfony.com/doc/5.4' | |||
symfony_doc: 'https://symfony.com/doc/5.x' | |||
user_doc: 'https://doc.ibexa.co/projects/userguide/en/master' |
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.
Side note: since master
is hidden, maybe we should make this change:
user_doc: 'https://doc.ibexa.co/projects/userguide/en/master' | |
user_doc: 'https://doc.ibexa.co/projects/userguide/en/latest' |
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.
Definitely, nice catch!
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.
Or maybe it should be set per branch?
user_doc: 'https://doc.ibexa.co/projects/userguide/en/4.6' for 4.6
user_doc: 'https://doc.ibexa.co/projects/userguide/en/3.3' for 3.3
This way the links are compatible between versions
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.
We could... but then we'd have to change all links when bumping version and remember about changing them when cherrypicking changes to older branches
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.
We wouldn't have to do this - we could just use the variable, as we currently do.
The value of the variable would change between branches, but the syntax wouldn't.
This example:
[I'm a link]([[= user_doc =]]/personalization/personalization/)
would link to:
- https://doc.ibexa.co/projects/userguide/en/3.3/personalization/personalization/ on 3.3 branch of the dev doc
- https://doc.ibexa.co/projects/userguide/en/4.6/personalization/personalization/ on 4.6 branch of the dev doc
So, no changing links when creating the 5.0 branch (and no changes when cherry-picking), we would only make one single change in mkdocs.yaml when creating the 5.0 branch - and the links would become "version-aware"
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.
I'm suggesting we do the same thing we already do for the Symfony doc:
- https://github.com/ibexa/documentation-developer/blob/2.5/mkdocs.yml#L411
- https://github.com/ibexa/documentation-developer/blob/4.6/mkdocs.yml#L938
which is not causing any issues currently
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.
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.
3813337
to
f625465
Compare
Co-authored-by: Marek Nocoń <[email protected]>
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.
Thank you!
# Conflicts: # docs/content_management/images/fastly_io.md
(cherry picked from commit 826c6f7)
Checklist