-
-
Notifications
You must be signed in to change notification settings - Fork 295
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
docs: Use hamburger menu TOC for module pages on small screens #2606
docs: Use hamburger menu TOC for module pages on small screens #2606
Conversation
…addon instalation
…L dir for every addon instalation
To prevent the link path from being replaced with a local path during addon installation. Example: `<a href="#description">DESCRIPTION</a>` with `<a href="file:///usr/lib64/grass83/docs/html/#description">DESCRIPTION</a>`
|
How to test this PR: Core module HTML man page:
Addon HTML man page:
|
|
I tested it locally, the menu looks good (incl. submenus!):
|
Yes, you are right. I had these files copied manually. Thanks for the tip. Fixed with 6eb2856. |
… 1024 px (#2606) * utils: module HTML man page use hamburger menu TOC for screen width < 1024 px * Fix flake8, black errors. * g.extension: copy CSS style file into addons docs HTML dir for every addon instalation * g.extension: copy hamburger menu SVG image files into addons docs HTML dir for every addon instalation * utils: set CSS class for every hamburger menu link list item To prevent the link path from being replaced with a local path during addon installation. Example: `<a href="#description">DESCRIPTION</a>` with `<a href="file:///usr/lib64/grass83/docs/html/#description">DESCRIPTION</a>` * utils: fix space between HTML element attributes * man: install module HTML man page hamburger menu TOC SVG images
|
@tmszi: I just realize it now: the SVG also need to be installed in the https://grass.osgeo.org/grass82/manuals/addons/hamburger_menu.svg -> 404 |
When I tested it locally (addon installation), these two lines 15d5178 fixed this issue. |
|
@neteler We need add these two images here https://github.com/OSGeo/grass-addons/blob/grass8/utils/cronjobs_osgeo_lxd/cron_grass8_main_build_binaries.sh#L303. |
|
I found these pages doesn't have hamburger menu TOC: https://grass.osgeo.org/grass82/manuals/full_index.html https://grass.osgeo.org/grass82/manuals/keywords.html and needed standalone hamburger TOC menu implementation. |
… 1024 px (OSGeo#2606) * utils: module HTML man page use hamburger menu TOC for screen width < 1024 px * Fix flake8, black errors. * g.extension: copy CSS style file into addons docs HTML dir for every addon instalation * g.extension: copy hamburger menu SVG image files into addons docs HTML dir for every addon instalation * utils: set CSS class for every hamburger menu link list item To prevent the link path from being replaced with a local path during addon installation. Example: `<a href="#description">DESCRIPTION</a>` with `<a href="file:///usr/lib64/grass83/docs/html/#description">DESCRIPTION</a>` * utils: fix space between HTML element attributes * man: install module HTML man page hamburger menu TOC SVG images
… 1024 px (OSGeo#2606) * utils: module HTML man page use hamburger menu TOC for screen width < 1024 px * Fix flake8, black errors. * g.extension: copy CSS style file into addons docs HTML dir for every addon instalation * g.extension: copy hamburger menu SVG image files into addons docs HTML dir for every addon instalation * utils: set CSS class for every hamburger menu link list item To prevent the link path from being replaced with a local path during addon installation. Example: `<a href="#description">DESCRIPTION</a>` with `<a href="file:///usr/lib64/grass83/docs/html/#description">DESCRIPTION</a>` * utils: fix space between HTML element attributes * man: install module HTML man page hamburger menu TOC SVG images
… 1024 px (OSGeo#2606) * utils: module HTML man page use hamburger menu TOC for screen width < 1024 px * Fix flake8, black errors. * g.extension: copy CSS style file into addons docs HTML dir for every addon instalation * g.extension: copy hamburger menu SVG image files into addons docs HTML dir for every addon instalation * utils: set CSS class for every hamburger menu link list item To prevent the link path from being replaced with a local path during addon installation. Example: `<a href="#description">DESCRIPTION</a>` with `<a href="file:///usr/lib64/grass83/docs/html/#description">DESCRIPTION</a>` * utils: fix space between HTML element attributes * man: install module HTML man page hamburger menu TOC SVG images

Module HTML man page use hamburger menu TOC #2589 (comment) for screen width < 1024 px.