Configuration to build Pimcore API docs with Sami.
With the default config it expects a clone of the pimcore/pimcore
repository in tmp/pimcore
and will build the API docs
to build/static/pimcore
. You can change those paths via env variables (see config/pimcore.php).
$ git clone https://github.com/pimcore/pimcore-api-docs.git
$ cd pimcore-api-docs
# optional, but recommended: use the latest released version (v1.0.3 is just an example, check the repository to get the latest version)
$ git checkout v1.0.3
# run setup to clone/update the pimcore/pimcore repository and to download the Sami PHAR
$ scripts/setup.sh
# run build to actually build the api docs
$ scripts/build.sh
There is a RMT config file which allows you to release a new version quickly. Please note that the API docs build process relies on the latest annotated tag version, so releasing a version as annotated tag is mandatory. RMT takes care of that for you:
$ RMT release
# or release a specific type
$ RMT release --type minor