This is the website.
You need GNU Make, NodeJS, CPython 2.7 or 3.4 before you do this.
- Make sure you cloned all the submodules (
git submodule initthengit submodule update). - Make a virtualenv. Don't put the virtualenv in this directory or a subdirectory.
- Activate the virtualenv and install the requirements file (
pip install -r requirements.txt). - Install the NodeJS requirements (run
npm installin the "amazeui" subdirectory). - Run
make amazeuito generate the amazeUI files. - Run
make htmlto generate the website. - Go!
In grand Pelican tradition, we're using Make to do stuff. Here are the key commands:
make amazeuito regenerate the CSS.make htmlto regenerate the rest of the site using CSS that's already built.make serveto start a webserver on http://localhost:8000.make publishto generate the site for publication (URLs point to ncodamusic.org, not localhost).
- If you want to change something in the CSS, that goes in the amazeUI submodule. Check out the nCoda-specific README in that directory.
- If you want to change the HTML that's generated, that's somewhere in the "ncoda_theme" submodule.
- If you want to change the home page content, that's in
ncoda_theme/templates/homepage_content. - If you want to change other website content, that's in the
contentdirectory.
- Don't commit in the "output" repository unless (1) you're 100% sure, and (2) you use the
make publishcommand. The website won't deploy automatically, and we can always go back thanks to git, but it's easier to avoid mistakes than fix them. - ... ?
- Add helpful tips to this list when you think of them.