@caddis/cli 0.4.59 → 0.4.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/antigravity-plugin/plugin.json +1 -1
- package/bundles/antigravity-plugin/scripts/caddis_roadmap.py +4 -1
- package/bundles/antigravity-plugin/scripts/caddis_roadmap_page.py +356 -109
- package/bundles/antigravity-plugin/scripts/roadmap_assets/OFL-JetBrainsMono.txt +93 -0
- package/bundles/antigravity-plugin/scripts/roadmap_assets/OFL-MapleMono.txt +93 -0
- package/bundles/antigravity-plugin/scripts/roadmap_assets/fonts.css +5 -0
- package/bundles/manifest.json +2 -2
- package/package.json +1 -1
|
@@ -103,6 +103,9 @@ except ModuleNotFoundError as exc:
|
|
|
103
103
|
_NO_WINDOW = 0x08000000 if os.name == "nt" else 0
|
|
104
104
|
|
|
105
105
|
SCRIPTS_DIR = Path(__file__).resolve().parent
|
|
106
|
+
# This module object, taken while it loads. `render` hands it to the page builder. A lookup by name at call time
|
|
107
|
+
# (`sys.modules[__name__]`) can return a different copy when the file was loaded twice in one process.
|
|
108
|
+
_THIS_MODULE = sys.modules[__name__]
|
|
106
109
|
STATUSES = ("todo", "in-progress", "code-done/data-pending", "done", "not-needed")
|
|
107
110
|
FINISHED = ("done", "not-needed")
|
|
108
111
|
OPEN = ("todo", "in-progress")
|
|
@@ -2292,7 +2295,7 @@ def _render(root: Path, args: argparse.Namespace) -> int:
|
|
|
2292
2295
|
for slug in slugs: # --all: one bad roadmap must not stop the others
|
|
2293
2296
|
try:
|
|
2294
2297
|
path = caddis_roadmap_page.write_page(root, slug, Path(args.out) if args.out else None,
|
|
2295
|
-
|
|
2298
|
+
_THIS_MODULE)
|
|
2296
2299
|
if path is None: # a newer caddis owns this page: kept, and neither written nor failed
|
|
2297
2300
|
continue
|
|
2298
2301
|
written += 1
|