From be976cf37aff634fc9668e15e7a0b1adacf89595 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= <essen@ninenines.eu>
Date: Tue, 29 Dec 2015 00:28:30 +0100
Subject: Generate proper filenames in the docs' HTML output

This will allow to provide permanent URLs to the documentation.
---
 doc/src/guide/book.asciidoc | 6 ++++++
 1 file changed, 6 insertions(+)

(limited to 'doc/src/guide/book.asciidoc')

diff --git a/doc/src/guide/book.asciidoc b/doc/src/guide/book.asciidoc
index 316df7f..d5d2dfc 100644
--- a/doc/src/guide/book.asciidoc
+++ b/doc/src/guide/book.asciidoc
@@ -1,4 +1,5 @@
 // a2x: --dblatex-opts "-P latex.output.revhistory=0 -P doc.publisher.show=0 -P index.numbered=0"
+// a2x: --xsltproc-opts "--stringparam use.id.as.filename 1"
 // a2x: -d book --attribute tabsize=4
 
 = Erlang.mk User Guide
@@ -14,6 +15,7 @@ include::updating.asciidoc[Updating Erlang.mk]
 
 include::limitations.asciidoc[Limitations]
 
+[[code]]
 = Code
 
 include::app.asciidoc[Building]
@@ -28,12 +30,14 @@ include::escripts.asciidoc[Escripts]
 
 include::compat.asciidoc[Compatibility with other build tools]
 
+[[docs]]
 = Documentation
 
 include::asciidoc.asciidoc[Asciidoc documentation]
 
 include::edoc.asciidoc[EDoc comments]
 
+[[tests]]
 = Tests
 
 include::shell.asciidoc[Erlang shell]
@@ -52,10 +56,12 @@ include::dialyzer.asciidoc[Dialyzer]
 
 include::xref.asciidoc[Xref]
 
+[[plugins]]
 = Third-party plugins
 
 include::external_plugins.asciidoc[External plugins]
 
+[[about]]
 = About Erlang.mk
 
 include::why.asciidoc[Why erlang.mk?]
-- 
cgit v1.2.3

