I've just added a plain-text LICENCE file to one of my projects that uses
Fossil, and I'd like to add a link to it from the project homepage that will
display the file's contents when the link is followed.  I thought the obvious
way to do that would be add something like this to the home page:

    <a href="doc/trunk/LICENCE">Licence</a>

This results in a dialog box when the link is followed (using Firefox) asking
what to do with the file (whether to open or download), which is not what I
want - I want to simply display the file contents.

Thinking I could fool it into thinking the file is HTML, I tried:

    <a href="doc/trunk/LICENCE" type="text/html">Licence</a>

This makes no difference.

I know (at least I think I know) that I can get the effect I want by
making the file a Markdown file by renaming it LICENCE.md, but I don't
want to do that.  Traditionally files named README, INSTALL, and
LICENSE/LICENCE have been plain-text files with no extension, and I'd
like to keep it that way.

-- 
Will

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

Reply via email to