If your document is located in %fossil-root%\doc\foo.wiki
, you can access it at the following URL:
http://localhost:8080/doc/trunk/doc/foo.wiki
This URL breaks down as follows:
http://localhost:8080
is the root URL to access Fossil when you runfossil ui
/doc
signals that you want to access embedded documentation/trunk
indicates the checkin containing the documentation you wish to access/doc/foo.wiki
is the path of the document inside the repository
Instead of trunk
, you can also specify a tag, or a branch name, or even a hexadecimal checkin identifier.
In the URL you were using, http://localhost:8080/doc/foo.wiki
, foo.wiki is interpreted as the checkin name, and no document path is specified, which logically means Fossil won't find anything.
As for an example repository containing embedded documentation, the homepage of the Fossil website itself is a prime example:
https://www.fossil-scm.org/index.html/doc/trunk/www/index.wiki
where
https://www.fossil-scm.org/index.html
is Fossil's root URL/doc
indicates a request for embedded documentation/trunk
indicates we want to fetch files from the trunk/www/
is the path to the requested file inside the repositoryindex.wiki
is the name of the file inside the repository.
So, in the 'trunk' branch of the repository, the file www/index.wiki contains the home page of the Fossil website.