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

[Bug] man pages corrupted #2633

Closed
nilason opened this issue Nov 7, 2022 · 0 comments · Fixed by #2639
Closed

[Bug] man pages corrupted #2633

nilason opened this issue Nov 7, 2022 · 0 comments · Fixed by #2639
Labels
bug Something isn't working HTML Related code is in HTML manual Documentation related issues

Comments

@nilason
Copy link
Contributor

nilason commented Nov 7, 2022

Describe the bug

Man pages are corrupted by the javascript added for the menu:

man g.version          Mapset <user1> in <nc_spm_full_v2alpha2>

g.version(1)                 GRASS GIS User's Manual                g.version(1)

// Create hamburger menu TOC HTML elements by the JavaScript let temp =
document.createElement(’template’); const toc = ’<ul class="toc-mobile-screen"
id="toc-mobile-screen">’ + ’<li><a class="toc-item"
href="#description">DESCRIPTION</a>’ + ’</li>’ + ’<li><a class="toc-item"
href="#notes">NOTES</a>’ + ’</li>’ + ’<li><a class="toc-item"
href="#examples">EXAMPLES</a>’ + ’<ul>’ + ’<li><a class="toc-item"
href="#basic-info">Basic info</a>’ + ’</li>’ + ’<li><a class="toc-item"
href="#gis-library-info">GIS Library info</a>’ + ’</li>’ + ’<li><a
class="toc-item" href="#full-info-in-shell-script-style">Full info in shell
script style</a>’ + ’</li>’ + ’</ul></li>’ + ’<li><a class="toc-item"
href="#citing-grass-gis">Citing GRASS GIS</a>’ + ’</li>’ + ’<li><a
class="toc-item" href="#authors">AUTHORS</a>’ + ’</li>’ + ’<a class="close"
href="#">’ + ’<img src="./hamburger_menu_close.svg" alt="close">’ + ’</a>’ +
’</ul>’ + ’<a class="hamburger" href="#toc-mobile-screen">’ + ’<img
src="./hamburger_menu.svg" alt="menu">’ + ’</a>’; temp.innerHTML = toc; const
grassLogoLink = document.getElementsByTagName("img")[0];
grassLogoLink.after(temp.content);

NAME
       g.version  - Displays GRASS GIS version info.

To Reproduce
Steps to reproduce the behavior:

  1. man <module>

System description (please complete the following information):

  • Operating System: all
  • GRASS GIS version: 8.3.dev (main)
@nilason nilason added bug Something isn't working manual Documentation related issues HTML Related code is in HTML labels Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working HTML Related code is in HTML manual Documentation related issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant