This is the old version of the website for the Stacks project. It enabled a comment system, an improved tag lookup, and a full-powered online view of its contents. This project is no longer maintained.
Please visit the Gerby project to read about the current version.
Below you will find rough instructions to create a local copy of the Stacks project website on your system. Requirements:
- Apache with mod-rewrite and php enabled
- php-sqlite
- UNIX command line tools, in particular make, python, and git
- a recent version of TeX Live (2012 or later is fine)
- a directory
base - the url
http://localhost:8080points tobase/stacks-website
Here are the instructions:
-
clone
stacks-websiteusinggit clone https://github.com/stacks/stacks-website -
change directories to
stacks-website/and initialize the submodules usinggit submodule initandgit submodule update -
change directories to
stacks-website/and clone the Stacks project into the (not yet existing)tex/subdirectory usinggit clone git://github.com/stacks/stacks-project tex -
change one occurence of
http://stacks.math.columbia.edu/tag/instacks-website/tex/scripts/tag_up.pyto `http://localhost:8080/tag/ -
run
make tagsinstacks-website/tex/ -
clone
stacks-toolsin thebasedirectory usinggit clone https://github.com/stacks/stacks-tools -
change directories to
stacks-toolsand create the database by callingpython create.py -
back in the
basedirectory execute the following commands:mkdir stacks-website/database chmod 0777 stacks-website/database mv stacks-tools/stacks.sqlite stacks-website/database chmod 0777 stacks-website/database/stacks.sqlite
This will create a directory with the database in it with the correct permissions for the webserver. To set permissions for the cache correctly execute
chmod 0777 stacks-website/php/cache
-
change directory into stacks-website and edit the file
conf.inisetting database = "database/stacks.sqlite", directory = "", and project = "/path/to/base/stacks-website/tex" -
sanity check: at this point if you point your browser to
http://localhost:8080you should not get an error concerning the database -
get the correct styling in EpicEditor by executing
ln -s ../../../../../css/stacks-editor.css js/EpicEditor/epiceditor/themes/editor/stacks-editor.css ln -s ../../../../../css/stacks-preview.css js/EpicEditor/epiceditor/themes/preview/stacks-preview.css
from the stacks-website directory
-
make XyJax work by editing the last line of
stacks-website/js/XyJax/extensions/TeX/xypic.jsand replacingMathJax.Ajax.loadComplete("[MathJax]/extensions/TeX/xypic.js");byMathJax.Ajax.loadComplete("/js/XyJax/extensions/TeX/xypic.js"); -
change directories to
stacks-toolsand update the database by callingpython update.pyas well aspython macros.py -
create a directory
stacks-website/databy executingmkdir stacks-website/data, change directories tostacks-tools, and create the graph files by callingpython graphs.py
Please contact the maintainer or create an issue if you encounter problems.
- Update the
stacks-website/texfolder usinggit pull - run
make tagsas in step 5 above - Run steps 13 and 14 above