-
Notifications
You must be signed in to change notification settings - Fork 98
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
Cleaning up the documentation - preferred way of dealing with historical releases #221
Comments
Good question. The community docs (try to) follow the official docs' guidelines (in the "Release-specific documentation" section). Official issue 5308 tracks changes to the current guidelines to move to a release-based documentation (which IMO is the best approach). However it takes a lot of resources - that this project doesn't have - to review/approve old docs. As a side note it seems there's also a push to investigate migrating to readthedocs (in this project's case this would make it easier for people to find resources - questions in the forum show that people aren't all aware of this project). That said, for now we should probably stick to having different sections for each main release as per the official guidelines. If there isn't a section for the current release, we could either create one based on instructions from the older version if the instructions need to be updated/fixed, or if the instructions are identical, simply add a leading comment with "the following instructions are known to work on releases X, Y, Z"). |
Thank you for the information. |
Hey! |
The QubesOS/qubes-issues#5308 push toward release-specific docs has actually been completely taken over by the migration to Read the Docs. I think this is the main thread about it right now: https://groups.google.com/g/qubes-devel/c/ASj7tehn1G0/m/fA33ylhHAgAJ |
Apologies for my reply's delay. @andrewdavidwong : I've been following the thread you mentioned over the past months - that's why I'm wondering what might be the impact on the docs here. I have zero experience with RST, readthedocs, sphinx and whatnot - and to be frank not much time to investigate those atm. - so it'd be nice to agree on what to do before our contributors spend time reformatting doc and then potentially spend time for another round of reformatting. IMO:
Thoughts ? |
I don't have any first-hand experience with it either yet. @maiska is the primary person who's been working on it and would be the one to ask. |
Ah, we're in the same boat then :) Hopefully @maiska will chime in with some info then... |
Hello @taradiddles would love to help! |
There isn't much of a goal yet :) "cleaning up" meant reviewing the docs to remove old, unsupported stuff and reformat the docs - the OP's question was how to deal with releases (eg. one section per release with potentially a lot of duplication) - ie. the same issues that the official docs move to RST/RTD would address. This project's guidelines try to track the official ones - so if the official doc change it would seem to be a good idea to migrate too - or at least investigate it. From what I've read in the related issue and mailing list thread, this would:
So - since we(/I) know nothing about RST/RTD and the ongoing migration of the official docs I was interested to hear your opinion on:
Lastly - I haven't closely tracked the ml thread - any idea when the migration may happen with the official docs ? Thank you in advance for your input ! |
yes, RTD supports different versioning of the documentation, which would solve this problem and still have a clear cut between different versions. it can be easily done
There is also a dedicated guide for SEO optimization for RTD, see here: https://docs.readthedocs.io/en/stable/guides/technical-docs-seo-guide.html so I think this would also solve that problem
That is correct. By difficulties I mean handling cross-referencing links. That's the big hurdle. Otherwise, using pandoc you can easily straigthforward convert from github markdown to rst in a second.
RTD provides everything. Take a look at the repo here https://github.com/maiska/qubes-rst. This is actually more or less what you need to deploy on RTD. The files of interests in this case are .readthedocs.yml and conf.py. Here is a simple straighforward sample tutorial you can check out also: https://docs.readthedocs.io/en/stable/tutorial/index.html
I would say it is easy. There is some more complicated syntax when using doc and ref roles, particularly if you have a emphasized portion of a section's title for example, but it is not something one cannot master, and imho if explained in a simple manner should not be a lot to handle. Bottomline is imho, the writers of the documentation are users of Qubes OS which comes with its own learning curve, so I think that should not be a problem. But yeah, I get the concern
That should be a question for @marmarek I think :)
Sure, no prob. If you want I can help with conversion, once the conversion of the official Qubes OS is done, since I now dream of docutils and rst unfortunately and have an idea how we can tweak the python tool to take into account the pecularities of the community docs repo - in specific take the folder structure as a basis for cross referencing. And of course what could be also fine in the future would be making localization of the community docs also a reality in one way or another :) If I missed something please say so so I can clarify if needed |
Thank you @maiska. I'll have to dig the topic further but I have a much better idea how this might work now. I'll try to do some tests when I have a bit more time, but in hindsight the question that's probably most relevant is "how much more work would RST/RTD be for a contributor compared to the current markdown/github setup". As already mentioned the main concern is that with we should really not raise the technical bar (which is already quite high IMO - that's maybe one reason why people just publish free-form guides on the forum rather than bother forking a repo, sending a PR, etc.). For instance I'm wondering how easy it would be for people to preview their contribution before sending a PR: a quick web search indicates that github doesn't interpret RST, yet .rst files are shown as html - kind of: at first glance attached pictures don't show up and some formatting isn't processed/translated (eg.
Thanks - we'll definitely need a hand if we move to rst/rtd :-)
Indeed |
Hello @taradiddles, yes, I understand what the problem is. Perhaps github actions could be a possible solution? There is already one I found for build but for viewing (so that the contributor does not have to go over to RTD, though this would be the better solution imho) I have not, apart from deploying on gh-pages. I have not tested these though. For viewing: if a contributor writes the documentation locally first (which is the way to go imho for more than a word/ simple sentence change) you can view it using About the forum: a rst/md template would be nice, but as far as I searched such a plugin is not available and one should write it themselves, which yeah... Perhaps a friendly reminder when somebody posts on the forum that one could contribute to the documentation with a link to the official and the community ones could be an easy to go solution at first? I'll get back to you here if I have found something worth exploring to ease up the contribution to the community docs as mentioned in the first paragraph. Yep, would love to help out either way! |
Thank you for your input !
OK - so that's adding another step to the contribution process. That said it's not like rst previewing in github is that bad, and locally both markdown and rst need something to be rendered properly ( So - it's not clear cut. One goal of this project was to mirror the official docs' process/infrastructure, which would mean migrating to rst too; but other prominent goals were to provide a staging ground and lower the bar for potential contributors - meaning we'd probably be better off sticking to what we currently have, optionally re-organizing the index (+ moving it to |
Hm, not sure which would be the best way to go. You might consider asking frequent (or would-be) contributors on the forum and/or mailing list. Maybe make a poll? |
@aronowski - It took quite a bit more time than expected to get back to your original question - sorry about that. The bulk of the reviewing work is verifying that instructions are applicable to the current Qubes OS version. We'd have to do that process anyway with RST/RTD - so in case we migrate to RST/RTD someday there won't be much to do other than splitting community docs into several release-specific docs. If you're still interested to help (no worries if other things have taken over!), given what we've discussed in this whole discussion the best approach would be to have instructions/documentation always sorted (and potentially grouped) by release, eg:
Fast forward in the future, let's say we're now at Qubes OS 5.0. Someone reading the doc above will understand that the instructions haven't been verified to work with the new release. Note - in the example above, Compare that to the two examples below:
or
In both cases it is impossible for someone to understand if the instructions are applicable to 5.0:
|
Content moved to https://forum.qubes-os.org/c/guides/14. |
I'm currently in the process of reading all the docs and wanted to clean up. There are several mentions of historical releases like 4.0 or even 3.2, like here.
The question is: what should I do with them?
The text was updated successfully, but these errors were encountered: