| Age | Commit message (Collapse) | Author |
|
=== New features
* all: bring back support for Markdown
I use two remote repositories: GitHub and SourceHut.
GitHub support rendering README using asciidoc while SourceHut not.
This cause the repository that use README.adoc rendered as text in
SourceHut which make the repository page less readable.
Also, the pkg.go.dev now render README but only support Markdown.
Since we cannot control the SourceHut and go.dev, the only option is
to support converting Markdown in ciigo so I can write README using
Markdown and the rest of documentation using Asciidoc.
|
|
|
|
This is to make it the repository page at git.sr.ht/~shulhan/ciigo
and pkg.go.dev readable.
|
|
Instead of using another template, use the embedded template when
generating HTML.
In this way we can see how the generated HTML looks like.
|
|
|
|
|
|
I use two remote repositories: GitHub and SourceHut.
GitHub support rendering README using asciidoc while SourceHut not.
This cause the repository that use README.adoc rendered as text in
SourceHut which make the repository page less readable.
Also, the pkg.go.dev now render README but only support Markdown.
Since we cannot control the SourceHut and go.dev, the only option is
to support converting Markdown in ciigo so I can write README using
Markdown and the rest of documentation using Asciidoc.
|
|
Changes on the asciidoctor-go v0.4.1,
=== Bug fixes
* all: fix empty line printed on ToHTMLBody or ToHTMLEmbedded
* all: ignore parsing block image in paragraph
=== Enhancements
* all: handle empty preamble
|
|
This is to allow repository viewer to view CHANGELOG without changing to
directory _doc first.
|
|
Changes on the asciidoctor-go v0.4.1,
=== Bug fixes
* all: fix empty line printed on ToHTMLBody or ToHTMLEmbedded
* all: ignore parsing block image in paragraph
=== Enhancements
* all: handle empty preamble
|
|
|
|
=== Bug fix
* all: check for symlink and re-fetch file info using os.Stat
=== Chores
* all: update all dependencies
* all: group all documents under directory _doc
* all: try to fix test that sometimes fail inside container
* all: add tasks to setup test inside systemd container
|
|
|
|
The latest asciidoctor-go module fix parsing list description inside
include directive.
|
|
Since Readdir return list of FileInfo using Lstat, any node that is
symlink may return false file size and mod time.
|
|
|
|
When the test running we create directory testdata/watcher, create
a new file testdata/watcher/index.adoc and expect that the modify time
for testdata/watcher is changes.
Except that sometimes it is not. The modification time of directory
watcher before and after the file created most of times equal and this
cause the test wait indifinitely and fail.
This changes add 1 second delay before creating file inside directory
to make sure that the modification time changes.
|
|
When running test inside container, sometimes its success, most of the
time its fail.
In order to replicate it we need to setup the same container environment
and inspect it.
|
|
=== Bug fixes
* all: remove delay for testing Watch.
The delay sometimes cause the test locked and hung.
* all: fix HTML template loaded during Serve on non-development
The HTML template in the ServeOptions should not read when ciigo.Serve
running on non-development environment.
|
|
The delay sometimes cause the test locked and hung.
|
|
The HTML template in the ServeOptions should not read when ciigo.Serve
running on non-development environment.
|
|
=== New features
* all: export internal htmlGenerator as Converter
=== Chores
* all: add package build for Arch Linux
* all: set the Version automatically set during build
* all: convert the README using AsciiDoc
* all: merge internal/cmd/goembed to cmd/ciigo-example
|
|
|
|
This require that the command build or install using "make build/install".
|
|
While at it, create symlink README so the git.sr.ht site can display it.
|
|
|
|
|
|
Instead of separating different build directory for OS, use single
_bin directory.
If we want to build for different OS/arch, can set the GOOS and GOARCH
environment variables before running make.
|
|
The internal/cmd/goembed is replaced as command "embed" of
cmd/ciigo-example.
|
|
Replace any usage of ":=" with explicit variable declaration for better
types clarity.
|
|
The SetHtmlTemplateFile set or changes the HTML template used by
Converter to convert AsciiDoc to HTML.
|
|
This is the first public API provided for Converter, as promised in the
previous commit.
|
|
The purpose of Converter is to provide a single, reusable converter
for AsciiDoc file or content.
|
|
The latest update on asciidoctor-go refactor the generated ref ID where
ref ID is no longer prefixed with "\_" if start with ASCII letter.
=== Enhancements
* all: generate HTML meta data and replace the top header title
The following metadata are rendered based on the same asciidoc
attributes: author, description, generator, and keywords.
* all: add CSS for admonition block
* all: update CSS for description list
|
|
The following metadata are rendered based on the same asciidoc
attributes: author, description, generator, and keywords.
This changes also replace the topbar title with the document title,
cleanup the HTML header syntax by replacing "/>" with ">", trim leading
and trailing spaces on Body and embedded CSS.
|
|
|
|
The style only applicable for non-icon admonition.
|
|
This changes update the embedded Go file on cmd/ciigo-example and
rename field Development on MemFS Options.
|
|
Set the list title font weight to be bold and remove the font-size for
list description to make the font-size consistent.
|
|
== Bug fixes
* all: check for excluded file before processing sub directory
== Enhancements
* cmd/ciigo: simplify and cleaning up the code
* cmd/ciigo: add command to print to current version
* all: include the path that cause an error on newHTMLGenerator
== Chores
* all: reformat all files using latest goimports
* all: update the watcher affected by changes on share module
|
|
This changes move the flag "help" to command.
|
|
|
|
While at it, replace any use of ioutil with os/io package.
|
|
|
|
|
|
|
|
|
|
In case the newHTMLGenerator return an error, it's hard to track which
part of code that cause the error because there are three files being
processed (the index HTML, HTML template, or internal template).
This changes include the file that cause an error inside the error
message.
|
|
This also fix the share module using "replace" instead of "require".
|
|
Previously, if the file path match with one of the excluded pattern,
we keep processing the sub directory to find the markup files.
This may cause an error "too many open files" if excluded directory
contains many sub directory and/or files.
This changes fix this issue by checking the path with excluded pattern
first before diving into sub directory.
|