Skip to content

Commit 58a3f47

Browse files
committed
Provide a sensible default for runestone_path
In the new monorepo the role of RUNESTONE_PATH is not as critical. A default is fine.
1 parent 125487e commit 58a3f47

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.readthedocs.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ build:
1717
- poetry self add poetry-polylith-plugin
1818
- poetry self add poetry-multiproject-plugin
1919
- poetry install
20-
post_build:
21-
- RUNESTONE_PATH=.
20+
# RUNESTONE_PATH is defined in the readthedocs control panel
2221

2322
sphinx:
2423
configuration: docs/source/conf.py

components/rsptx/configuration/core.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ class Config:
5959
google_ga: str = ""
6060

6161
# The path to the Runestone application inside web2py.
62-
runestone_path: str = Path(os.environ.get("RUNESTONE_PATH")).resolve()
62+
63+
runestone_path: str = Path(os.environ.get("RUNESTONE_PATH", Path.home())).resolve()
6364

6465
# _`book_path`: specify the directory to serve books from. For now, default to serving from the same place as the Runestone server, since the server uses some of these files.
6566
book_path: Path = runestone_path / "books"

0 commit comments

Comments
 (0)