aboutsummaryrefslogtreecommitdiff
path: root/Makefile
AgeCommit message (Collapse)Author
2025-02-13testdata: redact the "Last updated" time in test-parser HTML filesShulhan
Every time we execute "make test-parser", the generated HTML files will changes the "Last updated xxx" (where xxx is the time its executed). This changes prevent this unnecessary diff in the future.
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.
2025-02-01make: replace external linters with internal command gocheckShulhan
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".
2024-10-15make: serve doc on non-common portShulhan
Using 8080 is too common and has cause conflict with some service on my development laptop.
2024-09-07Makefile: replace golangci-lint with "go vet"Shulhan
This is the second we remove golangci-lint. Previously, we replace it with revive, now we replace it with go internal tools "go vet". The problem is the same, golangci-lint does not works when compiled or using gotip. Also, on VM with 8GB memory, it will crash due to OOM.
2024-03-05all: comply with linter recommendationsShulhan
2023-12-09all: replace linter golangci-lint with revive and shadowShulhan
The golangci-lint does not output any results anymore Either we are getting good at writing Go or the linter itself is become less good. We also have seen that the latest golangci-lint is failed to build with Go tip, a simple "make" on the golangci-lint never success in my experiences. This changes fix all the output reported by the revive and shadow.
2022-12-16all: fix the orders of generated HTML metaShulhan
The meta tags from original asciidoctor are ordered as viewport, generator, description, keywords, and then author. While at it remove empty style tag due to when testing we use empty.css not "stylesheet!".
2022-12-14all: run test before lintShulhan
This is to make sure that the test pass, since the linting is optional.
2022-09-05all: update the path on serve-doc taskShulhan
Since the all documentation files has been moved to _doc, the serve-doc task should watch and serve directory _doc too.
2022-07-24all: rename the HTML output for test-parserShulhan
The HTML output file from asciidoctor is renamed to test.exp.html, and HTML output file from this library is renamed to test.got.html. The test.html in testdata is generated from ciigo, when running "make serve-doc".
2022-07-16all: reformat the README back to asciidocShulhan
This change use file name "README" for serving it in sr.ht, since the site does not support rendering asciidoc. The index.adoc is provided as symlink to README. While at it, add list of BUGS and ENHANCEMENTS under TODO sections; link to CHANGELOG, and other files.
2022-07-16all: run fieldalignment in lint taskShulhan
2022-02-21all: relicense the asciidoctor-go under GPL 3.0 or laterShulhan
Signed-off-by: Shulhan <ms@kilabit.info>
2020-12-24Makefile: add task to run testShulhan
2020-11-14all: fix linter warningsShulhan
Remove unused constants and functions, replace Write() with fmt.Fprint(), and other fixes.
2020-10-15asciidoctor-go: asciidoctor markup parser for GoShulhan
This is the first commit that can parser whole document line by line and provide convertion to HTML. Things that does not working: inline style, table, passthrough, dynamic attributes, include.