python translate script for converting site from sphinx-build to mkdocs-material #6092
Replies: 5 comments 7 replies
-
|
Here is an example: |
Beta Was this translation helpful? Give feedback.
-
|
Wanted to report back excellent progress: The script was used to translate geonetwork docs with the result here:
Starting on the second major project now: |
Beta Was this translation helpful? Give feedback.
-
|
Also a second contributor @krishnaglodha starting to help out, teaching me more python as we go.
|
Beta Was this translation helpful? Give feedback.
-
|
Documentation now available: https://jodygarnett.github.io/translate/ (based on migration of sphinx-build example) |
Beta Was this translation helpful? Give feedback.
-
|
Now available https://pypi.org/project/mkdocs-translate/ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
To lower barrier of entry for documentation writing I have looked at converting documentation for an open source project from sphinx-build to mkdocs. And pandoc takes you about 90% of the way there.
I have now have a script for the other 10%: https://github.com/jodygarnett/translate
docandrefdirectivesguilabel,menuselection,file,commandto simple markdownkdbdirective to appropriate mkdocs representation (++control-s++)note,warningand friends\|becomes|(without destroying code-blocks)literalincludeto use sample code in the docsbonus:
I am new to python so I am getting over some imposter syndrome to share here :)
Beta Was this translation helpful? Give feedback.
All reactions