-
Notifications
You must be signed in to change notification settings - Fork 200
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 docs directory structure to reflect diátaxis #520
base: main
Are you sure you want to change the base?
The head ref may contain hidden characters: "Fix-docs-directory-structure-to-reflect-Di\u00E1taxis"
Fix docs directory structure to reflect diátaxis #520
Conversation
Meson and docs-validation updates to reflect new docs dir structure.
@davidekete, thanks for submitting this! To fix the spellcheck and one cross-doc link, I submitted a PR against your branch: davidekete#3 |
Fix paths to reference docs for link and spellcheck.
Thank you. I just merged the PR. |
Two notes:
|
I think the most important one would be the |
…tps://github.com/davidekete/netplan into Fix-docs-directory-structure-to-reflect-Diátaxis
@rkratky, I have renamed them as |
@slyon, I believe this is good to be merged. Could you please have a look? |
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.
Sorry for the late review and thank you very much for your contribution to Netplan!
In general this looks fine, but it also breaks lots of references around the internet. I wonder if the benefit is great enough to justify that? I see that have this new structure would improve the maintainability going forward... @rkratky what's your stance on this? Is there any recommendation from the technical authors?
I'd be fine with merging it once we fix the broken internal references (see inline comments of certian "howto" files) and the outside-references to netplan-yaml
, using anchor redirects. This would be the bare minimum, I guess.
doc/conf.py
Outdated
@@ -121,7 +121,7 @@ | |||
|
|||
redirects = { | |||
'README.md': '/', | |||
'netplan': '/netplan-yaml', | |||
'netplan': '/reference/netplan-yaml', |
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.
todo: I'm still missing a redirect for the old netplan-yaml
here.
In the end, we need to be able to redirect something like https://netplan.io/reference#routing to https://netplan.readthedocs.io/en/latest/reference/netplan-yaml/#routing
I was unable to make the sphinx-reredirects
redirect any anchor (i.e. the URI fragment after the hashtag #routing
), but this is important for the netplan-yaml
page, as there are lots of deep links aroud the internet pointing to specific configuration and we would break all of them if we don't support redirecting to the proper anchor.
@rkratky Do you have any idea how anchor redirects could be solved?
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.
When you say you're missing a redirect for the old netplan-yaml
, what do you mean @slyon?
Yes, that's my main concern, too.
I believe the benefits outweigh the negatives (I suggested this change). |
@rkratky ACK, fair enough. Would you be able to assist with the critical redirects for the |
Yes, I hope. Just acknowledging now because I'm not sure if I'll get to it this week, i.e. before the Sprints. |
Hi @rkratky, @slyon, I could work on this myself to speed up the process. I just need a little more context to what needs to be done and i'll get righ on it. |
@davidekete Thanks, that's appreciated! See my inline comments above, there are some easy TODOs in there for you, e.g. fixing the include path for the "reuse" documents. After that we need to find a way to allow Sphinx/ReadTheDocs to redirect URLs with an anchor, like this: https://netplan.io/reference#routing to https://netplan.readthedocs.io/en/latest/reference/netplan-yaml/#routing (preserving the "#routing" fragment). I don't know how this works and wasn't able to find a way when quickly looking into that. Furthermore, there seems to be a merge conflict in |
…-docs-directory-structure-to-reflect-Diátaxis
Hi @slyon, I fixed most of the Todos. I tried to find a way to allow Sphinx/ReadTheDocs to redirect URLs with an anchor, but I couldn't; this is new territory for me. Could you explain the background of the problem? and If you figure out a way to solve it, could you explain that to me too? |
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.
Hi @slyon, I fixed most of the Todos. I tried to find a way to allow Sphinx/ReadTheDocs to redirect URLs with an anchor, but I couldn't; this is new territory for me. Could you explain the background of the problem? and If you figure out a way to solve it, could you explain that to me too?
Thanks for solving the merge conflicts and the ../reuse/...
imports! I left two more inline-comments, about an (apparently?) unrelated change and an additional redirect.
Regarding the anchor redirect, that you asked about:
We need to find a way to redirect URLs with an anchor, like this: https://netplan.io/reference#routing or https://netplan.readthedocs.io/en/latest/netplan-yaml/#routing to the new URL at https://netplan.readthedocs.io/en/latest/reference/netplan-yaml/#routing – The important part being the #routing
fragment/section here.
There are lots of links out on AskUbuntu, Launchpad and other places, that are deep links into the reference document (netplan-yaml
) and we need to make sure those are still working after this PR is merged.
I don't know how this works either and wasn't able to find a way when quickly looking into that. I hope for @rkratky experience here.
Just dropping in to mention I'm not ignoring this PR/discussion -- I just couldn't find the time for investigating these two weeks. I hope to get back to normal next week. |
Description
Addresses canonical/open-documentation-academy#125
Checklist
make check
successfully.make check-coverage
).