summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2025-02-01Release ciigo v0.15.1 (2025-02-01)v0.15.1Shulhan
[BUG FIX] Fix section detected as paragraph after list and comment. Previously, given the following markup, ---- * Sub list + Sub list content. //}}} //{{{ == Sub 2 //}} ---- The section "Sub 2" will be parsed as paragraph instead of new section. [CHORE] In the linter, we replace the fieldalignment and shadow using our internal gocheck command. This linters actually have an API that can be combined into a program, which provided by package "pakakeh.go/lib/goanalysis".
2025-02-01make: derive GOBIN using "go env GOBIN"Shulhan
The environment variable GOBIN may not set by user explicitly.
2025-02-01all: replace external linters with internal linterShulhan
The fieldalignment and shadow is linter from golang.org/x/tools. This linters actually have an API that can be combined into a program, which provided by package "pakakeh.go/lib/goanalysis".
2025-02-01go.mod: update asciidoctor-goShulhan
The latest release fix parsing section that is not detected after list items.
2025-01-08Release ciigo v0.15.0 (2025-01-08)v0.15.0Shulhan
This is the first major release of ciigo on the new year of 2025. We bring many enhancements and update on the documentation. [ENHANCEMENT] The first changes is refactoring to use watchfs/v2. The [watchfs/v2] bring new enhancements by watching only single file instead of all markup files for changes. This minimize number of goroutine calling [os.Stat] on each markup files. [BUG FIX] When listing the file markups, if the node is symlink (either file or directory) and target its not exist, continue to the next node instead of returning error. The same is true for directory that cannot be opened, probably due to broken symlink or permission. [ENHANCEMENT] In development mode, where [ServeOptions.IsDevelopment] is set to true or when running "ciigo serve", the ciigo HTTP server will check if the new markup file is newer than HTML file when user press refresh or reload on the browser. If its newer, it will convert the markup file and return the new content of HTML file. This allow quick preview without waiting for watcher to complete. [ENHANCEMENT] The README has been revamped to include section on how to install ciigo as program, how to running ciigo convert and serve, how to write content and view it live on browser, and how to deploy it. On the section "ciigo as library" we point the user the sample code at "internal/cmd/ciigo-example" instead of writing long code at the front. [BUG FIX] This release also fix Exclude option does not get processed when calling GoEmbed, or running "ciigo embed".
2025-01-07all: update README simplify section "ciigo as library"Shulhan
Instead of writing the code manually, show the where to look for example, which is at "internal/cmd/ciigo-example".
2025-01-07all: fix GoEmbed that does not excludes options from ConvertOptionsShulhan
2025-01-07all: move example for ciigo as library to internal/cmd/ciigo-exampleShulhan
While at it, update the example index by removing unnecessary external image, and update links to open in new tab/window.
2025-01-07all: update README for running ciigo as CLIShulhan
In the README we add list of ciigo features, describe how to install ciigo, reformat the Usage, add an example of running ciigo convert and serve, how to write content and view it live on browser, and how to deploy it using rsync.
2025-01-07file_markup: convert extension to lowercase on markupKind onlyShulhan
Converting extension to lowercase before trimming it may not remove the extension itself since the string has changes.
2025-01-07all: change the "serve-doc" and default address to prevent conflictsShulhan
Using port 8080 as the default address for "serve" is too common and may conflict with other services in user local environment. While at it, also change the "serve-doc" with other random ports to allow us test running "ciigo serve" and viewing doc at the same time.
2025-01-07all: auto convert markup when HTTP client request GET to HTML fileShulhan
In development mode, where [ServeOptions.IsDevelopment] is set to true or when running "ciigo serve", the ciigo HTTP server will check if the new markup file is newer than HTML file when user press refresh or reload on the browser. If its newer, it will convert the markup file and return the new content of HTML file.
2025-01-07all: run task "test" after "lint" and "build"Shulhan
Task for "lint" and "build" is much more faster than "test". So if we lint or build failed, we did not waste too much times waiting for all tests to pass. While at it, remove linter "revive" we will use the standard linters from Go tools itself.
2025-01-07all: ignore error when scanning for file markupsShulhan
When listing the file markups, if the node is symlink (either file or directory) and target its not exist, continue to the next node instead of returning error. The same is true for directory that cannot be opened, probably due to broken symlink or permission.
2025-01-07all: refactoring to use [watchfs/v2]Shulhan
The [watchfs/v2] bring new enhancements that watching only single file instead of all markup files for changes. This minimize number of goroutine calling os.Stat on each markup files being watched on directory.
2024-12-08go.mod: update all dependenciesShulhan
2024-10-06Release ciigo v0.14.0 (2024-10-06)v0.14.0Shulhan
=== Breaking changes * all: refactoring functions to accept non pointer struct option The function that accept struct XxxOptions should only received the copy of struct, not pointer. === New features * all: introduce new type Ciigo The Ciigo type provides customizable and reusable instance of ciigo for embedding, converting, and/or serving HTTP server. This type is introduced so one can add HTTP handler or endpoint along with serving the files. === Enhancements * all: set margin on sectlevel3, sectlevel4, sectlevel5 Using default margin (1.25rem) cause the TOC for level 3 until 5 have wide gap in between them.
2024-10-06go.mod: update all dependenciesShulhan
2024-10-06all: refactoring functions to accept non pointer struct optionShulhan
The function that accept struct XxxOptions should only received the copy of struct, not pointer.
2024-09-28all: introduce new type CiigoShulhan
The Ciigo type provides customizable and reusable instance of ciigo for embedding, converting, and/or serving HTTP server. This type is introduced so one can add HTTP handler or endpoint along with serving the files.
2024-09-11all: set margin on sectlevel3, sectlevel4, sectlevel5Shulhan
Using default margin (1.25rem) cause the TOC for level 3 until 5 have wide gap in between them.
2024-09-07Release ciigo v0.13.2 (2024-09-07)v0.13.2Shulhan
Update on asciidoctor-go bring new features and enhancements, * Support document attribute "leveloffset". 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/ * Use strict document header format. Previously, an empty line before Document Title cause the parser stop parsing the document header, now an empty lines are skipped. Also document attribute can be place anywhere, either before or after title, and in between attributes; now it can be only placed after revision or author or title.
2024-09-07all: replace licensing format to "REUSE.toml"Shulhan
Using ".reuse/dep5" has been deprecated since REUSE v3.2.
2024-09-07go.mod: update all dependenciesShulhan
2024-08-18go.mod: update asciidoctor-go to the tipShulhan
2024-08-04Release ciigo v0.13.1 (2024-08-04)v0.13.1Shulhan
=== Bug fixes * Fix "serve" not detecting new files:: If there is new files on the root of directory it will not detected automatically. This release now fix this issue. === Others * all: remove Limitations and update Links The asciidoc-go library now support scanning symlink inside Root directory. The Links sections merge the previous contents from old index.adoc. * all: update the CLI usage in the README There are three places for command usage: one in main Go doc, one in the program usage, and one in README. If we changes the flags we need to update three of them, and sometimes we forgot. To simplify, we remove the one in the Go doc main program.
2024-08-04all: update the CLI usage in the READMEShulhan
There are three places for command usage: one in main Go doc, one in the program usage, and one in README. If we changes the flags we need to update three of them, and sometimes we forgot. To simplify, we remove the one in the Go doc main program.
2024-08-04all: remove Limitations and update LinksShulhan
The asciidoc-go library now support scanning symlink inside Root directory. The Links sections merge the previous contents from old index.adoc.
2024-08-04go.mod: update module pakakeh.go to v0.56.0Shulhan
2024-07-27_doc: replace index.adoc with README.mdShulhan
In this way, we can view how repository README looks like and remove duplication.
2024-07-26all: update dependenciesShulhan
Update on git.sr.ht/~shulhan/pakakeh.go fixes the "serve" command where new files on the root of served directory not detected automatically.
2024-06-28go.mod: update all dependenciesShulhan
2024-05-12Release ciigo v0.13.0 (2024-05-12)v0.13.0Shulhan
=== New features * cmd/ciigo: add flag to set package and variable name for "embed" The flag "-package-name" can be used to changes the default package name inside the Go embed file. The flag "-var-name" can be used to changes the default memfs variable name inside the Go embed file. === Enhancements * all: fix HTML files always generated when HTMLTemplate is not set If the path to HTMLTemplate option is not set, GoEmbed should convert to HTML only if markup file is newer than HTML file or when HTML file not exist. * all: initialize memfs using New When memfs not initialized using New, the [memfs.MemFS.PathNodes] will be nil. This cause any Get on new file will return 404.
2024-05-12_AUR: update PKGBUILD for testing makepkg in localShulhan
2024-05-12all: add and fix SPDX header on adoc filesShulhan
Putting SPDX headers at the bottom cause the "reuse lint" detect the file have no copyright and license information.
2024-05-12all: set the test output for GoEmbed without modification timeShulhan
This is to make the go embed output consistent when this repository cloned for the first time, due the file modtime is newer on each "git clone".
2024-05-12_example: fix SPDX header on template fileShulhan
The comment for HTML should end with "-->" not "--!>". While at it, set embedded Go file store the file without modification time to make the output (cmd/ciigo-example/static.go) does not changes on new clone.
2024-05-12all: initialize memfs using NewShulhan
When memfs not initialized using New, the [memfs.MemFS.PathNodes] will be nil. This cause any Get on new file will return 404.
2024-05-10all: update module pakakeh.go to latest releaseShulhan
2024-04-11cmd/ciigo: add flag to set package and variable name for "embed"Shulhan
The flag "-package-name" can be used to changes the default package name inside the Go embed file. The flag "-var-name" can be used to changes the default memfs variable name inside the Go embed file.
2024-04-11all: fix HTML files always generated when HTMLTemplate is not setShulhan
If the path to HTMLTemplate option is not set, GoEmbed should convert to HTML only if markup file is newer than HTML file or when HTML file not exist.
2024-04-10cmd/ciigo: instantiate variable on switch casesShulhan
Instead of creating variables on top of switch, only declare them when needed.
2024-04-04Release ciigo v0.12.0 (2024-04-04)v0.12.0Shulhan
=== New features * all: add server option to automatically generate index HTML If the requested path is directory and no "index.html" file exist in that directory, ciigo server will render list of files as "index.html" automatically. === Chores * all: replace module "share" with "pakakeh.go" The "share" module has been moved to new repository with new name at "https://sr.ht/~shulhan/pakakeh.go".
2024-03-21all: add server option to automatically generate index HTMLShulhan
If the requested path is directory and no "index.html" file exist in that directory, ciigo server will render list of files as "index.html" automatically.
2024-03-15go.mod: update module "pakakeh.go" to the tipShulhan
2024-03-15go.mod: update module "pakakeh.go" to tipShulhan
2024-03-05go.mod: update asciidoctor-go and goldmark modulesShulhan
2024-03-05all: replace module "share" with "pakakeh.go"Shulhan
2023-12-14Release ciigo v0.11.0 (2023-12-14)v0.11.0Shulhan
=== Breaking changes * Field [ConvertOptions.HtmlTemplate] become [ConvertOptions.HTMLTemplate] * Method [Converter.SetHtmlTemplateFile] become [Converter.SetHTMLTemplateFile] * Method [Converter.ToHtmlFile] become [Converter.ToHTMLFile] === Bug fix * asciidoc: fix custom ID on the first section not applied correctly
2023-12-13go.mod: update asciidoctor-go to tipShulhan
The latest changes on asciidoctor-go replace deprecated package "lib/parser" with [strings.Parser].