summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-01-21Release ciigo v0.4.1 (2021-01-21)v0.4.1Shulhan
Update to latest share module. Fix the HTTP server not auto-reload the new changes if DEBUG value is non-zero.
2021-01-21Release ciigo v0.4.0 (2021-01-21)v0.4.0Shulhan
Refactoring due to change on memfs package. This changes affect the exported functions Generate() and Serve(). Previously, the Generate() function accept three options: dir, out, and htmlTemplate; this release changes the parameter into single struct Options with two additional options: GenPackageName and GenVarName. The GenPackageName allow to set the package name in Go generate source code, default to "main" if not set. The GenVarName set the instance of memfs.MemFS where the embedded files will be stored. On the Serve() function, we add parameter to pass the instance of memfs.MemFS (the one that passed on GenVarName).
2021-01-21README: update the content to reflect the latest changesShulhan
Simplify the instruction on using ciigo as library.
2021-01-10ciigo: remove statement that ignore "assets" fileShulhan
2021-01-10all: remove unused variablesShulhan
2021-01-10Makefile: simplify all tasksShulhan
* Do no install the ciigo-example * Remove task for creating _bin directory since it will be handled by go tools automatically.
2021-01-10all: refactoring due to change on memfs packageShulhan
This changes affect exported function Generate and Serve. Previously, the Generate() function accept three options: dir, out, and htmlTemplate; this commit changes the parameter into single struct Options with two additional options: GenPackageName and GenVarName. The GenPackageName allow to set the package name in Go generate source code, default to "main" if not set. The GenVarName set the instance of memfs.MemFS where the embedded files will be stored. On the Serve() function, we add parameter to pass the instance of memfs.MemFS (the one that passed on GenVarName).
2020-12-26go.mod: update with latest asciidoctor-goShulhan
* inline_parser: add zero-width space after ellipsis character * all: add predefined attributes for character replacements * parser: wrap value of email ref name with "mailto:[<value>]" * all: remove parameter isForToC on method element.toHTML * document: rename ToEmbeddedHTML to ToHTMLEmbedded * document: group exported fields for document readibility * all: move some list ordered class names to constants * all: rename file adoc_table to element_table * all: rename type adocTable to elementTable * README: add subsection for list of TODO for Include Directive * Makefile: add task to run test * all: rename the file adoc_node to element * all: rename adocNode to element * all: add unit test for paragraph lead style * all: do not wrap document with content and preamble on ToEmbeddedHTML * all: use consistent names for parser * all: fix list description item than span on multiple lines * all: fix parsing list with open block
2020-12-13go.mod: update with latest asciidoctor-goShulhan
Changes from latest asciidoctor-go, * all: fix rendering block listing * add partial support for include directive * document_parser: fix parsing open block inside list item * html_template: change generator name from ciigo to asciidoctor-go
2020-12-09go.mod: update with latest asciidoctor-goShulhan
* all: fix parsing description list with link * all: add support for checklist in unordered list * all: support custom markers on unordered list * parser: allow table separator with "=" greater than 3
2020-12-06Release ciigo v0.3.0 (2020-12-06)v0.3.0Shulhan
This release replace the asciidoc parsing from libasciidoc-go to https://sr.ht/~shulhan/asciidoctor-go[asciidoctor-go], which provide more control and stable APIs. We also remove support form markdown markup language and focus only to support asciidoctor format from now on. The Go module path and repository is also moved from github to git.sr.ht/~shulhan/ciigo.
2020-11-26all: remove the Author and DateShulhan
Since the generate HTML already render the authors and date, there is no need to save the values in the fileHTML. Also, update the default embedded HTML template with latest format.
2020-11-26htmlgenerator: use the ToHTMLBody instead of ToEmbeddedHTMLShulhan
The ToHTMLBody generate table of contents at the top, while ToEmbeddedHTML require ":toc:" to set to "preamble" or "macro" to get it rendered.
2020-11-24go.mod: update with latest asciidoctor-goShulhan
Changes, ea961ec (HEAD -> main, origin/main) chore: increase the debug value to supress logs on DEBUG=1 6f33f2a README: change the format to markdown d5502ca all: support all column style "a", "e", "h", "l", "m", "d", "s", "v" f14e27f go.mod: update with latest share module f1c0969 all: implement parser for table 4f24d95 all: support forcing line break by ending the line with " +\n" 18f26d6 all: change attributeClass from map to slice 43dfd5e all: support section "[discrete]" headings style 4a96e9e all: implement additional metadatas aa9956d html_backend: check for meta "version-label" when generating footer 73255a6 all: support additional metadatas 02594b3 all: unpack the revision number, date, and remark into Revision 15ab720 all: add support for multiple authors with email 0d1a3e6 all: change the classes field from slice to map d63f184 all: minimize number of short HTML templates fa7fd13 all: add support for disable rendering title using "showtitle!" 7e3de28 all: add method ToEmbeddedHTML 1d89381 all: support meta "noheader" e108779 all: parse the document subtitle 6429bf9 all: support setting document title through meta "doctitle" 842a827 all: fix linter warnings 3cbc0a0 all: minimize error checking by using bytes.Buffer 31c0a7d document_parser: remove unused return 'c' ab98ae3 document_parser: minimize duplicate code when parsing paragraph 177f09b all: split between document and a document parser 54c1fa5 all: rewrite HTML backend template without text/template
2020-11-24README: reformat to markdown to make it readable by sourcehutShulhan
While at it simplify the example of index.adoc.
2020-11-11all: migrate the repo and Go module to git.sr.ht/~shulhan/ciigoShulhan
2020-11-11README: symlink for displaying git sr.htShulhan
2020-11-09cmd/ciigo: change default debug level for "serve" from 2 to 1Shulhan
2020-11-09go.mod: update to latest asciidoctor-goShulhan
2020-11-04go.mod: update on asciidoctor-goShulhan
* all: parse inline format on list description item label * all: check for duplicate IDs (origin/main) * document: add additional termination when parsing list item * parser_inline: truncate inline link only if its end with '.', ',' or ';' * all: do not check for escape character when doing substitutions
2020-11-04htmlgenerator: convert the document with body onlyShulhan
2020-11-04go.mod: update with latest asciidoctor-go moduleShulhan
2020-11-04all: revert support for markdownShulhan
This program only support asciidoctor markup only.
2020-11-04all: update with latest asciidoctor moduleShulhan
2020-11-03all: replace libasciidoc with asciidoctor-goShulhan
2020-10-08all: check for zero last updated when unpacking adoc metadataShulhan
If the date is zero ("0001-01-01 ...") reset it to empty string and do not render it on HTML output.
2020-10-07all: update to libasciidoc v0.5.1Shulhan
The latest release of libasciidoc changes the API to convert adoc content to HTML. Instead of one call, we need to call ParseDocument first to get the document metadata (Attributes) and then call Convert() to convert it to HTML.
2020-07-05Release ciigo v0.2.0 (2020-07-05)v0.2.0Shulhan
* all: simplify serving content using function Serve Previously to serve the generated content we call two fucntions: NewServer() and Server.Start(). This changes unexported the internal server, and expose only the Serve() function with the same parameter as NewServer(). * all: embed the HTML template and the stylesheet The parameter for template either in Convert or Generate functions or in CLI now become pure optional, not default to "templates/html.tmpl" anymore. This will minimize steps for user to setup or run the library or program.
2020-06-27server: fix html template not being watched on changeShulhan
2020-06-27go.mod: update with latest share moduleShulhan
Fix a 404 when accessing URL with empty "index.html".
2020-06-05go.mod: update and fix dependencies error on fsnotifyShulhan
2020-05-07go.mod: update with latest share moduleShulhan
2020-05-07go.mod: update dependenciesShulhan
2020-05-07Makefile: add task to serve the generated exampleShulhan
2020-05-07template: update the embedded HTML footerShulhan
2020-05-07all: rename the "content" directory to "_example"Shulhan
While at it, also move the templates into _example and all assets into the same directory.
2020-05-01all: simplify serving content using function ServeShulhan
Previously to serve the generated content we call two fucntions: NewServer() and Server.Start(). This changes unexported the internal server, and expose only the Serve() function with the same parameter as NewServer().
2020-05-01all: move the file to generate static assets to internal/cmd/generateShulhan
2020-05-01all: embed the HTML template and the stylesheetShulhan
The parameter for template either in Convert or Generate functions or in CLI now become pure optional, not default to "templates/html.tmpl" anymore. This will minimize steps for user to setup or run the library or program.
2020-04-18Makefile: add release tasksShulhan
2020-03-30ciigo-example: update generated static.go fileShulhan
2020-03-30go.sum: cleaning upShulhan
2020-03-30go.mod: update share moduleShulhan
2020-03-25ciigo v0.1.1v0.1.1Shulhan
2020-03-25all: move the metadata keys as constantsShulhan
2020-03-24all: rename markupFile to fileMarkupShulhan
This is to make it consistent with fileHTML.
2020-03-16go.mod: update module "share"Shulhan
2020-03-16Revert "go.mod: update dependencies"Shulhan
This reverts commit 0412be09e95083ceb0fae3a578d1cfcd303a26a4. Reason for revert: latest update on libasciidoc break converting .adoc to .html file.
2020-02-14go.mod: update dependenciesShulhan
2020-02-14Makefile: add task to run linterShulhan