WARNING: DO NOT FOLLOW THESE DIRECTION. YOU'LL MAKE THE SITE INACCESSIBLE DUE TO PERMISSIONS ISSUES.
WARNING: continue -- the fix is probably
So I did chmod +r
and chmod +x
on htdocs/*
and chmod +r on htdocs/*/*
To make changes, change the relevant rst files.
To build the changes, do sage -sh -c "make html"
. This will build the changes in the _build/html
directory.
To deploy changes, do sage -sh -c "make upload"
, which will build the site (if needed) and rsync the built site to the webserver.
We use sage -sh -c "..."
because we are using the sphinx that comes with Sage, so we need to execute in the sage environment.
Here's a live public preview:
https://cloud.sagemath.com/c9ee8ea1-66e5-451c-aec9-0cb61dbccd1b/raw/utmost-website/_build/html/index.html
On the SageMathCloud UTMOST 2 project, in the utmost-website directory, is the website repo:
https://cloud.sagemath.com/projects/c9ee8ea1-66e5-451c-aec9-0cb61dbccd1b/files/utmost-website/
The _build/html directory contains the built webpages. Of course, you can edit them by hand, if you want:
https://cloud.sagemath.com/projects/c9ee8ea1-66e5-451c-aec9-0cb61dbccd1b/files/utmost-website/_build/html/
If you want to use sphinx/rest to edit them, you can edit the rst files and then in the terminal, run:
sage -sh -c "make html"
Making and uploading them should be:
sage -sh -c "make upload"
I just tried making the html files, and it seemed to work (no errors). I didn't try uploading them.
Does that help?
Thanks,
Jason