| Age | Commit message (Collapse) | Author |
|
Update to latest share module.
Fix the HTTP server not auto-reload the new changes if DEBUG value is
non-zero.
|
|
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).
|
|
Simplify the instruction on using ciigo as library.
|
|
|
|
|
|
* Do no install the ciigo-example
* Remove task for creating _bin directory since it will be handled
by go tools automatically.
|
|
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).
|
|
* 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
|
|
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
|
|
* 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
|
|
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.
|
|
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.
|
|
The ToHTMLBody generate table of contents at the top, while ToEmbeddedHTML
require ":toc:" to set to "preamble" or "macro" to get it rendered.
|
|
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
|
|
While at it simplify the example of index.adoc.
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
|
|
This program only support asciidoctor markup only.
|
|
|
|
|
|
If the date is zero ("0001-01-01 ...") reset it to empty string and
do not render it on HTML output.
|
|
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.
|
|
* 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.
|
|
|
|
Fix a 404 when accessing URL with empty "index.html".
|
|
|
|
|
|
|
|
|
|
|
|
While at it, also move the templates into _example and all assets
into the same directory.
|
|
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().
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This is to make it consistent with fileHTML.
|
|
|
|
This reverts commit 0412be09e95083ceb0fae3a578d1cfcd303a26a4.
Reason for revert: latest update on libasciidoc break converting .adoc
to .html file.
|
|
|
|
|