public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/114738] New: [14 Regression] Default DOCUMENTATION_ROOT_URL vs. release branches
@ 2024-04-16  9:20 jakub at gcc dot gnu.org
  2024-04-16  9:20 ` [Bug other/114738] " jakub at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: jakub at gcc dot gnu.org @ 2024-04-16  9:20 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114738

            Bug ID: 114738
           Summary: [14 Regression] Default DOCUMENTATION_ROOT_URL vs.
                    release branches
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org
  Target Milestone: ---

gcc/configure.ac uses DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/"
as the default documentation root.  That is great for the trunk, but I'm not
convinced
it is the right thing for release branches.  The online docs at that location
are updated daily from the trunk, while the release branches will be supported
for ~ 3 years, during which a lot of the URLs hardcoded into the releases or
snapshots on release branches might get removed, the documentation changed etc.
Another option would be to switch that default on release branches to
docrootbase=
case "$gcc_version" in
*.[123456].0) docrootbase="$gcc_version/";;
*.[123456].1) docrootbase="`echo $gcc_version | sed 's/1$/0$/'`/";;
esac
DOCUMENTATION_ROOT_URL="https://gcc.gnu.org/onlinedocs/$docrootbase"
or so.  That has the advantage that the URLs will reflect the corresponding
release's stable documentation for the 3 years (or even after it goes out of
support).
The disadvantage is that unlike the trunk online docs regenerated every day,
the release onlinedocs are only created when release is made.
So, say 14.1.0 docs will be correct, but if something in the docs or in the
options is changed in 14.1.1 between 14.1.0 and 14.2.0, the URLs on the release
branches might be stale.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-04-25  8:51 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-16  9:20 [Bug other/114738] New: [14 Regression] Default DOCUMENTATION_ROOT_URL vs. release branches jakub at gcc dot gnu.org
2024-04-16  9:20 ` [Bug other/114738] " jakub at gcc dot gnu.org
2024-04-16 10:52 ` rguenth at gcc dot gnu.org
2024-04-16 10:55 ` rguenth at gcc dot gnu.org
2024-04-16 16:41 ` pinskia at gcc dot gnu.org
2024-04-17 14:18 ` cvs-commit at gcc dot gnu.org
2024-04-18 15:10 ` jakub at gcc dot gnu.org
2024-04-24 16:31 ` cvs-commit at gcc dot gnu.org
2024-04-25  8:51 ` jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).