mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-25 10:58:52 -06:00
refactor: site code reads the repo root from core
This commit is contained in:
1 parent
d50dfc36e2
commit
ab0265408c
13 files changed
+31
-23
No files matched your search
@@ -21,6 +21,8 @@ from dataclasses import dataclass, field
|
||||
from html import unescape
|
||||
from pathlib import Path, PurePosixPath
|
||||
|
||||
from core.paths import REPO_ROOT
|
||||
|
||||
BASE = "/retrobios/"
|
||||
SITE_URL = "https://abdess.github.io/retrobios/"
|
||||
|
||||
@@ -336,7 +338,7 @@ def og_section(rel: str, level: str) -> str:
|
||||
|
||||
# Sharing cards of their own, made by scripts/make_og_cards.py: one per
|
||||
# platform page, titled with the platform's name.
|
||||
OG_DIR = Path(__file__).resolve().parent.parent / "docs_assets" / "og"
|
||||
OG_DIR = REPO_ROOT / "docs_assets" / "og"
|
||||
|
||||
|
||||
# An emulator page's card is that of the maker of the first system it runs,
|
||||
|
||||
Reference in new issue
Block a user