-
-
Notifications
You must be signed in to change notification settings - Fork 314
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
[Bug] docs: remaining issues with markdown manual using mkdocs #4748
Labels
Milestone
Comments
This seems to help: --- a/lib/gis/parser_rest_md.c
+++ b/lib/gis/parser_rest_md.c
@@ -537,7 +537,7 @@ void print_escaped_for_md_keywords(FILE *f, const char *str)
else {
/* keyword index */
char *str_link;
- str_link = G_str_replace(str_s, " ", "%20");
+ str_link = G_str_replace(str_s, " ", "-");
G_str_to_lower(str_link);
fprintf(f, "[%s](keywords.md#%s)", str_s, str_link);
G_free(str_link); Does it make sense, @landam? ==> see attempt in #4807 |
neteler
added
help wanted
Extra attention is needed
Python
Related code is in Python
labels
Dec 1, 2024
neteler
added a commit
that referenced
this issue
Dec 6, 2024
This PR addresses issues identified in #4748: Manual pages: - fixes of broken HTML tags, href entries and broken URLs not converted properly - fix title of `lib/btree2/btree2lib.dox` Markdown support in build system: - `.html` -> `.md` file extension fixes - replace white space in keyword anchors with dash (expected by mkdocs) - avoid white space in "topics" file names - avoid ":" in title (looks bad in side menu) - reorder mkdocs navigation menu and add missing entries (`man/mkdocs/mkdocs.yml`)
Help wanted: while most formatting issues are now solved, I need support for the missing files to be installed (see description above): I just don't get why they aren't installed into the "mkdocs" subdirectories? |
neteler
added a commit
to neteler/grass
that referenced
this issue
Dec 14, 2024
This PR contains various updates and textual fixes (incl. adding missing intro sentences) in preparation of the planned markdown conversion (see also OSGeo#4748). For an easier review, the changes have been submitted in separate commits: - [ ] **db**: - [ ] **display**: - [ ] **doc**: - [ ] **general**: - [ ] **gui**: - [ ] **imagery**: - [ ] **lib**: - [ ] **misc**: - [ ] **raster**: - [ ] **raster3d**: - [ ] **scripts**: - [ ] **temporal**: - [ ] **vector**: - [ ] **visualization**:
18 tasks
neteler
added a commit
that referenced
this issue
Dec 17, 2024
This PR contains various HTML updates and textual fixes in preparation for the planned markdown conversion (see also #4748). For this PR, I have (briefly) reviewed all ~600 GRASS GIS manual pages by converting them to MD for a quality check, and then updated the original HTML files accordingly. Thus it is also a backport candidate for G84. Changes in detail: - adding missing intro sentences - added module name in the first sentence where missing - http -> https - selected URL updates for broken URLs - selected additions in "SEE ALSO" sections - fix suboptimal HTML formatting (flags, special names, ...) - add missing keywords on metapages - remove leftover `Last changed: $Date$` entries from CVS/SVN days - simplify selected `-<dl><dt>...` to `<ul><li>...` for improved MD conversion - replaced `<tt>...</tt>` with `<code>...</code>` For an easier review, the changes have been submitted in separate commits: - [x] **db**: 473b95b - [x] **display**: fca42da - [x] **doc**: e473bc8 - [x] **general**: 00930f5 - [x] **gui**: e9259cf - [x] **imagery**: e700a7c, c888dba - [x] **lib**: 6da27ca - [x] **misc**: bfa7c0d - [x] **raster**: 0c5ca83 - [x] **raster3d**: 0c44c95 - [x] **scripts**: e5bd683, 7b70b03 - [x] **temporal**: a173a8f - [x] **vector**: b5167fa - [x] **visualization**: 81e9756 Extra changes: - [x] replaced `<tt>...</tt>` with `<code>...</code>` in 14841b2 - [x] dot product: replaced `.` with `·` f8ea200 - [x] review by @echoix: 1645685 and 6fd0a66 - [x] `utils/g.html2man/htmltags.txt`: dropped outdated file (see instead `utils/g.html2man/ggroff.py`) in 92597b2 Co-authored-by: Edouard Choinière <27212526+echoix@users.noreply.github.com>
neteler
added a commit
that referenced
this issue
Dec 17, 2024
…ort of #4837) This PR contains various HTML updates and textual fixes in preparation for the planned markdown conversion (see also #4748). For this PR, I have (briefly) reviewed all ~600 GRASS GIS manual pages by converting them to MD for a quality check, and then updated the original HTML files accordingly. Thus it is also a backport candidate for G84. Changes in detail: - adding missing intro sentences - added module name in the first sentence where missing - http -> https - selected URL updates for broken URLs - selected additions in "SEE ALSO" sections - fix suboptimal HTML formatting (flags, special names, ...) - add missing keywords on metapages - remove leftover `Last changed: $Date$` entries from CVS/SVN days - simplify selected `-<dl><dt>...` to `<ul><li>...` for improved MD conversion - replaced `<tt>...</tt>` with `<code>...</code>` For an easier review, the changes have been submitted in separate commits: - [x] **db**: 473b95b - [x] **display**: fca42da - [x] **doc**: e473bc8 - [x] **general**: 00930f5 - [x] **gui**: e9259cf - [x] **imagery**: e700a7c, c888dba - [x] **lib**: 6da27ca - [x] **misc**: bfa7c0d - [x] **raster**: 0c5ca83 - [x] **raster3d**: 0c44c95 - [x] **scripts**: e5bd683, 7b70b03 - [x] **temporal**: a173a8f - [x] **vector**: b5167fa - [x] **visualization**: 81e9756 Extra changes: - [x] replaced `<tt>...</tt>` with `<code>...</code>` in 14841b2 - [x] dot product: replaced `.` with `·` f8ea200 - [x] review by @echoix: 1645685 and 6fd0a66 - [x] `utils/g.html2man/htmltags.txt`: dropped outdated file (see instead `utils/g.html2man/ggroff.py`) in 92597b2 Co-authored-by: Edouard Choinière <27212526+echoix@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
After the important work in #3849 to enable a markdown based manual using mkdocs this report collects yet open issues.
Prep
Convert HTML files to Markdown: -> see #4620
Issue collection
Manual pages not properly generated (a
man/build_*.py
issue):dist.x86_64-pc-linux-gnu/docs/mkdocs/site/wxGUI.md
and related are missing from mkdocs:WARNING - Doc file 'g.gui.rdigit.md' contains a link 'wxGUI.md', but the target is not found among documentation files.
WARNING - Doc file 'g.gui.rdigit.md' contains a link 'wxGUI.components.md', but the target is not found among documentation files.
, etc.man/build_class.py
in whichwxGUI
is not yet supportedMissing files to be installed (a Makefile issue):
icons/
directory is yet missing:dist.x86_64-pc-linux-gnu/docs/mkdocs/site/icons/
(seewxGUI.md
etc. which needs it)WARNING - Doc file 'd.barscale.md' contains a link 'barscales/classic.png', but the target is not found among documentation files.
WARNING - Doc file 'd.vect.md' contains a link 'colortables/population_dens.png', but the target is not found among documentation files.
etc.WARNING - Doc file 'd.northarrow.md' contains a link 'northarrows/9.png', but the target is not found among documentation files.
display/d.graph/grass_logo.txt
gui/wxpython/gmodeler/g_gui_gmodeler_zipcodes_avg_elevation.gxm
r.mapcalc
,r.colors
, ...doc/projectionintro.html
Formatting issues:
dist.x86_64-pc-linux-gnu/docs/mkdocs/site/keywords.html#map management
should bedist.x86_64-pc-linux-gnu/docs/mkdocs/site/keywords.html#map-management
--> fixed in manual: markdown support fixes and HTML fixes #4807#ACCA
->#acca
) --> fixed in manual: markdown support fixes and HTML fixes #4807'topic_time management.md': file name should better be 'topic_time_management.md' (underscore rather than white space)
--> fixed in manual: markdown support fixes and HTML fixes #4807build-mkdocs
step (cd man; make build-mkdocs
):Doc file 'topic_time management.md' contains a link 'keywords.md#time management', but the doc 'keywords.md' does not contain an anchor '#time management'.
-> it should be 'keywords.md#time-management'` --> fixed in manual: markdown support fixes and HTML fixes #4807r.report
manual page), not sure how to automate thisr.li.daemon
manual page), not sure how to automate thisToo complex figure code in HTML
Our HTML style recommendation for figures is not converted properly.
Some figures looks ugly after MD conversion:
grass/vector/v.fill.holes/v.fill.holes.html
Line 13 in fc94e29
mkdocs/site/raster3dintro.html
Comment: While pandoc LUA filters might do the job the highly individual HTML code seems to suggest that only manual HTML -> markdown conversion will address these issues. Manual (?) edits will be needed in ~170 files.
The text was updated successfully, but these errors were encountered: