aboutsummaryrefslogtreecommitdiff
path: root/document_attribute.go
AgeCommit message (Collapse)Author
2025-04-18all: fix the logic when applying default embedded CSSShulhan
By default, the document contains ":stylesheet:" attribute, which means using the default embedded CSS. To disable it, unset the attribute using ":stylesheet!:". To overwrite it, set the attribute to path of CSS file ":stylesheet: my.css". While at it, export the DocAttrStylesheet.
2025-02-16all: support document attribute "docdir"Shulhan
The "docdir" attribute contains the full path of the directory that contains the source document. By default it is set to the directory where the Document resided.
2025-02-16all: move setting attribute to DocumentShulhan
Some of attribute may depends on property of the Document.
2025-02-13all: add default HTML stylesheetShulhan
The generated HTML now contains the default stylesheet. The stylesheet is copied from HTML file generated by Asciidoctor v2.0.23.
2024-08-16all: support document attribute "leveloffset"Shulhan
The ":leveloffset:" on document attribute allow increment or decrement the heading level on included files. Reference: https://docs.asciidoctor.org/asciidoc/latest/directives/include-with-leveloffset/
2024-08-13all: refactoring DocumentAttribute into structShulhan
Using struct limit the value to only string, while some attributes can be an integer value, for example "leveloffset".
2024-08-13all: rename meta or metadata words to document attributeShulhan
The idea is to provide consistent naming for metadata and attribute. The AsciiDoctor documentation mostly name them as document attribute.
2024-08-13all: rename struct "AttributeEntry" to "DocumentAttribute"Shulhan
This is to make the struct is clear that it represent the document attribute.