Skip to content
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

manual: fix more broken HTML tags #4765

Merged
merged 2 commits into from
Nov 27, 2024
Merged

Conversation

neteler
Copy link
Member

@neteler neteler commented Nov 26, 2024

In order to obtain a good result when converting the HTML manual pages files to markdown, ideally clean HTML code is used.

This PR fixes numerous broken HTML tags identified during a test run of adding HTML validation with super-linter.

For reference, see logs showing the errors at
https://github.com/echoix/grass/actions/runs/12001379426/job/33451802353?pr=303#step:4:8310

Fixes (there is not much variety here, just many occurrences):

  • complete incomplete tag pairs (esp. <li>)
  • tabs replaced with white space
  • <, >, & replaced with their HTML representations
  • avoid <br> within <em> ... </em> since this will not be properly converted by pandoc
  • update an URL

Testing: the simplest approach is to see if the code still compiles. Locally it does.

In order to obtain a good result when converting the HTML manual pages files to markdown, ideally clean HTML code is used.

This PR fixes numerous broken HTML tags identified during a test run of [adding HTML validation with super-linter](echoix#303).

For reference, see logs showing the errors at
https://github.com/echoix/grass/actions/runs/12001379426/job/33451802353?pr=303#step:4:8310

Fixes:
- incomplete tag pairs
- tabs replaced with white space
@neteler neteler added manual Documentation related issues HTML Related code is in HTML docs labels Nov 26, 2024
@neteler neteler added this to the 8.5.0 milestone Nov 26, 2024
@neteler neteler self-assigned this Nov 26, 2024
echoix
echoix previously approved these changes Nov 26, 2024
Copy link
Member

@echoix echoix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've left one comment. And also saw that an url to grassbook was changed to neteler

@github-actions github-actions bot added GUI wxGUI related vector Related to vector data processing raster Related to raster data processing temporal Related to temporal data processing database Related to database management libraries module general display imagery raster3d misc labels Nov 26, 2024
@echoix
Copy link
Member

echoix commented Nov 26, 2024

For the tabs vs spaces, line endings, end of line, etc, there's an editorconfig file that can be useful, and enforced with editorconfig-checker. Editorconfig-checker can be enabled in super-linter too. I've started the work of preparing the repo for it months ago, that's where the 2 still unmerged PRs changing shell scripts came from (very inconsistent tabs vs spaces). I think Python is ready now (or almost). Anyways, it's only another tool up the sleeve for this kind of checks.

@neteler
Copy link
Member Author

neteler commented Nov 27, 2024

For the tabs vs spaces, line endings, end of line, etc, there's an editorconfig file that can be useful, and enforced with editorconfig-checker. Editorconfig-checker can be enabled in super-linter too.

Additionally, it would be good to also update:
https://grasswiki.osgeo.org/wiki/Tools_for_Python_programming

@echoix
Copy link
Member

echoix commented Nov 27, 2024

Let's go with it!

@neteler neteler merged commit 3b5486c into OSGeo:main Nov 27, 2024
23 checks passed
@neteler neteler deleted the manual_HTML_tag_fixes branch November 27, 2024 21:53
neteler added a commit to neteler/grass that referenced this pull request Nov 28, 2024
In order to obtain a good result when converting the HTML manual pages files to markdown, ideally clean HTML code is used (continuation of OSGeo#4765).

This PR fixes numerous broken HTML tags identified during a test run of [adding HTML validation with super-linter](echoix#303).

For reference, see logs showing the errors at
https://github.com/echoix/grass/actions/runs/12067630007/job/33651008404?pr=303

Fixes include:
- complete selected ncomplete tag pairs (esp. `<li>`)
- tabs replaced with white space
- `<`, `>`, `&` replaced with their HTML representations
echoix added a commit that referenced this pull request Nov 28, 2024
* manual: fix more broken HTML tags

In order to obtain a good result when converting the HTML manual pages files to markdown, ideally clean HTML code is used (continuation of #4765).

This PR fixes numerous broken HTML tags identified during a test run of [adding HTML validation with super-linter](echoix#303).

For reference, see logs showing the errors at
https://github.com/echoix/grass/actions/runs/12067630007/job/33651008404?pr=303

Fixes include:
- complete selected ncomplete tag pairs (esp. `<li>`)
- tabs replaced with white space
- `<`, `>`, `&` replaced with their HTML representations

* Apply suggestions from code review

---------

Co-authored-by: Edouard Choinière <[email protected]>
@neteler neteler modified the milestones: 8.5.0, 8.4.1 Nov 30, 2024
neteler added a commit that referenced this pull request Nov 30, 2024
Backport of #4765

In order to obtain a good result when converting the HTML manual pages files to markdown, ideally clean HTML code is used.

This PR fixes numerous broken HTML tags identified during a test run of [adding HTML validation with super-linter](echoix#303).

For reference, see logs showing the errors at
https://github.com/echoix/grass/actions/runs/12001379426/job/33451802353?pr=303#step:4:8310

Fixes:
- incomplete tag pairs
- tabs replaced with white space
- fix missing .html extension in URLs
neteler added a commit that referenced this pull request Nov 30, 2024
* manual: fix more broken HTML tags

In order to obtain a good result when converting the HTML manual pages files to markdown, ideally clean HTML code is used (continuation of #4765).

This PR fixes numerous broken HTML tags identified during a test run of [adding HTML validation with super-linter](echoix#303).

For reference, see logs showing the errors at
https://github.com/echoix/grass/actions/runs/12067630007/job/33651008404?pr=303

Fixes include:
- complete selected ncomplete tag pairs (esp. `<li>`)
- tabs replaced with white space
- `<`, `>`, `&` replaced with their HTML representations

* Apply suggestions from code review

---------

Co-authored-by: Edouard Choinière <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
database Related to database management display docs general GUI wxGUI related HTML Related code is in HTML imagery libraries manual Documentation related issues misc module raster Related to raster data processing raster3d temporal Related to temporal data processing vector Related to vector data processing
Projects
Development

Successfully merging this pull request may close these issues.

2 participants