From 0c22c5fa9691c67d4195c95f18c6878da6a38239 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 6 Jan 2024 12:59:12 +0100 Subject: [PATCH] Generate doc files into an out folder. --- .gitignore | 2 +- tools/doc/main.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index ee86e00..510f5df 100644 --- a/.gitignore +++ b/.gitignore @@ -8,7 +8,7 @@ obj/ tools/merger/out/ -tools/doc/index.gen.md.html +tools/doc/out/ tools/doc/sfw.h tools/doc/sfw.cpp diff --git a/tools/doc/main.cpp b/tools/doc/main.cpp index 8b4259f..665d1ec 100644 --- a/tools/doc/main.cpp +++ b/tools/doc/main.cpp @@ -468,12 +468,14 @@ void process_file(const String &path) { d = d.replace("$STRUCTS$", generate_section_class_list(structs)); 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) { SFWCore::setup(); + //todo create folder + List args; for (int i = 1; i < argc; ++i) {