Version-adaptive documentation: Difference between revisions
Jump to navigation
Jump to search
(revised screenshots for end of Phase 1) |
(revised screenshots for end of Phase 1) |
||
Line 21: | Line 21: | ||
[[File:Gr_version_select.png|799px]] | [[File:Gr_version_select.png|799px]] | ||
---- | ---- | ||
<p> | <p>Version 3.9 selected. Note that the section for 3.8 is not shown (hidden).</p> | ||
[[File:Phase1_3-9.png|799px]] | [[File:Phase1_3-9.png|799px]] | ||
---- | |||
<h4>Conclusions</h4> | <h4>Conclusions</h4> | ||
# I have found that this methodology for hiding sections of a document is relatively easy. | # I have found that this methodology for hiding sections of a document is relatively easy. | ||
Line 31: | Line 31: | ||
## Installation instructions | ## Installation instructions | ||
# Specific examples are: | # Specific examples are: | ||
## [[ | ## [[Message_Debug]] | ||
## [[Packet_Communications]] | ## [[Packet_Communications]] | ||
## [[LinuxInstall]] | ## [[LinuxInstall]] |
Revision as of 02:42, 6 December 2022
Concept
I am looking into the possibility of making certain pages of our Wiki be adaptive to the user's GNU Radio version (or desired version) so that sections which don't apply would be hidden. This would make cleaner page presentations and reduce the clutter of unrelated information.
Proof of Concept
Phase 1
Plan
- Emulate MediaWiki with a local nodeJS program to allow non-destructive testing.
- Create a test page with sections which can be hidden, based on a 'data-vad' attribute.
- Create a form to enter a Version selection.
- Before displaying the page, execute a script to show or hide sections based on the Version selection.
Test results
Page before any selections are made (i.e. all information is shown).
Version selection before clicking 'Submit'.
Version 3.9 selected. Note that the section for 3.8 is not shown (hidden).
Conclusions
- I have found that this methodology for hiding sections of a document is relatively easy.
- There are several groups of pages which might benefit from this method:
- Block docs
- Tutorials
- Installation instructions
- Specific examples are:
Phase 2
Plan
- Use a 'test' MediaWiki.
- Put a version selection menu below the "Tools" group in the left-hand Navigation section.
- Create a test page with HTML `<sections>` which can be hidden, based on a 'data-vad' attribute.
- Embed a JavaScript link at the end of the page HTML to perform the requested selection.