-
Notifications
You must be signed in to change notification settings - Fork 39
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
Remove /docs/ from /topics/ URLs #90
Remove /docs/ from /topics/ URLs #90
Conversation
We've decided earlier that we want short URLs on the form https://valkey.io/topics/acl The URLs (before this patch) contain /docs/topics/ and a trailing slash, like this: https://valkey.io/docs/topics/acl/ This is to make the URLs shorter and more close to what's been decided. In the docs repo, the links between the command pages and the topics pages are on the form "../topics/acl.md" and "../commands/client-kill.md" so by putting "topics" at the same level as "commands" on the website too makes editing the docs more intuitive. I can't get rid of the trailing slash right now, so with this patch, the URLs look like https://valkey.io/topics/acl/ Redirects are added for the /docs/topics/ URLs. Signed-off-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
Technical Evaluation This PR doesn't seem to work for me. How was it tested?
Idea itself I'm not sold that this is a good idea (in general). I have three concerns:
Perhaps a middle way would be to have a redirect for |
I've tested it locally, run the init-topics script and tested both using zola serve and zola build. I may have forgotten to git add some file. You may have old generated files present. I'll look into it and come back on this.
From the start, this was done against the decision by TSC. We decided very early on that we want /topics/pagename. You ignored this. We talked about the lack of 301 redirects and concluded that it's good to get this right from the beginning. Still you ignored this and launched the pages with the wrong URLs.
This is just not true. First, the command pages are not under docs. They're at /commands/name/. Second, this was not decided by TSC. TSC on the other hand has decided that the URLs shall be /topics/pagename. Third, the docs are the most important part of the website and deserve short URLs. In my perspective, the docs are not yet really up. You get an unordered and incomplete list of pages with a disclaimer that the page may be deleted. I'm willing to fight for the URLs and the docs. I'll maje sure we take a decision in the core team if necessary. |
I had missed to git add a file |
#67 didn't mention in the description that it changed the URL structure. I didn't expect that to change behind the scenes just because we're replacing the rendering engine, so I didn't detect this in the diff. I'd say you were hiding this deliberately. |
I thought we were going to keep just |
Signed-off-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
Okay. Yesterday @madolson and @zuiderkwast did a sync over Zoom on this. Looks like there was a very early on miscommunication about the desired paths (as @madolson pointed out). Despite code reviews, the Additionally, the other paths in valkey-io/valkey-docs aren't really as critical and (probably) won't take the form that they are today anyway (especially the... interesting... current structure of Moving on, let's transition the URLs to the forever home ( Two things I would like:
This error is due to the redirect files overlapping with the old content files. It might be worth adding a path check to |
Sure, Madelyn promised to help with this. Or else, I'll do it. Anyway, we won't merge this until it's done.
Good point! Would it be fine if the init-topics.sh script would fix this automatically (deletes the old stub files) or do you prefer that it errors out? |
@zuiderkwast Sounds good. Maybe do a check something like this at the top of # check for old style /docs/topics
if [ -d "content/docs/topics" ]; then
echo "Documentation topic source files have moved. Remove /content/docs/topics before proceeding."
exit 1
fi |
Additionally, silence the error from ln when trying to overwrite the symlink 'build-topics' with an identical symlink to the same target. Signed-off-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
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 went through and looked at every link. Everything seems to perform as well as the live site. I say we go ahead.
(I did see some unrelated link problems, but I'll make an issue for those elsewhere)
Awesome! Thanks! |
We've decided earlier that we want short URLs on the form
The URLs (before this patch) contain /docs/topics/ and a trailing slash, like this:
This change is to make the URLs shorter and more close to what's been decided.
Additionally, in the docs repo, the links between the command pages and the topics pages are on the form "../topics/acl.md" and "../commands/client-kill.md" and this is also how the files are stored in the docs repo, so by putting "topics" at the same level as "commands" on the website too makes editing the docs more intuitive.
I can't get rid of the trailing slash right now, so with this patch, the URLs look like
Redirects are added for the /docs/topics/ URLs.