theNerd247 / conix

A Nix EDSL that brings the power of the Nix programming language to Pandoc's markdown
https://theNerd247.github.io/conix
MIT License
9 stars 1 forks source link

Use a2x and pandoc to support asciidoc? #34

Open colemickens opened 3 years ago

colemickens commented 3 years ago

I am interested in building a Nix-centric documentation site soon and am evaluating tools with which to build it.

Asciidoc looks nice, as it includes some specific features I need. It appears that asciidoc can easily be converted to docbook and that pandoc supports turning docbook into html.

Would it make sense to potentially support this from conix's lib?

theNerd247 commented 3 years ago

I think so, conix is still in its early stages so features like this are welcome. To keep features that overlap in purpose from polluting the library could I ask for what specific features you'd need? For example, is your target format only HTML or are you trying to produce multiple type of documents?

I suggest trying to use the file function to introduce asciidoc to the library. I don't have time to give a thorough answer but use the source code for pandoc (located in ./lib/conix.nix) as a guide. I'm using the file function there as well. Let me know if you need help understanding the exprs system.