[LUDOC-394] Use proper names for sections in the manual Created: 14/Jan/18 Updated: 21/May/21 Resolved: 21/May/21 |
|
| Status: | Resolved |
| Project: | Lustre Documentation |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | Lustre 2.14.0 Manual |
| Type: | Improvement | Priority: | Minor |
| Reporter: | Andreas Dilger | Assignee: | Lustre Manual Triage |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | easy | ||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||
| Description |
|
Currently, a large number of sections are named with auto-generated section references like dbdoclet.50438199_14978 that have no meaning. Unfortunately, these section references appear in the HTML manual as the relative URL, like http://doc.lustre.org/lustre_manual.xhtml#dbdoclet.50438199_14978 It would be better to give these section references a proper name, like dbdoclet.deactivating_mdt_ost (as is done in patch https://review.whamcloud.com/30864 " Changing these references is relatively straight forward:
This could be done in a number of smaller patches, so that the whole thing doesn't break if any other patch lands to the manual. While the manual isn't a hotbed of activity, it will probably take too long to do this manually than can be accomplished in a single sitting, and it cannot be done automatically, so better to break it up into smaller chunks. |
| Comments |
| Comment by Joey White-Swift [ 30/Apr/20 ] |
|
All, I have written a Shell Script to automate the correction by creating a sed file that looks something like this:
Unfortunately, some of the docs have the </title> tag (which is what I referenced in the script) in weird places so that is why on the ZFS they have all _____. I would guess that about 75% of the files were able to be processed properly by the script. If if all of the XML files adhere to this standard (with the </title> adjacent to the correct title and the xml:id coming first in the document):
If this sort of "revamp" is not something that you are interested in doing then I will sanitize the sed commands and offer a large number of corrections.
~Joey |
| Comment by Andreas Dilger [ 03/May/20 ] |
|
Joey, I think it is perfectly reasonable to submit a large patch that changes the "easy-to-fix" problems in the manual, then reviewing repetitive changes is not so much effort. Even if this doesn't solve all problems, it still gets us further ahead. |
| Comment by Andreas Dilger [ 02/Feb/21 ] |
|
Joey, would you be able to submit a patch with the updates from your script? I've been updating some of the section references manually, but would welcome some assistance in this area. |
| Comment by Joey White-Swift [ 02/Feb/21 ] |
|
Andreas, Covid sort of scrambled everything and I totally forgot about this. I can go back to see if I still have the script. One though I did have in going through this (and I think there might me another ticket as well) is about using a "meta-document" that could be compiled into different versions of docs such as HTML, PDF and even man pages. I am old school so my preference would be something like (gt)roff (I know, I know) but I have used sphinx which would support static html pages, pdf and man pages comfortably with internal linking and could be added to the build script to get built with versions of LUSTRE. (The only advantage for some form of roff is that is will be on the system anyways if internal links aren't paramount). If you appreciate an approach of moving to a meta-document, then maybe spending time to switch to that instead of fixing the existing code base could prove more "profitable". I might also be able to script up something to aid in the bulk of the transition. I will look for the script in the mean time, but please let me know. I would rather do a bit more work up front to convert and make things easy for those that come later. ~Joey |
| Comment by Andreas Dilger [ 03/Feb/21 ] |
I'm not sure what you mean? The current Docbook XML format is already being built in HTML, PDF, and ePUB formats: I'm not sure whether nroff would be the right format for the Operations Manual. Definitely we do use nroff for the actual man pages in lustre/doc, and we can always use more contributors there if you have experience in that area (e.g. LU-4315) |
| Comment by Joey White-Swift [ 03/Feb/21 ] |
|
Andreas, I have found the script and made a couple of changes to it to account for the lack of unique title links. I have created a branch and hope to get all of the seds run across the files today. Once I have done that, how would you like me to proceed to get the changes back?
I will look into the roff issue in the future, once this is squared. ~Joey |
| Comment by Andreas Dilger [ 04/Feb/21 ] |
|
Joey, getting a series of relatively smaller patches that update the references to/from one file at a time would be easiest for review, and shouldn't cause (m)any conflicts between files. |
| Comment by Joey White-Swift [ 10/Feb/21 ] |
|
Andreas, I have a set of patches, per file, that are ready for you. I also have a list of all of the substitutions that were conducted on each file for your reference. How would you like me to provide them? ~Joey |
| Comment by Andreas Dilger [ 11/Feb/21 ] |
|
Hi Joey, please push patches to Gerrit (see https://wiki.lustre.org/Using_Gerrit fir details). All of the patches can use this LUDOC ticket. Ideally, if the patches are non-conflicting they would each be pushed from a separate branch, so that if there is a reason one of them can't land it doesn't block the others. However, given the relatively simple manner of the patches I don't expect a huge problem. I'd recommend to start with 1-2 patches first so we can address any issues with commit messages, etc. first, and then submit them in a few batches to avoid pounding the builders all at once. |
| Comment by Gerrit Updater [ 18/Mar/21 ] |
|
Arshad Hussain (arshad.hussain@aeoncomputing.com) uploaded a new patch: https://review.whamcloud.com/42070 |
| Comment by Arshad Hussain [ 18/Mar/21 ] |
|
Hi Joey, I saw the yours/Andreas comments in this ticket after I pushed the patch. Sorry about this...Your patchs are ready please feel free to push it. I would not be disturbing this ticket since you are already working on this. |
| Comment by Andreas Dilger [ 18/Mar/21 ] |
|
As yet, Joey doesn't have an account in Gerrit, so there is no way to add them as a reviewer on Arshad's patch. |
| Comment by Gerrit Updater [ 18/Mar/21 ] |
|
Andreas Dilger (adilger@whamcloud.com) merged in patch https://review.whamcloud.com/42070/ |
| Comment by Joey White-Swift [ 18/Mar/21 ] |
|
I do not have a provider of OpenID, so I can put a zip of the patches as attachment so you can move forward.
~Joey
|
| Comment by Arshad Hussain [ 19/Mar/21 ] |
|
>I do not have a provider of OpenID No problem. Create an account in UbuntuOne/launchpad. Then log into gerrit with your Launchpad ID. |
| Comment by Joey White-Swift [ 19/Mar/21 ] |
|
I have logged into Gerrit, added an ssh key, and sent an email to info@whamcloud.com. With any luck they will be up soon. ~Joey |
| Comment by Gerrit Updater [ 17/Apr/21 ] |
|
Arshad Hussain (arshad.hussain@aeoncomputing.com) uploaded a new patch: https://review.whamcloud.com/43353 |
| Comment by Gerrit Updater [ 17/Apr/21 ] |
|
Arshad Hussain (arshad.hussain@aeoncomputing.com) uploaded a new patch: https://review.whamcloud.com/43354 |
| Comment by Gerrit Updater [ 17/Apr/21 ] |
|
Arshad Hussain (arshad.hussain@aeoncomputing.com) uploaded a new patch: https://review.whamcloud.com/43355 |
| Comment by Gerrit Updater [ 17/Apr/21 ] |
|
Arshad Hussain (arshad.hussain@aeoncomputing.com) uploaded a new patch: https://review.whamcloud.com/43356 |
| Comment by Gerrit Updater [ 17/Apr/21 ] |
|
Arshad Hussain (arshad.hussain@aeoncomputing.com) uploaded a new patch: https://review.whamcloud.com/43357 |
| Comment by Gerrit Updater [ 17/Apr/21 ] |
|
Arshad Hussain (arshad.hussain@aeoncomputing.com) uploaded a new patch: https://review.whamcloud.com/43358 |
| Comment by Gerrit Updater [ 17/Apr/21 ] |
|
Andreas Dilger (adilger@whamcloud.com) merged in patch https://review.whamcloud.com/43358/ |
| Comment by Gerrit Updater [ 17/Apr/21 ] |
|
Andreas Dilger (adilger@whamcloud.com) merged in patch https://review.whamcloud.com/43357/ |
| Comment by Gerrit Updater [ 17/Apr/21 ] |
|
Andreas Dilger (adilger@whamcloud.com) merged in patch https://review.whamcloud.com/43356/ |
| Comment by Gerrit Updater [ 17/Apr/21 ] |
|
Andreas Dilger (adilger@whamcloud.com) merged in patch https://review.whamcloud.com/43355/ |
| Comment by Gerrit Updater [ 17/Apr/21 ] |
|
Andreas Dilger (adilger@whamcloud.com) merged in patch https://review.whamcloud.com/43354/ |
| Comment by Gerrit Updater [ 17/Apr/21 ] |
|
Andreas Dilger (adilger@whamcloud.com) merged in patch https://review.whamcloud.com/43353/ |
| Comment by Gerrit Updater [ 18/Apr/21 ] |
|
Arshad Hussain (arshad.hussain@aeoncomputing.com) uploaded a new patch: https://review.whamcloud.com/43359 |
| Comment by Gerrit Updater [ 18/Apr/21 ] |
|
Arshad Hussain (arshad.hussain@aeoncomputing.com) uploaded a new patch: https://review.whamcloud.com/43360 |
| Comment by Gerrit Updater [ 18/Apr/21 ] |
|
Arshad Hussain (arshad.hussain@aeoncomputing.com) uploaded a new patch: https://review.whamcloud.com/43361 |
| Comment by Gerrit Updater [ 21/Apr/21 ] |
|
Andreas Dilger (adilger@whamcloud.com) merged in patch https://review.whamcloud.com/43360/ |
| Comment by Gerrit Updater [ 21/Apr/21 ] |
|
Andreas Dilger (adilger@whamcloud.com) merged in patch https://review.whamcloud.com/43361/ |
| Comment by Gerrit Updater [ 21/Apr/21 ] |
|
Andreas Dilger (adilger@whamcloud.com) merged in patch https://review.whamcloud.com/43359/ |
| Comment by Gerrit Updater [ 24/Apr/21 ] |
|
Arshad Hussain (arshad.hussain@aeoncomputing.com) uploaded a new patch: https://review.whamcloud.com/43432 |
| Comment by Gerrit Updater [ 24/Apr/21 ] |
|
Arshad Hussain (arshad.hussain@aeoncomputing.com) uploaded a new patch: https://review.whamcloud.com/43433 |
| Comment by Gerrit Updater [ 24/Apr/21 ] |
|
Arshad Hussain (arshad.hussain@aeoncomputing.com) uploaded a new patch: https://review.whamcloud.com/43434 |
| Comment by Gerrit Updater [ 24/Apr/21 ] |
|
Arshad Hussain (arshad.hussain@aeoncomputing.com) uploaded a new patch: https://review.whamcloud.com/43435 |
| Comment by Gerrit Updater [ 24/Apr/21 ] |
|
Arshad Hussain (arshad.hussain@aeoncomputing.com) uploaded a new patch: https://review.whamcloud.com/43436 |
| Comment by Gerrit Updater [ 24/Apr/21 ] |
|
Arshad Hussain (arshad.hussain@aeoncomputing.com) uploaded a new patch: https://review.whamcloud.com/43437 |
| Comment by Gerrit Updater [ 24/Apr/21 ] |
|
Arshad Hussain (arshad.hussain@aeoncomputing.com) uploaded a new patch: https://review.whamcloud.com/43438 |
| Comment by Gerrit Updater [ 24/Apr/21 ] |
|
Andreas Dilger (adilger@whamcloud.com) merged in patch https://review.whamcloud.com/43438/ |
| Comment by Gerrit Updater [ 24/Apr/21 ] |
|
Andreas Dilger (adilger@whamcloud.com) merged in patch https://review.whamcloud.com/43432/ |
| Comment by Gerrit Updater [ 24/Apr/21 ] |
|
Andreas Dilger (adilger@whamcloud.com) merged in patch https://review.whamcloud.com/43433/ |
| Comment by Gerrit Updater [ 24/Apr/21 ] |
|
Andreas Dilger (adilger@whamcloud.com) merged in patch https://review.whamcloud.com/43434/ |
| Comment by Gerrit Updater [ 24/Apr/21 ] |
|
Andreas Dilger (adilger@whamcloud.com) merged in patch https://review.whamcloud.com/43437/ |
| Comment by Gerrit Updater [ 24/Apr/21 ] |
|
Andreas Dilger (adilger@whamcloud.com) merged in patch https://review.whamcloud.com/43436/ |
| Comment by Gerrit Updater [ 24/Apr/21 ] |
|
Andreas Dilger (adilger@whamcloud.com) merged in patch https://review.whamcloud.com/43435/ |
| Comment by Gerrit Updater [ 25/Apr/21 ] |
|
Arshad Hussain (arshad.hussain@aeoncomputing.com) uploaded a new patch: https://review.whamcloud.com/43442 |
| Comment by Gerrit Updater [ 25/Apr/21 ] |
|
Arshad Hussain (arshad.hussain@aeoncomputing.com) uploaded a new patch: https://review.whamcloud.com/43443 |
| Comment by Gerrit Updater [ 25/Apr/21 ] |
|
Arshad Hussain (arshad.hussain@aeoncomputing.com) uploaded a new patch: https://review.whamcloud.com/43444 |
| Comment by Gerrit Updater [ 25/Apr/21 ] |
|
Andreas Dilger (adilger@whamcloud.com) merged in patch https://review.whamcloud.com/43442/ |
| Comment by Gerrit Updater [ 25/Apr/21 ] |
|
Andreas Dilger (adilger@whamcloud.com) merged in patch https://review.whamcloud.com/43443/ |
| Comment by Gerrit Updater [ 25/Apr/21 ] |
|
Andreas Dilger (adilger@whamcloud.com) merged in patch https://review.whamcloud.com/43444/ |
| Comment by Gerrit Updater [ 21/May/21 ] |
|
Andreas Dilger (adilger@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/43759 |
| Comment by Gerrit Updater [ 21/May/21 ] |
|
Andreas Dilger (adilger@whamcloud.com) merged in patch https://review.whamcloud.com/43759/ |
| Comment by Andreas Dilger [ 21/May/21 ] |
|
This has been fixed for all cross references in the manual. |