From 0a48ad9f4a9382627f270065c6f756351474b7a8 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sat, 26 Oct 2013 18:33:28 +0200 Subject: o Better links in HTML docs. --- Makefile | 4 ++++ docs/Makefile | 4 ++-- docs/app-cat-conf.txt | 6 +++--- docs/app.txt | 12 +++++------- docs/asciidoc.conf | 20 ++++++++++++++++++++ 5 files changed, 34 insertions(+), 12 deletions(-) create mode 100644 docs/asciidoc.conf diff --git a/Makefile b/Makefile index c61e002..49a1896 100644 --- a/Makefile +++ b/Makefile @@ -17,6 +17,10 @@ show-tests: test: $(TESTS) .PHONY: test +clean: + @make -C docs clean +.PHONY: clean + docs: @make -C docs .PHONY: docs diff --git a/docs/Makefile b/docs/Makefile index 8b8cf8b..2a62f18 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -5,11 +5,11 @@ all: $(HTML) $(MAN) %.html: %.txt @echo asciidoc $< - @asciidoc -a data-uri -a icons -a toc -a max-width=55em $< + @asciidoc -f asciidoc.conf --backend=html5 $< %.1: %.txt @echo a2x $< - @a2x --doctype manpage --format manpage $< + @a2x --format manpage $< clean: rm -rf $(wildcard *.html) $(wildcard *.1) diff --git a/docs/app-cat-conf.txt b/docs/app-cat-conf.txt index 0411390..ec2c4f9 100644 --- a/docs/app-cat-conf.txt +++ b/docs/app-cat-conf.txt @@ -39,11 +39,11 @@ LOCATIONS AND DEFAULT FILES 'app-cat-conf' will by default look for configuration files in three places: -. $APPSH_HOME/lib/default-config +* '$APPSH_HOME/lib/default-config' -. $HOME/.appconfig +* '$HOME/.appconfig' -. .app/config +* '.app/config' SEE ALSO -------- diff --git a/docs/app.txt b/docs/app.txt index 49ed59e..fb77174 100644 --- a/docs/app.txt +++ b/docs/app.txt @@ -5,7 +5,6 @@ NAME ---- app - your favorite application manager - SYNOPSIS -------- [verse] @@ -83,17 +82,16 @@ Configuration properties: TODOs ----- -* Consider renaming "upgrade" to "refresh". Upgrade is an overloaded - word, in particular since it might mean to download a catalog of - applications instead of actually upgrading it. I'm always confused - if I should use "upgrade" or "update". +* Consider renaming "upgrade" to "refresh" or "sync". Upgrade is an + overloaded word, in particular since it might mean to download a + catalog of applications instead of actually upgrading it. I'm always + confused if I should use "upgrade" or "update". * Find a way to check if an application is running. SEE ALSO -------- -* app-conf -* app-cat-conf +linkman:app-conf[1] // vim: set ft=asciidoc: diff --git a/docs/asciidoc.conf b/docs/asciidoc.conf new file mode 100644 index 0000000..8622db4 --- /dev/null +++ b/docs/asciidoc.conf @@ -0,0 +1,20 @@ +[macros] +(?su)[\\]?(?Plinkman):(?P\S*?)\[(?P.*?)\]= + +ifdef::backend-docbook[] +[linkman-inlinemacro] +{0%{target}} +{0#} +{0#{target}{0}} +{0#} +endif::backend-docbook[] + +ifdef::backend-html5[] + +#[attributes] +#relative-ext=.html + +[linkman-inlinemacro] +{target}{0?({0})} + +endif::backend-html5[] -- cgit v1.2.3