How To set up this web site.

Assumes www.neuron.yale.edu is functional. If it has crashed or is unavailable then need to start from a backup of the cvs repository.

Primary pages

Primary www.neuron.yale.edu pages are in the cvs repository
export CVS_RSH=ssh
cvs -d :ext:username@www.neuron.yale.edu:/home/cvsroot/ checkout nrnwww
If the username is anonymous, the CVS_RSH must be a small shell script that allows you to use a read-only version of the cvs server. See how2cvs.html for further information.

To view the pages install an apache server. On our public web site, the DocumentRoot is /home/htdocs, nrnwww was checked out with -d neuron, and the /home/htdocs/index.html redirects to the neuron/index.html file.

nrnwww/chklink.sh will print all dangling links from http://www.neuron.yale.edu but will not currently verify that the ftp links exist. To carry out its work, chklink.sh will mirror the site in your cwd under the subdirectory name www.neuron.yale.edu .

There are quite a few explicit urls involving http://www.neuron.yale.edu that can be changed to another machine via

grerep 'http://www.neuron.yale.edu' 'http://somewhere.else'

Help pages

The automatically constructed help pages in the subdirectory http://www.neuron.yale.edu/neuron/docs/help (as well as the refman directory) are in the cvs repository
cvs -d :ext:username@www.neuron.yale.edu:/home/cvsroot/ checkout nrnhelp
This is all the files of the original web site but now only the help and refman directories continue to be used in the current site. The html files are constructed from the hel files by
cd nrnhelp/help
./makedict.sh # creates dict file that maps keywords to pages
./makecontents.sh # http://www.neuron.yale.edu/neuron/docs/help/hier.html
./allh2h # uses several scripts to translate .hel to .html and .hoc examples
sh quick_reference_maker.sh 0 0 # Mike Neubig's easier to use index.
cd ..
./ziphelp.sh # creates help.zip
Extract help.zip when your cwd is http://www.neuron.yale.edu/neuron/docs. That will create help and refman subdirectories for docs.

If working on a single file.hel or single directory, then instead of ./doall use ./doone neuron/.../file or ./doone neuron/...

Setting up Anonymous CVS and CVSUP

Notes for setting up ViewCVS and PhpBB2