-
-
Notifications
You must be signed in to change notification settings - Fork 489
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
User Manual refresh using Markdown and MkDocs #7286
Comments
Code sprint notes:
Discussion:
|
Note we will need to wish to update the sample data for screen snaps (some web services have changed and we need an update in order to have working Add to map demo): |
It would be nice to add an extra menu to the GeoNetwork menu bar that points to parts of the documentation. |
There is a link in the footer presently and a build option to include docs in release. I hope we can include a small “online help”’for visitors. If we do the online help doc theme right it can pick up the logo of the running geonetwork and have a similar menu bar appearance. |
Okay the script is doing great for converting files unattended, however references are a pain to update manually. Looks like we have 366 items to update:
Reviewing examples:
So while may end up being links to page, or header, references. The last example seems unnecessarily difficult! The online manual has https://geonetwork-opensource.org/manuals/4.0.x/en/annexes/standards/iso19115-3.2018.html?#iso19115-3-2018-tab-identificationinfo The
So something seems off, perhaps these things linked to the external |
How many anchors do we have:
Well that is intimidating:
The vast majority are in the annexes, most of the other are simple page lookup. |
Processing by hand:
Grep search and replace (I used an editor):
Result anchor=absolute markdown reference
With one leftover:
See attached: anchors.txt |
@jodygarnett some documentation pages are created from the schema plugins So Annexes > Standards > * |
Well this is disheartening - @MichelGabriel updated the version of mkdocs-i18n-static to version 1.0.x and we have encountered a bug: ultrabug/mkdocs-static-i18n#258 I do hope these plugins do not change often, but I was using a <1.0 release of mkdocs-18n-static so change should be expected. I think the nice thing to do for now is to leave the files as text, and include them in one big long change log. Renaming the files would be unpleasant. |
The PR is now code complete, preview available for visual review here https://jodygarnett.github.io/core-geonetwork/ |
Thanks for that information - ticket here: #7342 |
It looks like some of the relative links are broken, they always point to the file in the same directory, which is not always the case and the named anchor seems to end up in the filename somehow. |
Updated the bug description, all links are fixed and the build is clean with no warnings. I am getting private feedback on content - I would prefer of content updates are in a second pull request. |
I enabled the language chooser, but here is some strange interaction with using mike to publish versions. Update: resolved by reading the manual (site_url was required) |
I think this ticket can now be closed? |
Meeting
Demo / discussion:
mike
was cool, but more research needed.Open question how to have 4.4-SNAPSHOT docs? latest redirects to 4.2.5 and is not separate
Decisions:
merge planning:
http://docs.geonetwork-opensource.org
just before mergeFinal Review Update
Review:
mike
plugin (see readme below)How-to included in PR:
IMPORTANT:
Code-complete update
Preview available here https://jodygarnett.github.io/core-geonetwork/
We are interested in review of the content
Want to ensure the xml and javascript code examples are not harmed in the transition for example
The docs are now pretty much 100% convertible using Jody's translate script wrapper on pandoc:
With this script working so well it is now "easier" to fix the sphinx-build content to correct formatting for indenting, accidental block quotes and the like.
For later:
Initial code-sprint proposal
The following work is proposed: https://github.com/geonetwork/core-geonetwork/wiki/Proposal-mkdocs.md
docs/
folder to directly manage user-manual alongside codebase (PRs changing UI required to change docs.)translate
script provided to automate the creation of new translation files using deepl (even if it just provides a starting point that is fine)Keep in mind:
Compare:
Example page:
The text was updated successfully, but these errors were encountered: