See the official documentation at MixerAPI.com.
Documentation was built using MkDocs. It is designed to pull in the
README.md files from all MixerAPI plugins. These are pulled in as git submodules. Additional documentation
can be added in the docs/
directory and mapped to the navigation in mkdocs.yml
.
git clone git@github.com:mixerapi/mixerapi.com.git mixerapi.com
cd mixerapi.com
make init
make run
This includes a live reload as docs and configs change. You can browse the site via http://localhost:8000/
by default.
make build
The docker image used by mixerapi is here: https://hub.docker.com/systematical/mixerapidocs and can be seen locally in Dockerfile.
git submodule add https://github.com/mixerapi/my-new-plugin
make update
Then add it to the nav in mkdocs.yml
Setup on production is pretty standard. 404 errors need to be pointed at 404.php
which has some custom redirect
logic in it. FPM needs to be informed to use this as well with ProxyErrorOverride
. Aside from handling 404 errors,
the site is static and does not need PHP.
# apache virtualhost
<VirtualHost *:443>
ServerName mixerapi.com
DocumentRoot /var/www/mixerapi.com/site
<Directory /var/www/mixerapi.com/site>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
<FilesMatch \.php$>
SetHandler "proxy:unix:/var/run/php/php7.4-fpm.sock|fcgi://localhost/"
ProxyErrorOverride on
</FilesMatch>
ErrorDocument 404 /404.php
SSLEngine On
# SSL settings here
</VirtualHost>