After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 465920 - Use gtkdoc-rebase
Use gtkdoc-rebase
Status: RESOLVED FIXED
Product: gtk-doc
Classification: Platform
Component: general
1.8
Other Linux
: Normal normal
: 1.9
Assigned To: Stefan Sauer (gstreamer, gtkdoc dev)
gtk-doc maintainers
Depends on:
Blocks:
 
 
Reported: 2007-08-12 10:31 UTC by Yeti
Modified: 2007-09-22 19:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
use gtkdoc-rebase (690 bytes, patch)
2007-08-13 20:06 UTC, Stefan Sauer (gstreamer, gtkdoc dev)
committed Details | Review
rebase improvements (2.17 KB, patch)
2007-08-13 21:11 UTC, Yeti
committed Details | Review

Description Yeti 2007-08-12 10:31:25 UTC
Several things:

1. Actually use it.  This means something like

gtkdoc-rebase --online --relative --html-dir=$(distdir)/html

in the dist hook and

gtkdoc-rebase --relative --destdir=$(DESTDIR) --html-dir=$(DESTDIR)$(TARGET_DIR)

in the install hook.

2. Improve handling of relative paths in gtkdoc-rebase.  It works quite well for installed documentation (either into its final location or a staging area) when it knows exactly where the links should point to, but not so well in the dist hook.  The primary problem is what to do, implementing it then is probably the easy part.

Maybe the best strategy when making dists is to convert links to on-line, and if the on-line location is unknown, convert them to relative?

3. Remove --online from gtkdoc-fixxref (i.e. revert the change), it is a wrong place to do this.  It can be run only immediately after the HTML generation when <GTKDOCLINK>s are still there, which makes it non-integrable.
Comment 1 Stefan Sauer (gstreamer, gtkdoc dev) 2007-08-13 20:06:56 UTC
Created attachment 93596 [details] [review]
use gtkdoc-rebase
Comment 2 Stefan Sauer (gstreamer, gtkdoc dev) 2007-08-13 20:08:46 UTC
yep, is useful and works great. I added the online uri's to my local index.sgml files for glib/gobject/gtk+. GStreamer cvs has them already. Will also try to make patches for glib/gobject/gtk stable/trunk soon.
Comment 3 Yeti 2007-08-13 21:05:34 UTC
What is your view of 2. (and 3.)?

I attempted to change rebase to do the right thing for making dists several times, I stopped when I realised I didn't know what the right thing is.

I have some other useful changes in rebase (fixed typos and printing a summary of what it has done at the end) that I will decouple and attach.
Comment 4 Yeti 2007-08-13 21:11:24 UTC
Created attachment 93602 [details] [review]
rebase improvements

- fixes program name in --help
- recognizes relative ../foo paths as references to package foo (making them
  transformable without --aggressive)
- prints a summary of what base urls were transformed to what at the end
Comment 5 Stefan Sauer (gstreamer, gtkdoc dev) 2007-08-14 05:41:12 UTC
Yes 3.) makes sense, especially if we run -rebase by default.

Regarding 2nd, using relative if online links are not know would work for e.g. library.gnome.org. Most 3rd party probably would like to see a message in the summary and drop the links.

I plane to make a gnome-love task to tel people how the can use the new features in gtk-doc. So I assue it won't take ages before important libs have an online-tag.
Comment 6 Yeti 2007-08-15 09:05:35 UTC
There's one more complication: rebase should be IMO used even if --enable-gtk-doc was not given as this option only controls the rebuild rules, not installation (see bug 450343).  But it must not cause make failure if gtk-doc isn't available at all.  Perhaps adding `-' before the command is sufficient.
Comment 7 Stefan Sauer (gstreamer, gtkdoc dev) 2007-08-15 12:35:09 UTC
Maybe a silly idea ...
Could/Should gtkdoc-rebase link to *.png,*.css in $gtkdocprefix/share/gtk-doc/data/ if gtkdoc is installed. It would save a whopping 5 k per docs. For the css it would provide the benefit that updating gtkdoc, applies the new look to already installed docs.
Comment 8 Yeti 2007-08-15 12:45:14 UTC
(In reply to comment #7)
> For the css it would provide the benefit that updating
> gtkdoc, applies the new look to already installed docs.

Assuming everyone wants the stock icons and namely style.  Which is something I'm not sure of (even after excluding myself from everyone).

Comment 9 Stefan Sauer (gstreamer, gtkdoc dev) 2007-08-21 05:50:13 UTC
I added '-' to the rebase invocations - good catch! I also committed the rebase update.

2007-08-21  Stefan Kost  <ensonic@users.sf.net>

	* gtk-doc.make:
	* gtk-doc.notmpl.make:
	  Make use of rebase if possible. Fixes #465920

	* gtkdoc-rebase.in:
	  Rebase improvements and fixes.