Generate doc files into an out folder.

This commit is contained in:
Relintai 2024-01-06 12:59:12 +01:00
parent 0a8ad4f33a
commit 0c22c5fa96
2 changed files with 4 additions and 2 deletions

2
.gitignore vendored
View File

@ -8,7 +8,7 @@ obj/
tools/merger/out/ tools/merger/out/
tools/doc/index.gen.md.html tools/doc/out/
tools/doc/sfw.h tools/doc/sfw.h
tools/doc/sfw.cpp tools/doc/sfw.cpp

View File

@ -468,12 +468,14 @@ void process_file(const String &path) {
d = d.replace("$STRUCTS$", generate_section_class_list(structs)); d = d.replace("$STRUCTS$", generate_section_class_list(structs));
d = d.replace("$CLASSES$", generate_section_class_list(classes)); d = d.replace("$CLASSES$", generate_section_class_list(classes));
f.write_file("index.gen.md.html", d); f.write_file("out/index_remaining.gen.md.html", d);
} }
int main(int argc, char **argv) { int main(int argc, char **argv) {
SFWCore::setup(); SFWCore::setup();
//todo create folder
List<String> args; List<String> args;
for (int i = 1; i < argc; ++i) { for (int i = 1; i < argc; ++i) {