Polish & fix editor help cache generation

- Isolated the generation of extensions's docs. They're now not cached and refreshed as needed.
- Removed superfluous sorting of the class list.
- Removed some superfluous/unused elements.
- Renamed some items for clarity.
This commit is contained in:
Pedro J. Estébanez 2023-10-31 18:27:17 +01:00
parent 93cdacbb0a
commit a1d8fc1af9
7 changed files with 71 additions and 49 deletions

View file

@ -2767,7 +2767,7 @@ bool Main::start() {
#ifdef TOOLS_ENABLED
String doc_tool_path;
bool doc_base = true;
BitField<DocTools::GenerateFlags> gen_flags;
String _export_preset;
bool export_debug = false;
bool export_pack_only = false;
@ -2792,7 +2792,7 @@ bool Main::start() {
check_only = true;
#ifdef TOOLS_ENABLED
} else if (args[i] == "--no-docbase") {
doc_base = false;
gen_flags.set_flag(DocTools::GENERATE_FLAG_SKIP_BASIC_TYPES);
#ifndef DISABLE_DEPRECATED
} else if (args[i] == "--convert-3to4") {
converting_project = true;
@ -2903,7 +2903,7 @@ bool Main::start() {
Error err;
DocTools doc;
doc.generate(doc_base);
doc.generate(gen_flags);
DocTools docsrc;
HashMap<String, String> doc_data_classes;