Go to file
Aaron Carlino c7c2ea0349 Major CSS purge, update branding 2019-11-15 16:04:03 +13:00
.vscode Fix html in header IDs 2019-11-14 15:05:03 +13:00
src Major CSS purge, update branding 2019-11-15 16:04:03 +13:00
static Major CSS purge, update branding 2019-11-15 16:04:03 +13:00
.env.development Initial commit 2019-11-08 15:40:20 +13:00
.gitignore Initial commit 2019-11-08 15:40:20 +13:00
.prettierrc Initial commit 2019-11-08 15:40:20 +13:00
README.md Update README 2019-11-15 12:19:35 +13:00
gatsby-browser.js Extract fontawesome 2019-11-15 11:40:23 +13:00
gatsby-config.js Major CSS purge, update branding 2019-11-15 16:04:03 +13:00
gatsby-node.js Initial commit 2019-11-08 15:40:20 +13:00
gatsby-ssr.js Major CSS purge, update branding 2019-11-15 16:04:03 +13:00
index.html Both versions working 2019-11-12 16:09:29 +13:00
netlify.toml Redirect doc - docs 2019-11-15 14:07:18 +13:00
package.json Updates per chillu feedback 2019-11-15 12:36:29 +13:00
tsconfig.json Initial commit 2019-11-08 15:40:20 +13:00
tslint.json Initial commit 2019-11-08 15:40:20 +13:00
yarn.lock Extract fontawesome 2019-11-15 11:40:23 +13:00

README.md

doc.silverstripe.org

This repository contains the source code powering SilverStripe's developer documentation website.

This application is build on Gatsby, a static site generator based on React. It sources content from the framework repository for each major release.

This repository does NOT contain the most current documentation.

The documentation files are written in the markdown format and the most current versions of these files and are not stored here. Instead, they are stored in a docs folder alongside the framework source code in each framework repository. For example, the documentation markdown files for the master branch of the SilverStripe framework are stored in https://github.com/silverstripe/silverstripe-framework/tree/master/docs.

Installation

To set up a local instance of doc.silverstripe.org:

  • Install Gatsby CLI
  • Clone this repository to an empty directory
   git clone https://github.com/silverstripe/doc.silverstripe.org path/to/ssdocs

will clone this repository into path/to/ssdocs.

  • From within path/to/ssdocs, run the command
gatsby develop

to instantiate a development server. This will consume all of the markdown files in both major release branches and allow you to browse the documentation site on http://localhost:8000 by default (see the Gatsby docs for instructions on customising the port).

Building

To test a static build of the site

gatsby build
gatsby serve

These commands will give you an exact representation of how the site will run on a production server, with statically generated html files and server-side rendering.

Deploying

Once your contribution has been merged into the master branch, you can run a build hook to trigger a new build in Netlify.

(build hook coming soon)

Contribution

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

If you wish to edit the documentation content, submit a pull request on the framework Github project. Updated documentation content is uploaded daily to doc.silverstripe.org via a build hook.