Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2006-03

add external links to fpdoc generated documents

6 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael Van Canneyt
to Vincent Snijders
Vincent Snijders wrote 12 lines
Hi, I would like to add a link to external documentation in a fpdoc generated document file. Is this possible. For example: On http://lazarus-ccr.sourceforge.net/docs/lcl/xmlpropstorage/txmlpropstorage.html I would like a "See also" link to http://wiki.lazarus.freepascal.org/index.php/TXMLPropStorage. This is a wiki document that contain more explanation, images and has a place for user comments.

It is currently not possible. The reason is that fpdoc can also be used to generate PDF or Latex or plain text or RTF docs, and these don't support links.

But I think it's something we can add. What did you have in mind ?

Michael.

Reply by email

Marco van de Voort
to Michael Van Canneyt
Show quoted text 18 lines
On Fri, 10 Mar 2006, Vincent Snijders wrote: > Hi, > > I would like to add a link to external documentation in a fpdoc generated > document file. Is this possible. > > For example: > On > http://lazarus-ccr.sourceforge.net/docs/lcl/xmlpropstorage/txmlpropstorage.html > I would like a "See also" link to > http://wiki.lazarus.freepascal.org/index.php/TXMLPropStorage. This is a wiki > document that contain more explanation, images and has a place for user > comments. It is currently not possible. The reason is that fpdoc can also be used to generate PDF or Latex or plain text or RTF docs, and these don't support links.

Actually, PDF (and latex package hyperref) support links. Both to other PDF and HTTP iirc.

Reply by email

Vincent Snijders
to Michael Van Canneyt: It is currently not possible. The reason is that fpdoc can also be used to generate PDF…
Michael Van Canneyt wrote 24 lines
On Fri, 10 Mar 2006, Vincent Snijders wrote: > Hi, > > I would like to add a link to external documentation in a fpdoc > generated document file. Is this possible. > > For example: > On > http://lazarus-ccr.sourceforge.net/docs/lcl/xmlpropstorage/txmlpropstorage.html > I would like a "See also" link to > http://wiki.lazarus.freepascal.org/index.php/TXMLPropStorage. This is > a wiki document that contain more explanation, images and has a place > for user comments. It is currently not possible. The reason is that fpdoc can also be used to generate PDF or Latex or plain text or RTF docs, and these don't support links. But I think it's something we can add. What did you have in mind ?

I haven't given much thought yet, so I will think something up, while typing. ;-)

What I tried was this:
http://www.freepascal.org/cgi-bin/viewcvs.cgi/trunk/docs/xml/lcl/xmlpropstorage.xml?root=lazarus&rev=8903&view=diff&r1=8904&r2=8902&p1=trunk/docs/xml/lcl/xmlpropstorage.xml&p2=/trunk/docs/xml/lcl/xmlpropstorage.xml

But that didn't work, so I started reading the docs about the <seealso> tag and the <link> tag. I think that can be extended to allow external links, or maybe you want to give it a different name: <externallink id="#wiki:TXMLPropStorage">My descriptive text</externallink>. The part before the colon must be externally configurable, so that you don't need to change the xml files, if the hosting server changes. Actually just like xct file references to other packages.

For example:
fpcmake --externallink="wiki=http://wiki.lazarus.freepascal.org/index.php/"

Vincent.

Reply by email

Tomas Hajny
to Marco van de Voort: Actually, PDF (and latex package hyperref) support links. Both to other PDF and HTTP iirc.
Marco van de Voort wrote 21 lines
> On Fri, 10 Mar 2006, Vincent Snijders wrote: > > > Hi, > > > > I would like to add a link to external documentation in a fpdoc generated > > document file. Is this possible. > > > > For example: > > On > > http://lazarus-ccr.sourceforge.net/docs/lcl/xmlpropstorage/txmlpropstorage.html > > I would like a "See also" link to > > http://wiki.lazarus.freepascal.org/index.php/TXMLPropStorage. This is a wiki > > document that contain more explanation, images and has a place for user > > comments. > > It is currently not possible. The reason is that fpdoc can also > be used to generate PDF or Latex or plain text or RTF docs, and these > don't support links. Actually, PDF (and latex package hyperref) support links. Both to other PDF and HTTP iirc.

... and RTF probably supports links too, I guess.
So what is left is plain text, and that just
needs some sensible way how to mark references.

Tomas

Reply by email

Marco van de Voort
to Tomas Hajny
Show quoted text 13 lines
> > > document that contain more explanation, images and has a place for user > > > comments. > > > > It is currently not possible. The reason is that fpdoc can also > > be used to generate PDF or Latex or plain text or RTF docs, and these > > don't support links. > > Actually, PDF (and latex package hyperref) support links. Both to other PDF > and HTTP iirc. ... and RTF probably supports links too, I guess. So what is left is plain text, and that just needs some sensible way how to mark references.

(note that I meant links that cross file bounderies)

Reply by email