diff tasks/task_generate_doc.py @ 22:5fd933e238bb

massive refactoring from camelCase -> snake_case. See backend commit log for more details
author Goffi <goffi@goffi.org>
date Mon, 22 May 2023 09:11:54 +0200
parents a24d362796be
children e4002775d750
line wrap: on
line diff
--- a/tasks/task_generate_doc.py	Tue Nov 30 17:39:46 2021 +0100
+++ b/tasks/task_generate_doc.py	Mon May 22 09:11:54 2023 +0200
@@ -17,11 +17,11 @@
     def prepare(self):
         to_watch = set()
         # root documentation
-        self.doc_path = self.getConfig("doc_path")
+        self.doc_path = self.config_get("doc_path")
         if self.doc_path is not None:
             to_watch.add(self.doc_path)
         # sub docs will be generated before the root documentation
-        self.sub_docs = self.getConfig("sub_docs_dict", value_type="path")
+        self.sub_docs = self.config_get("sub_docs_dict", value_type="path")
         if self.sub_docs is not None:
             for d in list(self.sub_docs.values()):
                 to_watch.add(d)
@@ -44,7 +44,7 @@
 
         # we first generate the sub documentations
         for name, sub_doc_path in list(self.sub_docs.items()):
-            sub_dir = regex.pathEscape(name or '')
+            sub_dir = regex.path_escape(name or '')
             build_path = os.path.join(self.build_path, 'doc', sub_dir)
             await self.runCommand(
                 sys.executable, "-m", "sphinx", sub_doc_path, build_path,