skip js build on readthedocs

don't need the frontend to build the docs

previously only skipped jsx because yarn was unavailable
but we don't use yarn anymore
This commit is contained in:
Min RK
2025-03-28 10:14:50 +01:00
parent 742de1311e
commit ae434dd866
2 changed files with 6 additions and 7 deletions

View File

@@ -8,10 +8,9 @@ sphinx:
configuration: docs/source/conf.py
build:
os: ubuntu-22.04
os: ubuntu-24.04
tools:
nodejs: "20"
python: "3.11"
python: "3.13"
python:
install:

View File

@@ -172,10 +172,6 @@ class JSX(BaseCommand):
js_target = pjoin(static, 'js', 'admin-react.js')
def should_run(self):
if os.getenv('READTHEDOCS'):
# yarn not available on RTD
return False
if not os.path.exists(self.js_target):
return True
@@ -213,6 +209,10 @@ class JSX(BaseCommand):
def js_css_first(cls, strict=True):
if os.getenv('READTHEDOCS'):
# don't need to build frontend for the docs
return cls
class Command(cls):
def run(self):
try: