DOKK / manpages / debian 12 / docknot / docknot.1p.en
DOCKNOT(1p) User Contributed Perl Documentation DOCKNOT(1p)

docknot - Static web site and documentation generator

docknot -h

docknot dist [-d distdir] [-m metadata] [-p pgp-key]

docknot generate [-m metadata] [-w width] template [output]

docknot generate-all [-m metadata] [-w width]

docknot release [-a archivedir] [-d distdir] [-m metadata]

docknot spin [-d] [-e pattern ...] [-s url] source output

docknot spin-rss [-b base] file

docknot spin-thread [-f] [-s url] [source [output]]

docknot update [-m metadata] [-o output]

docknot update-spin [path]

docknot is a static web site generator with special support for managing the documentation and releases of software packages. Its actions are organized into subcommands. The supported subcommands are:

Build, test, and generate a distribution tarball of the package in the current directory. The exact commands used is determined by the package metadata (see App::DocKnot::Config for format documentation).

After the distribution is built, it will be checked against the source tree and docknot will report an error and exit with a non-zero status if there are any expected files missing.

Use metadata files and templates to generate human-readable documentation files for a package. See App::DocKnot::Config for documentation on the metadata format, configuration files, and paths.
Like "generate", but generates all of the package documentation for which default output files are configured. This is a quick short-cut to generating all documentation that's shipped with the package.
Copy a distribution tarball into a release area, archiving old versions, and optionally updating configuration for "spin".
Spin a tree of files written in the macro language thread into an HTML web site. See App::DocKnot::Spin for documentation on the input format and details of the site generation.
Process a single .rss file with App::DocKnot::Spin::RSS (normally done as part of using "spin" to process a tree of files). See that module's documentation for more details.
Like "spin", but convert a single file written in thread to HTML.
Update the DocKnot package configuration from an older format.
Update an input tree for "spin" to the latest expectations. This will, for example, convert old-style *.rpod pointer files to new-style *.spin pointer files.

Each docknot subcommand takes its own options. Many also read global configuration options from DocKnot's configuration. See "Global Configuration" in App::DocKnot::Config for more details.

Print out usage information and exit.

The directory into which to put the generated distribution tarball. This is also used as a working directory for a temporary copy of the package source. This should point to a trusted directory, not one where an attacker could have written files; see "make_distribution()" in App::DocKnot::Dist for more information. Default: The "destdir" option in the global DocKnot configuration file. This option is required if there is no configuration file or if this option is not set.
The path to the metadata file for the package whose distribution tarball is being generated. Default: docs/docknot.yaml relative to the current directory (which is the recommended metadata path for a project).
The name of the PGP key to use to sign the generated distribution tarballs. The key can be named in any way that the -u option of GnuPG understands. The generated signature will be armored and stored in a file named by appending ".asc" to the name of the tarball. Default: The "pgp_key" option in the global DocKnot configuration file.

The path to the metadata file for the package whose documentation is being generated. Default: docs/docknot.yaml relative to the current directory (which is the recommended metadata path for a project).
Column width at which the generated output is wrapped. Default: 74.
The template to use when generating the output file.
The path to the output file to generate. If this argument isn't given, the output file will be chosen based on the template as follows:

    readme     ->  README
    readme-md  ->  README.md
    

If the template isn't listed above, this argument is required.

The path to the metadata file for the package whose documentation is being generated. Default: docs/docknot.yaml relative to the current directory (which is the recommended metadata path for a project).
Column width at which the generated output is wrapped. Default: 74.

The release area into which to put the distribution tarball. The current distribution will be put in a subdirectory named after the "distribution.section" key in the package configuration. Older versions will be moved to the ARCHIVE subdirectory of archivedir. Default: The "archivedir" option in the global DocKnot configuration file. This option is required if there is no configuration file or if this option is not set.
The directory from which to get the new distribution tarball, normally generated by "dist". The latest version in this directory will be used. Default: The "destdir" option in the global DocKnot configuration file. This option is required if there is no configuration file or if this option is not set.
The path to the metadata file for the package whose distribution tarball is being generated. Default: docs/docknot.yaml relative to the current directory (which is the recommended metadata path for a project).

After populating the output tree with the results of converting or copying all the files in the source tree, delete all files and directories in the output tree that do not have a corresponding file in the source tree.
Exclude files matching the given regular expression pattern from being converted. The pattern is matched only against the file name, not its full path. This flag may be given multiple times.
The base URL for style sheets. All style sheets specified in "\heading" commands will be considered to be relative to this URL and this URL will be prepended to them. If this option is not given, the name of the style sheet will be used verbatim as its URL, except with ".css" appended. This will also be used as the base URL to style sheets for the output of cl2xhtml, cvs2xhtml, and faq2html.
The input tree of files to spin into a web site. This must be a directory.
The output location to write the generated web site. If this directory does not exist, it will be created. If it exists, it must be a directory.

By default, output files are relative to the current working directory. If this option is given, output files will be relative to base instead. Output files specified as absolute paths will not be affected.
The .rss file to process. See App::DocKnot::Spin::RSS for the details of the file format.

The base URL for style sheets. A style sheet specified in a "\heading" command will be considered to be relative to this URL and this URL will be prepended to it. If this option is not given, the name of the style sheet will be used verbatim as its URL, except with ".css" appended.
The input file. If not given, standard input will be used.
The output file. If not given, standard output will be used.

The path to the JSON metadata files for the package that should be converted to the new YAML format. This should be a directory containing all the package metadata files required by App::DocKnot. Default: docs/metadata relative to the current directory.
The output file for the updated package configuration. Default: docs/docknot.yaml relative to the current directory (which is the recommended metadata path for a project).

The path to the spin input tree to update. If not given, defaults to the current directory.

If docknot fails with errors, see the underlying module for that subcommand for information about what those errors might mean. Internally, it can also produce the following diagnostics:

(F) The output file specified with -o could not be written to.
(F) One of the required command-line options was not given.
(F) No subcommand was given after docknot on the command line.
(F) The given subcommand was not recognized.

In addition, other Getopt::Long error messages may result from invalid command-line options.

Russ Allbery <rra@cpan.org>

Copyright 2016, 2018-2022 Russ Allbery <rra@cpan.org>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

App::DocKnot::Config, App::DocKnot::Dist, App::DocKnot::Generate, App::DocKnot::Spin, App::DocKnot::Spin::RSS, App::DocKnot::Spin::Thread, App::DocKnot::Update

This program is part of the App-DocKnot distribution. The current version of DocKnot is available from CPAN, or directly from its web site at <https://www.eyrie.org/~eagle/software/docknot/>.

2022-01-20 perl v5.32.1