Go to file
Will Rossiter d74266a401 Skip assets 2012-09-25 19:38:34 +12:00
app FIX: incorrect class 2012-09-09 18:23:06 +12:00
bin FIX: DRY update for managing documented module checkouts. (Fixes #2) 2012-09-09 18:23:06 +12:00
docsviewer@4ffa1c71e6 Updated dependancies 2012-09-09 18:23:06 +12:00
framework@5bf2212b22 Updated dependancies 2012-09-09 18:23:06 +12:00
themes FIX: show edit button on documentation pages (Fixes #3) 2012-09-06 21:36:34 +12:00
.gitignore Skip assets 2012-09-25 19:38:34 +12:00
.gitmodules Updated project to 3.0 2012-09-05 21:45:25 +12:00
.htaccess MINOR Fixed sapphire -> framework redir (broken during upgrade) 2012-09-18 22:06:36 +12:00
.htaccess_live Merge pull request #9 from simonwelsh/patch-1 2012-09-18 03:45:23 -07:00
Makefile FIX: DRY update for managing documented module checkouts. (Fixes #2) 2012-09-09 18:23:06 +12:00
README.md Update Documentation 2012-09-09 18:22:31 +12:00
favicon.ico MINOR Updated favicon 2011-01-18 02:52:12 +00:00
phpunit.xml.dist MINOR Added phpunit.xml.dist 2011-01-10 21:30:46 +00:00

README.md

doc.silverstripe.org

This is the source code powering http://doc.silverstripe.org. It primarily consists of:

  • SilverStripe 3.0 framework
  • The docsviewer module.

Development

To set up a test instance:

  • Clone this repository to a LAMP server.
  • Run "make update" to check out the repositories from which is builds the docs (this will take a while the first time)

Source Documentation Files

Documentation for each module is stored on the filesystem via a full git clone of the module to the src/ subdirectory in this project. These checkouts are ignored from this repository to allow for easier updating and to keep this project small.

To update or download the source documentation at any time run the following make command in your terminal:

cd /Sites/doc.silverstripe.org/
make fetch

make fetch will call bin/update.sh to download / update each module as listed in the bin/update.sh file.

Once the make fetch command has executed and downloaded the latest files, those files are registered along with the module version the folder relates to. through the app/_config.php file.

DocumentationService::register("sapphire", BASE_PATH ."/src/github/master/sapphire/docs/", '2.4');

Contribution

To contribute an improvement to the doc.silverstripe.org functionality or theme, submit a pull request on GitHub. Any approved pull requests will make their way onto the doc.silverstripe.org site in the next release.

The content for doc.silverstripe.org is stored in the modules repository inside a "docs" folder (for example, the framework documentation is stored at (github.com/silverstripe/sapphire)[https://github.com/silverstripe/sapphire/tree/master/docs]).

If you wish to edit the documentation content, submit a pull request on that Github project. Updates to the content are synced regularly with docs.silverstripe.org via a cron job.

Cron job

The cron job keeps doc.silverstripe.org up to date with the latest code. This cron task calls make update, a script that fetches the latest documentation for each module from git and rebuilds the search indexes.

05 * * * * sites make -f /sites/ss2doc-v2/www/Makefile -C /sites/ss2doc-v2/www update

Legacy Dokuwiki

We assume that DokuWiki (which ran the original doc.silverstripe.org) is served on the same webserver from a different webroot, that's symlinked in under the URL http://doc.silverstripe.org/old.

ln -s /sites/ss2doc/www /sites/ss2doc-v2/www/old