summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorRuss Allbery <rra@cpan.org>2021-12-19 20:37:03 -0800
committerRuss Allbery <rra@cpan.org>2021-12-19 20:37:34 -0800
commitd26471ced74e5017f77bdfce1db876389137618a (patch)
tree589ebb32b90a56dd7c0e50c4803549668dfcf6d8 /t
parent3f8cd16b8469c577c582efcc78861b37a9484a50 (diff)
Add load_yaml_file to App::DocKnot
Add load_yaml_file method to App::DocKnot, which loads a YAML file with schema checking.
Diffstat (limited to 't')
-rw-r--r--t/data/spin/output/software/docknot/api/app-docknot.html12
1 files changed, 10 insertions, 2 deletions
diff --git a/t/data/spin/output/software/docknot/api/app-docknot.html b/t/data/spin/output/software/docknot/api/app-docknot.html
index 5076e73..ea3d829 100644
--- a/t/data/spin/output/software/docknot/api/app-docknot.html
+++ b/t/data/spin/output/software/docknot/api/app-docknot.html
@@ -45,8 +45,8 @@
<h2 id="S1"><a name="S1">REQUIREMENTS</a></h2>
<p>
-Perl 5.24 or later and the modules File::BaseDir and File::ShareDir, both of
-which are available from CPAN.
+Perl 5.24 or later and the modules File::BaseDir, File::ShareDir, Kwalify, and
+YAML::XS, all of which are available from CPAN.
</p>
<h2 id="S2"><a name="S2">DESCRIPTION</a></h2>
@@ -77,6 +77,14 @@ overridden by the user via files in <i class="file">$HOME/.config/docknot</i> or
<i class="file">/etc/xdg/docknot</i> (or whatever $XDG_CONFIG_HOME and $XDG_CONFIG_DIRS are set
to). Raises a text exception if the desired file could not be located.
</p></dd>
+
+<dt>load_yaml_file(PATH, SCHEMA)</dt>
+<dd><p>
+Load a YAML file with schema checking. PATH is the path to the file.
+SCHEMA is the name of the schema, which will be loaded from the <i class="file">schema</i>
+directory using appdata_path(). See the description of that method for the
+paths that are searched.
+</p></dd>
</dl>
<h2 id="S4"><a name="S4">AUTHOR</a></h2>