From 12ffac5aac2a519e34d9fb459f17cfa788287640 Mon Sep 17 00:00:00 2001 From: Vaclav Petras Date: Wed, 29 Apr 2026 23:09:53 -0400 Subject: [PATCH] doc: Move grass.tools to second tab for tools Move the grass.tools tab before the grass.script tab in the documentation of individual tools. This presents grass.tools as the primary and grass.script as the secondary API similarly to how the Python intro presents that. Command line tab still stays first which, at this point, fits also with the page title (which is the dotted name, not the snake_case name). --- lib/gis/parser_md.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/gis/parser_md.c b/lib/gis/parser_md.c index aacf2d3e30e..2cf51a1b122 100644 --- a/lib/gis/parser_md.c +++ b/lib/gis/parser_md.c @@ -63,18 +63,18 @@ void G__usage_markdown(void) /* short version */ fprintf(stdout, "\n=== \"Command line\"\n\n"); G__md_print_cli_short_version(stdout, tab_indent); - fprintf(stdout, "\n=== \"Python (grass.script)\"\n\n"); - G__md_print_python_short_version(stdout, tab_indent, false); fprintf(stdout, "\n=== \"Python (grass.tools)\"\n\n"); G__md_print_python_short_version(stdout, tab_indent, true); + fprintf(stdout, "\n=== \"Python (grass.script)\"\n\n"); + G__md_print_python_short_version(stdout, tab_indent, false); fprintf(stdout, "\n## %s\n", _("Parameters")); /* long version */ fprintf(stdout, "\n=== \"Command line\"\n\n"); G__md_print_cli_long_version(stdout, tab_indent); - fprintf(stdout, "\n=== \"Python (grass.script)\"\n\n"); - G__md_print_python_long_version(stdout, tab_indent, false); fprintf(stdout, "\n=== \"Python (grass.tools)\"\n\n"); G__md_print_python_long_version(stdout, tab_indent, true); + fprintf(stdout, "\n=== \"Python (grass.script)\"\n\n"); + G__md_print_python_long_version(stdout, tab_indent, false); }