The DocsApp is a slim application that serves up the MODX documentation from markdown format into a fully functional site.
It's in development, help is welcome.
Version-specific copies of the documentation should go into the /doc-sources
directory. Then point a webserver at the /public
directory to browse the documentation.
- Clone the repository with submodules:
git clone --recurse-submodules https://github.com/Mark-H/DocsApp
- Run a composer install in the root:
composer install
- Create environment.php:
cp environment.sample.php environment.php
- Edit environment.php in your favorite file editor. Set the appropriate hostname and directory.
- Point a webserver, running at least PHP 7.1, to the
/public
directory. - If you use apache,
cp public/ht.access public/.htaccess
and tweak (RewriteBase) as required.
From the root of the project first load the dependencies with npm install
.
Then use npm build:css
to build the styles or npm run watch:css
to watch for changes to the sass files in public/assets/scss/
and automatically build them.