gdal icon indicating copy to clipboard operation
gdal copied to clipboard

Can't always follow "Edit on GitHub"

Open jidanni opened this issue 1 year ago • 4 comments

What is the bug?

  1. visit https://gdal.org/api/gdal_alg.html
  2. Observe many grammar etc. errors, e.g.,
  • ensure all values are contained i the range -1 to +1.

  1. Push the "Edit on GitHub" button.

Alas, normal users are now thrown off track and will give up pursing the matter. (Yes, maybe #10000, but that's beside the point.)

jidanni avatar May 24 '24 09:05 jidanni

Do you mean that the screen that the button opens leads into -> "normal users are now thrown off track and will give up pursing the matter"? And that they give up without pressing the green button or withour learning more?

image

jratike80 avatar May 24 '24 11:05 jratike80

The content of the gdal_alg.html pages and other similar API pages is dynamically generated from Doxygen documentation of C/C++ functions. Not everything is convenient in life :-) That's the point where you need to look in GDAL source code and fix the issues at the source.

rouault avatar May 24 '24 13:05 rouault

Would it be helpful if I put a comment at the top of the .rst files along the lines of "the text rendered on this page is automatically generated from Doxygen comments in .cpp source files" or "the text rendered on this page is automatically generated from Python docstrings".

dbaston avatar May 24 '24 14:05 dbaston

Would it be helpful if I put a comment at the top of the .rst files along the lines of "the text rendered on this page is automatically generated from Doxygen comments in .cpp source files" or "the text rendered on this page is automatically generated from Python docstrings".

Sounds good to me

rouault avatar May 24 '24 14:05 rouault