aboutsummaryrefslogtreecommitdiff
path: root/cmd
AgeCommit message (Collapse)Author
2020-10-07all: update to libasciidoc v0.5.1Shulhan
The latest release of libasciidoc changes the API to convert adoc content to HTML. Instead of one call, we need to call ParseDocument first to get the document metadata (Attributes) and then call Convert() to convert it to HTML.
2020-05-07go.mod: update with latest share moduleShulhan
2020-05-07all: rename the "content" directory to "_example"Shulhan
While at it, also move the templates into _example and all assets into the same directory.
2020-05-01all: simplify serving content using function ServeShulhan
Previously to serve the generated content we call two fucntions: NewServer() and Server.Start(). This changes unexported the internal server, and expose only the Serve() function with the same parameter as NewServer().
2020-05-01all: move the file to generate static assets to internal/cmd/generateShulhan
2020-05-01all: embed the HTML template and the stylesheetShulhan
The parameter for template either in Convert or Generate functions or in CLI now become pure optional, not default to "templates/html.tmpl" anymore. This will minimize steps for user to setup or run the library or program.
2020-03-30ciigo-example: update generated static.go fileShulhan
2020-02-14all: fix and suppress linter warningsShulhan
2020-02-14cmd/ciigo: remove redundant help flagsShulhan
2019-12-26go.mod: update required Go to 1.13 and upgrade some dependenciesShulhan
2019-09-27all: include the template file in generated Go codeShulhan
The internal search template require the HTML generator to be initialized with HTML template that provide when running "go generate". Without the template, the internal search function will not work.
2019-09-25content: fix and update documentationShulhan
2019-09-25all: implement search functionalityShulhan
The search function is available through internal API "/_internal/search" with single parameter "q" that contains one or more words to search.
2019-08-14filehtml: unpack the author and date from document metadataShulhan
2019-08-14cmd/ciigo: a CLI to convert, generate, and serve markup filesShulhan
Here are the usage of CLI, ciigo [-template <file>] convert <dir> Scan the "dir" recursively to find markup files (.adoc or .md) and convert them into HTML files. The template "file" is optional, default to "templates/html.tmpl" in the current directory. ciigo [-template <file>] [-out <file>] generate <dir> Convert all markup files inside directory "dir" recursively and then embed them into ".go" source file. The output file is optional, default to "ciigo_static.go" in current directory. ciigo [-template <file>] [-address <ip:port>] serve <dir> Serve all files inside directory "dir" using HTTP server, watch changes on markup files and convert them to HTML files automatically. If the address is not set, its default to ":8080".
2019-08-06cmd/ciigo: move to ciigo-exampleShulhan
The "cmd/ciigo-example" will be used to test and give an example of how to build a binary that contains static, generated .go source file.
2019-08-05server: add parameter to change the root directoryShulhan
Previously the default root directory to be served by ciigo is "content" directory inside the top directory. This change allow ciigo to serve any directory pointed by first parameter in NewServer(), and if its empty default to "content".
2019-04-19ciigo: program to write static web server using asciidoc markup languageShulhan
This first commit provide the following features, * automatically regenerate asciidoc files on development, * generate static and HTML files into Go source code, and * running binary with embedded contents