[fossil-users] embedding doxygen into wiki

27 views
Skip to first unread message

ST

unread,
Mar 22, 2012, 7:09:29 AM3/22/12
to fossil...@lists.fossil-scm.org
Hi,

I try to place a link on the projects home page on the doxygen
index.html file. Let's say I have folder project and
project/doc/html/index.html is the file I would like to point my link on
- how do I achieve this without providing the absolute path to the file,
so that the link will work for others as well?

Thank you,
ST

_______________________________________________
fossil-users mailing list
fossil...@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

ST

unread,
Mar 24, 2012, 4:33:16 PM3/24/12
to Fossil SCM user's discussion
Thank you Bill,

however I didn't understand what I need to do in order to be able to
create a link like this:
<a href="file://<$pathToProject>/doc/html/index.html">project</a>

Do I have to reimplement something?

ST

On Thu, 2012-03-22 at 11:02 -0500, Bill Burdick wrote:
> OK, it looks like you're willing to use more than just HTML there.
> Here's a way to get the prefix of the fossil URL. Look at the
> assignment of url in the "markup" function,
> here: https://chiselapp.com/user/zot/repository/fossil-pagedown/artifact/4bcb90437a6e33bbbcc7edf3b6a21de00889c05c
>
>
>
>
> Bill
>
>
> On Thu, Mar 22, 2012 at 10:30 AM, ST <smn...@gmail.com> wrote:
> thank you for your reply. This would work only for index.html
> but not
> for the rest of the doxygen files which are linked to from
> index.html
> until I add them to checkin as well. But since all the doxygen
> files are
> autogenerated its not nice to put them into checkin.
>
> I look for a way to link to them through file:// . So the
> question is
> whether there is some kind of variable with path to the
> working tree, so
> that I could write
> <a href="<$pathToProject>/doc/html/index.html">project</a>
>
> Thank you,
> ST
>
> On Thu, 2012-03-22 at 09:11 -0500, Bill Burdick wrote:


> > On Thu, Mar 22, 2012 at 6:09 AM, ST <smn...@gmail.com>
> wrote:
> > Hi,
> >
> > I try to place a link on the projects home page on
> the doxygen
> > index.html file. Let's say I have folder project and
> > project/doc/html/index.html is the file I would like
> to point
> > my link on
> > - how do I achieve this without providing the
> absolute path to
> > the file,
> > so that the link will work for others as well?
> >
> >

> > If understand you, you are trying to put a link in a wiki
> page to a
> > file in your checkin. Does <a
> > href="doc/tip/project/doc/html/index.html">project</a> work?
> >
> >
> >
> >
> > Bill

Leo Razoumov

unread,
Mar 24, 2012, 4:48:49 PM3/24/12
to Fossil SCM user's discussion
On Sat, Mar 24, 2012 at 16:33, ST <smn...@gmail.com> wrote:
> Thank you Bill,
>
> however I didn't understand what I need to do in order to be able to
> create a link like this:
> <a href="file://<$pathToProject>/doc/html/index.html">project</a>
>
> Do I have to reimplement something?
>

I think there is a simple way to achieve what you want. If you run
fossil as an CGI script under "true" web server (apache, nginx, etc)
you can put your doxygen tree somewhere in the webserver html space
and then in your fossil wiki page make a link

<a href="http://your-server/prj/doxygen/index.html">my beautiful code</a>

All your doxygen pages are now served outside and independent of
fossil. If I understand correctly you do not want to checkin doxygen
generated files anyway.

--Leo--


> ST
>
> On Thu, 2012-03-22 at 11:02 -0500, Bill Burdick wrote:
>> OK, it looks like you're willing to use more than just HTML there.
>>  Here's a way to get the prefix of the fossil URL.  Look at the
>> assignment of url in the "markup" function,
>> here: https://chiselapp.com/user/zot/repository/fossil-pagedown/artifact/4bcb90437a6e33bbbcc7edf3b6a21de00889c05c
>>
>>
>>
>>
>> Bill
>>
>>
>> On Thu, Mar 22, 2012 at 10:30 AM, ST <smn...@gmail.com> wrote:
>>         thank you for your reply. This would work only for index.html
>>         but not
>>         for the rest of the doxygen files which are linked to from
>>         index.html
>>         until I add them to checkin as well. But since all the doxygen
>>         files are
>>         autogenerated its not nice to put them into checkin.
>>

Bill Burdick

unread,
Mar 25, 2012, 7:55:12 AM3/25/12
to Fossil SCM user's discussion
<$pathToProject> is not legal HTML.  I'm suggesting that you put JavaScript code in your HTML file to rewrite the link.  The code snippet I gave you will get you the value of pathToProject.


Bill
Reply all
Reply to author
Forward
0 new messages