App::DocKnot - Documentation and software release management
Perl 5.24 or later and the modules File::BaseDir, File::ShareDir, JSON, Perl6::Slurp, and Template (part of Template Toolkit), all of which are available from CPAN.
DocKnot is a system for documentation and software release management. Its functionality is provided by various submodules, often invoked via the docknot command-line program. For more information, see docknot(1).
This module only provides helper functions to load configuration and metadata that are used by its various submodules.
- appdata_path(PATH[, ...])
Return the path of a file from the application data. The file is specified as one or more path components.
These data files are installed with App::DocKnot, but each file can be overridden by the user via files in $HOME/.config/docknot or /etc/xdg/docknot (or whatever $XDG_CONFIG_DIRS is set to). Raises a text exception if the desired file could not be located.
- load_appdata_json(PATH[, ...])
Locate an application data file using the same algorithm as appdata_path(), interpret it as JSON, and returns the resulting decoded contents. This uses the relaxed JSON parsing mode, so comments and commas after data elements are supported. The path is specified as one or more path components.
Raises a slurp or JSON exception on failure to load or decode the data file.
Russ Allbery <firstname.lastname@example.org>
Copyright 2013-2019 Russ Allbery <email@example.com>
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.
This module is part of the App-DocKnot distribution. The current version of App::DocKnot is available from CPAN, or directly from its web site at https://www.eyrie.org/~eagle/software/docknot/.