-
Notifications
You must be signed in to change notification settings - Fork 1.3k
feat: route knative docs base URL from knative.dev/docs to knative.dev #6319
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
Open
rohan-019
wants to merge
5
commits into
knative:main
Choose a base branch
from
rohan-019:blackboxai/route-base-url-to-knative-dev
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.
+21
−27
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
c4d3cea
feat: route knative docs base URL from knative.dev/docs to knative.dev
rohan-019 2c79dca
Fix base URL change
rohan-019 442aae5
Merge branch 'main' into blackboxai/route-base-url-to-knative-dev
rohan-019 1cc1ca0
Merge branch 'knative:main' into blackboxai/route-base-url-to-knative…
rohan-019 e70ff3f
Merge branch 'knative:main' into blackboxai/route-base-url-to-knative…
rohan-019 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 hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
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.
What does this do for the v1.18 docs (for example)?
It feels like we want to host the
/docs/index.html
up to/index.html
, but maybe leave the other content (except the blog) under/docs
. I'm concerned mostly about the nav getting screwed up, but also it seems like the home page (and blog and community info) might actually be a different type of content than the versioned documentation.Sorry to get this feedback to you late; I hadn't really looked at the current implementation until you sent this PR.
I'm willing to try moving forward with this and seeing what goes wrong, with the understanding that we might revert this change as the first fix if there are problems, and then later attempt a more complete fix.
Uh oh!
There was an error while loading. Please reload this page.
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.
@evankanderson Thank you for the thorough review and constructive feedback - I appreciate you taking the time to examine the implementation details.
This change affects how the latest documentation (v1.19) is served:
What happens to v1.18 docs: Nothing changes - they remain at
knative.dev/v1.18-docs/
What changes: Only the latest/current docs move from
knative.dev/docs/
toknative.dev/
(root)Your navigation concern is valid - this creates inconsistent URL patterns:
knative.dev/
)knative.dev/v1.18-docs/
)/docs/
paths (needs fixing)Potential issues:
/docs/
references in blog/config/nav.yml)Mitigation: The 301 redirects handle SEO concerns, but we should:
I agree with proceeding cautiously - the redirect strategy is solid for SEO, but navigation UX needs careful validation.
Immediate next steps:
/docs/
referencesLet me know how you want to approach testing the new URL paths - I'm not sure how moving all the docs to the root will affect things like the nav.
Thanks for being willing to move forward thoughtfully - your "try and see what breaks" approach with proper safeguards is exactly right for this type of infrastructure change.