silverstripe / api.silverstripe.org

API documentation for the Silverstripe Framework
BSD 3-Clause "New" or "Revised" License
3 stars 14 forks source link

Introduction

CI

SilverStripe API docs for the core system in different versions, generated through Doctum.

Requirements

Installation

  1. Clone the repo to your local development environment
  2. Run composer install which will install Doctum
  3. Run makedoc.sh to build the static API docs (will take some time and generates ~900Mb new files)

Usage

Generate the Docs

Add a new major ersion

Please note: If you are changing the default version (i.e. a making a new stable major release), update the default version in src/Lookup.php.

Deployment to production

This is now hosted on SilverStripe Platform, you can deploy from the dashboard. makedoc.sh is run on a nightly cron as defined in platform.yml.

Symbol Lookup

The project comes with a simple PHP script to convert PHP symbols (classes, methods, properties) to their URL representations in the API docs, and redirects there. The lookup is primarily used by doc.silverstripe.org to drive its custom [api:<symbol-name>] links in Markdown, without coupling it tightly to the used API generator URL layout.

Parameters:

Examples:

Contributing

While SilverStripe self-hosts this project, community contributions to the code are very welcome :) Please check out our guide to contributing code on silverstripe.org