in build_docs.pl [1072:1137]
sub usage {
#===================================
say <<USAGE;
Build local docs:
build_docs --doc path/to/index.asciidoc [opts]
Opts:
--chunk 1 Also chunk sections into separate files
--alternatives <source_lang>:<alternative_lang>:<dir>
Examples in alternative languages.
--lang Defaults to 'en'
--lenient Ignore linking errors
--out dest/dir/ Defaults to ./html_docs.
--resource Path to image dir - may be repeated
--respect_edit_url_overrides
Respects `:edit_url:` overrides in the book.
--single Generate a single HTML page, instead of
a chunking into a file per chapter
--suppress_migration_warnings
Suppress warnings about Asciidoctor migration
issues. Use this when building "old" branches.
--toc Include a TOC at the beginning of the page.
--private Indicate that the github repo is private.
WARNING: Anything in the `out` dir will be deleted!
Build docs from all repos in conf.yaml:
build_docs --all [opts]
Opts:
--keep_hash Build docs from the same commit hash as last time
--linkcheckonly Skips the documentation builds. Checks links only.
--push Commit the updated docs and push to origin
--announce_preview <host>
Causes the build to log a line about where to find
a preview of the build if anything is pushed.
--rebuild Rebuild all branches of every book regardless of
what has changed
--reference Directory of `--mirror` clones to use as a
local cache
--repos_cache Directory to which working repositories are cloned.
Defaults to `<script_dir>/.repos`.
--skiplinkcheck Omit the step that checks for broken links
--warnlinkcheck Checks for broken links but does not fail if they exist
--sub_dir Use a directory as a branch of some repo
(eg --sub_dir elasticsearch:master:~/Code/elasticsearch)
--target_repo Repository to which to commit docs
--target_branch Branch to which to commit docs
--user Specify which GitHub user to use, if not your own
General Opts:
--asciidoctor Emit a happy message.
--conf <ymlfile> Use your own configuration file, defaults to the
bundled conf.yaml
--direct_html Emit a happy message.
--in_standard_docker
Specified by build_docs when running in
its container
--open Open the docs in a browser once built.
--procs Number of processes to run in parallel, defaults
to 3
--verbose Output more logs
USAGE
}