From 36390f838eea6a9a64820e8dbf1231a39c42950e Mon Sep 17 00:00:00 2001 From: Axel Cocat Date: Sun, 7 May 2023 14:50:00 +0200 Subject: [PATCH] fix(docs): ignore DBQueryAsync --- src/LuaEngine/GlobalMethods.h | 3 +++ src/LuaEngine/docs/ElunaDoc/parser.py | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/LuaEngine/GlobalMethods.h b/src/LuaEngine/GlobalMethods.h index 99d07ee..677dd60 100644 --- a/src/LuaEngine/GlobalMethods.h +++ b/src/LuaEngine/GlobalMethods.h @@ -1273,6 +1273,9 @@ namespace LuaGlobalFunctions } template + /** + * {docs_ignore} + */ int DBQueryAsync(lua_State* L, DatabaseWorkerPool& db) { const char* query = Eluna::CHECKVAL(L, 1); diff --git a/src/LuaEngine/docs/ElunaDoc/parser.py b/src/LuaEngine/docs/ElunaDoc/parser.py index 471c87f..4df3da4 100644 --- a/src/LuaEngine/docs/ElunaDoc/parser.py +++ b/src/LuaEngine/docs/ElunaDoc/parser.py @@ -246,7 +246,8 @@ class ClassParser(object): # Format the method name into each prototype. self.prototypes = [proto.format(self.method_name) for proto in self.prototypes] - self.methods.append(MethodDoc(self.method_name, self.description, self.prototypes, self.params, self.returned)) + if not "{docs_ignore}" in self.description: + self.methods.append(MethodDoc(self.method_name, self.description, self.prototypes, self.params, self.returned)) # Table of which handler is used to handle each regular expressions. regex_handlers = {