aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/buildfile20
-rwxr-xr-xdoc/cli.sh4
2 files changed, 22 insertions, 2 deletions
diff --git a/doc/buildfile b/doc/buildfile
new file mode 100644
index 0000000..3e8a6e7
--- /dev/null
+++ b/doc/buildfile
@@ -0,0 +1,20 @@
+# file : doc/buildfile
+# copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
+# license : MIT; see accompanying LICENSE file
+
+cmds = \
+bdep-help \
+bdep-init \
+bdep-config
+
+define css: file
+css{*}: extension = css
+
+define xhtml: doc
+xhtml{*}: extension = xhtml
+
+./: {man1 xhtml}{bdep bdep-common-options $cmds} \
+ css{common pre-box man} \
+ file{man-*}
+
+./: file{cli.sh}
diff --git a/doc/cli.sh b/doc/cli.sh
index 2913b59..0cca076 100755
--- a/doc/cli.sh
+++ b/doc/cli.sh
@@ -49,12 +49,12 @@ man-prologue.1 --man-epilogue-file man-epilogue.1 --man-suffix .1 \
../bdep/$n.cli
}
-o="--output-prefix bdep- --class-doc bdep::common_options=short"
+o="--suppress-undocumented --output-prefix bdep- --class-doc bdep::common_options=short"
# A few special cases.
#
compile "common" $o --output-suffix "-options" --class-doc bdep::common_options=long
-compile "bdep" $o --output-prefix "" --suppress-undocumented --class-doc bdep::commands=short --class-doc bdep::topics=short
+compile "bdep" $o --output-prefix "" --class-doc bdep::commands=short --class-doc bdep::topics=short
pages="config help init"