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
- Copy the default settings:
cp .env-dev .env
- Edit
.env
in your favorite file editor to fix the paths. - 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.
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.
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.
Run make
and make install
or use the provided Dockerfile/docker-compose.yml. (#3)