Fix sx docs load_sx_dir path to point to sxc/ not sxc/pages/

The .sx component files (home.sx, docs.sx, etc.) live in sxc/, but
the path was pointing to sxc/pages/ after the move from sx_components.py.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-04 11:35:22 +00:00
parent b51b050dda
commit 3bffc212cc

View File

@@ -24,7 +24,7 @@ def _load_sx_page_files() -> None:
from shared.sx.jinja_bridge import load_service_components
base = os.path.dirname(os.path.dirname(__file__))
load_service_components(base, service_name="sx")
_sxc_dir = os.path.dirname(__file__)
_sxc_dir = os.path.dirname(os.path.dirname(__file__))
load_sx_dir(_sxc_dir)
watch_sx_dir(_sxc_dir)
load_page_dir(os.path.dirname(__file__), "sx")