Customized asciidoc renderer with extra features based on libasciidoc. Created for personal use.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Arsen Musayelyan 55ae18619c Fix issue where cancelling open deletes content from editor 5 months ago
cmd Fix issue where cancelling open deletes content from editor 5 months ago
.gitignore Initial Commit 5 months ago
LICENSE Initial commit 5 months ago
README.md Update README.md 5 months ago
adoc.go Improve text formatting and split css to separate file 5 months ago
go.mod Clean up code, add word wrap on preview div, and open links in default apps 5 months ago
go.sum Clean up code, add word wrap on preview div, and open links in default apps 5 months ago
macros.go Initial Commit 5 months ago
style.css Add more text formatting to css 5 months ago
style.go Improve text formatting and split css to separate file 5 months ago
tmplFuncs.go Improve text formatting and split css to separate file 5 months ago

README.md

adoc

Customized asciidoc renderer with extra features based on libasciidoc. Created for personal use.


Building

adoc comes with two commands cmd/adoc and cmd/adoclive. cmd/adoc is a command-line tool that takes asciidoc input from Stdin and outputs HTML to Stdout. cmd/adoclive is an asciidoc editor I put together in a few hours that has a live preview rendered using adoc.

To build any of these, go must be installed.

To build cmd/adoc, run

go build ./cmd/adoc

To build cmd/adoclive, run

go build ./cmd/adoclive

Installation (Linux)

To install cmd/adoc, run

sudo install -Dm755 ./adoc /usr/bin/adoc

To install cmd/adoclive, run

sudo install -Dm755 ./adoclive /usr/bin/adoclive
sudo cp cmd/adoclive/adoclive.desktop /usr/share/applications

This will install both the adoclive command, and the desktop file for the system menu.

Customization

adoc uses go:embed to add a file called style.css to the program when building. Before building one of the commands, style.css can be edited to change various aspects of the formatting.