In our search for adequate markup to be used for our upcoming
open-source project, we stumbled upon AsciiDoc
(http://www.methods.co.nz/asciidoc/) and, so far, like it very
much and decided to use it instead of reST/Sphinx, markdown etc.
However, the best part is that there is asciidoc-fossil-backend
(https://github.com/srackham/asciidoc-fossil-backend) which enables one
to write his/her documentation in AsciiDoc and still display it nicely
on the site using Fossil's wiki mechanism.
I was not able to add new page following documentation @github, but the
following works:
asciidoc -b fossil -o - asciidoc.txt | fossil wiki create AsciiDoc
to add new page to the wiki, while:
fossil wiki export AsciiDoc AsciiDoc.wiki
created embedded doc (which seems to be favoured nowadaysa).
Remembering that I was complaining a lot about Fossil' not using some
'standard' markup (reST/markdown/...), I did accept this design choise
believing that Fossil offer so much more, but now I was graced by even
better solution. :-)
AsciiDoc is very rich semantically and able to cope with the whole
books, it produces excellent PDF output (we use dblatex toolchain),
generates several flavours of HTML (html4, xhtml, html5) and can be used
for generating man pages as well as EPUB, DocBook output etc., but it is
still possible to get decent Fossil wiki output without putting too much
weight on the server by installing DocBook toolchain tools.
I did not find any post about this backend here, but only in the
AsciiDoc mailing list, so hope it might be of some use for Fossil users.
Sincerely,
Gour
--
One who knows the transcendental nature of My appearance and
activities does not, upon leaving the body, take his birth again
in this material world, but attains My eternal abode, O Arjuna.
http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810
Gour,
could you, please, provide a demo so that one can see AsciiDoc +
Fossil in action.
--Leo--
_______________________________________________
fossil-users mailing list
fossil...@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
> Gour,
> could you, please, provide a demo so that one can see AsciiDoc +
> Fossil in action.
http://fossil.atmarama.net/cgi-bin/ascii-fossil.fsl
Sincerely,
Gour
--
One is understood to be in full knowledge whose every endeavor
is devoid of desire for sense gratification. He is said by sages
to be a worker for whom the reactions of work have been burned
up by the fire of perfect knowledge.
Am 22.03.2012 15:39, schrieb Gour:
On Thu, 22 Mar 2012 09:01:17 -0400
Leo Razoumov<slon...@gmail.com> wrote:
Gour,
could you, please, provide a demo so that one can see AsciiDoc +
Fossil in action.
http://fossil.atmarama.net/cgi-bin/ascii-fossil.fsl
I'm also very interested in a demonstration backend for using a different wiki markup language. There is a blog post about the AsciiDoc-fossil-backend which describes it in more detail:
http://srackham.wordpress.com/2011/08/30/fossil-backend-for-asciidoc/
It seems, though, that the AsciiDoc-Backend simply translates text from AsciiDoc-Markup to Fossil-Markup. There is no real integration in fossil, and it seems that it can not be used from within fossil as a markup substitute. @Gour: Is that correct, or did I miss something here?
So far, fossil is the almost perfect distributed wiki and note collection system (distributed, portable, integrated HTTP-Server, offline, MathJax-compatible, stable, supported). The only drawback is the wiki syntax, which is somewhat limited. Some way of changing that markup would be very, very appreciated. I'm currently trying my luck with editing the fossil source code, but this is a less then optimal solution (as forking breaks portability a bit, and doesn't sync the markup between the repositories). Maybe including some (sandboxed) scripting language interpreter in fossil would help - one could then change the markup script similar to the Header/Footer/CSS.
Of course, I might be missing some obvious solution, so correct me if I'm wrong :)
I'm also very interested in a demonstration backend for using a different wiki markup language.
breaks portability a bit, and doesn't sync the markup between the repositories). Maybe including some (sandboxed) scripting language interpreter in fossil would help - one could then change the markup script similar to the Header/Footer/CSS.
> It seems, though, that the AsciiDoc-Backend simply translates text
> from AsciiDoc-Markup to Fossil-Markup.
Correct.
> There is no real integration in fossil, and it seems that it can not
> be used from within fossil as a markup substitute.
Well, considering that even Fossil itself is moving/moved towards
embedded docs, I do not see a problem using AsciiDoc as markup for our
documentation, keep 'em as source under Fossil and use ascii-fossil
backend to render them on the server without any need for heavy
Docbook-based toolchain.
Sincerely,
Gour
--
One who is able to withdraw his senses from sense objects,
as the tortoise draws its limbs within the shell,
is firmly fixed in perfect consciousness.
> AsciiDoc sounds intriguing, though, and i will also be looking for a
> JS implementation of it.
It is indeed...very capable to write complete books with index,
bibliography, glossary...plus rich semantic. I like it much more than
reST...Markdown is, anyway, not the same league.
Otoh, I'm not aware of any JS implementation 'cause it's very much tied
to DocBook. Iow, AsciiDoc has very rich markup and it's not, imho, just
question of rendering.
Sincerely,
Gour
--
What is night for all beings is the time of awakening
for the self-controlled; and the time of awakening for
all beings is night for the introspective sage.
I think it would be better to produce HTML from AsciiDoc and set
fossil wiki to "Use HTML as wiki markup language" from
Admin->Configuration. Full HTML is so much more powerful than what
fossil wiki syntax allows.
Even inside <nowiki> scope you are limited to only white-listed tags
and attributes.
different wiki pages differently). i hope to get a version done this weekend which uses the Google Code wiki syntax (my personal favourite). AsciiDoc sounds intriguing, though, and i will also be looking for a JS ...
"That will copy the repository to cson.fsl, which you can then open with:"
It's need a: s/cson/fwiki
I don't see why Fossil can't use any markup engine. For example, there
are a number of settable commands, such as pgp command, diff command,
editor, gmerge command, etc. Would it really be that difficult to
basically add a markup command so a user could use whatever markup
language/engine they wanted?
That is very true. However, is it really that different of a scenario
than the choice of programming language used in a repo (I'm assuming the
majority of Fossil users are using it for source code versioning).
Anyone who clones the repo or who wishes to contribute to the project
will have to install whatever compiler, interpreter, and/or buildtools
that are required to make the project.
--
Christopher Berardi
http://www.natoufa.com/
May grace and peace by yours in abundance.