aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-10-13all: print log message with log packageShulhan
This is to provide the timestamp to each log output.
2023-10-13go.mod: update all dependenciesShulhan
2023-07-01all: replace ioutil.ReadFile with os.ReadFileShulhan
The ioutil has been deprecated since Go 1.19.
2023-07-01all: fix test due to update on asciidoctor-goShulhan
2023-06-04go.mod: update module asciidoctor-go and share to latest releaseShulhan
The asciidoctor-go add new features for unordered list with '-' and some bug fixes related to rendering list. The share module add fix for permission error when scanning using memfs and HTTP redirect for request to directory that does not end with slash. While at it, set the minimum Go version to 1.19.
2023-06-01all: set default fonts to Go familyShulhan
For user that installed Go fonts [1] in their local or remote, using ciigo will feels like home. [1] https://go.dev/blog/go-fonts
2023-06-01all: add prefix "http://" when printing serve addressShulhan
This is to allow user to click the address in terminal that support it.
2023-06-01all: ignore error permission when listing file markupsShulhan
Instead of returning the error, ignore it and continue processing other files in the list.
2023-05-14Release ciigo v0.10.0 (2023-05-14)v0.10.0Shulhan
=== 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.
2023-05-14README: list websites build using ciigoShulhan
2023-05-14all: convert the README back to MarkdownShulhan
This is to make it the repository page at git.sr.ht/~shulhan/ciigo and pkg.go.dev readable.
2023-05-14all: rewrite watcher tests using lib/test.DataShulhan
Instead of using another template, use the embedded template when generating HTML. In this way we can see how the generated HTML looks like.
2023-05-14all: generate HTML test coverage on task testShulhan
2023-05-14all: update share moduleShulhan
2023-05-14all: bring back support for MarkdownShulhan
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.
2023-03-03Release ciigo v0.9.3 (2022-03-03)v0.9.3Shulhan
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
2023-03-03all: move CHANGELOG file from _doc to root directory backShulhan
This is to allow repository viewer to view CHANGELOG without changing to directory _doc first.
2023-03-03all: update asciidoctor-go and share module to latest versionShulhan
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
2023-02-12go.mod: update share module to version 0.43.0Shulhan
2022-09-06Release ciigo v0.9.2 (2022-09-06)v0.9.2Shulhan
=== 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
2022-09-06all: add task to preview the documentationShulhan
2022-09-06all: update all dependenciesShulhan
The latest asciidoctor-go module fix parsing list description inside include directive.
2022-09-06all: check for symlink and re-fetch file info using os.StatShulhan
Since Readdir return list of FileInfo using Lstat, any node that is symlink may return false file size and mod time.
2022-08-25all: group all documents under directory _docShulhan
2022-08-20all: try to fix test that sometimes fail inside containerShulhan
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.
2022-08-20all: add tasks to setup test inside systemd containerShulhan
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.
2022-08-07Release ciigo v0.9.1 (2022-08-07)v0.9.1Shulhan
=== 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.
2022-08-07all: remove delay for testing WatchShulhan
The delay sometimes cause the test locked and hung.
2022-08-07all: fix HTML template loaded during Serve on non-developmentShulhan
The HTML template in the ServeOptions should not read when ciigo.Serve running on non-development environment.
2022-08-06Release ciigo v0.9.0 (2022-08-06)v0.9.0Shulhan
=== 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
2022-08-06all: add package build for Arch LinuxShulhan
2022-08-06all: set the Version automatically set during buildShulhan
This require that the command build or install using "make build/install".
2022-08-06all: convert the README using AsciiDocShulhan
While at it, create symlink README so the git.sr.ht site can display it.
2022-08-06all: cleaning up codesShulhan
2022-08-06go.mod: update share and asciidoctor-go modulesShulhan
2022-08-01all: simplify make tasksShulhan
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.
2022-08-01all: merge internal/cmd/goembed to cmd/ciigo-exampleShulhan
The internal/cmd/goembed is replaced as command "embed" of cmd/ciigo-example.
2022-08-01all: clean up codesShulhan
Replace any usage of ":=" with explicit variable declaration for better types clarity.
2022-08-01all: export the Converter method to reload HTML templateShulhan
The SetHtmlTemplateFile set or changes the HTML template used by Converter to convert AsciiDoc to HTML.
2022-08-01all: export convert method in Converter as ToHtmlFileShulhan
This is the first public API provided for Converter, as promised in the previous commit.
2022-08-01all: export internal htmlGenerator as ConverterShulhan
The purpose of Converter is to provide a single, reusable converter for AsciiDoc file or content.
2022-07-24Release ciigo v0.8.2 (2022-07-24)v0.8.2Shulhan
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
2022-07-24all: generate HTML meta data and replace the top header titleShulhan
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.
2022-07-24go.mod: set minimum Go version to 1.18 and update the asciidoctor-goShulhan
2022-07-24all: add CSS for admonition blockShulhan
The style only applicable for non-icon admonition.
2022-07-09all: update share module to v0.39.1-0.20220709072157-a39d5d2246f8Shulhan
This changes update the embedded Go file on cmd/ciigo-example and rename field Development on MemFS Options.
2022-07-03all: update CSS for description listShulhan
Set the list title font weight to be bold and remove the font-size for list description to make the font-size consistent.
2022-05-19Release ciigo v0.8.1 (2022-05-19)v0.8.1Shulhan
== 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
2022-05-19cmd/ciigo: simplify and cleaning up the codeShulhan
This changes move the flag "help" to command.
2022-05-19cmd/ciigo: add command to print to current versionShulhan