Skip to content

Commit

Permalink
update documentation generator
Browse files Browse the repository at this point in the history
  • Loading branch information
PredatorCZ committed Jan 13, 2024
1 parent 337dae1 commit fa33867
Showing 1 changed file with 35 additions and 2 deletions.
37 changes: 35 additions & 2 deletions src/app/context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ REFLECT(CLASS(MainAppConfFriend),
MEMBERNAME(texelSettings, "texel-settings"))

REFLECT(CLASS(CLISettings),
MEMBER(out,
ReflDesc{"Output folder for processed files", "FOLDER"}))
MEMBER(out, ReflDesc{"Output folder for processed files", "FOLDER"}))

REFLECT(
CLASS(ExtractConf),
Expand Down Expand Up @@ -550,6 +549,40 @@ void APPContext::GetMarkdownDoc(std::ostream &out, pugi::xml_node node) const {
<< "\n\n"
<< description << "\n\n";

if (info->filters.size() > 0) {
if (info->batchControlFilters.size() > 0) {
out << "NOTE: The following file patterns apply to `batch.json` which is "
"described "
"[HERE](https://github.com/PredatorCZ/Spike/wiki/"
"Spike---Batching)\n\n";

out << "### Main file patterns: ";

for (auto &filter : info->batchControlFilters) {
out << '`' << filter << "`, ";
}

out.seekp(size_t(out.tellp()) - 2);
out << "\n\n### Secondary file patterns: ";

for (auto &filter : info->filters) {
out << '`' << filter << "`, ";
}

out.seekp(size_t(out.tellp()) - 2);
} else {
out << "### Input file patterns: ";

for (auto &filter : info->filters) {
out << '`' << filter << "`, ";
}

out.seekp(size_t(out.tellp()) - 2);
}

out << "\n\n";
}

if (!info->settings) {
return;
}
Expand Down

0 comments on commit fa33867

Please sign in to comment.