mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-12-17 06:27:07 +00:00
23 lines
861 B
Bash
23 lines
861 B
Bash
|
#!/usr/bin/env sh
|
||
|
|
||
|
# Requirements:
|
||
|
# - Node.js
|
||
|
# - redoc-cli (`npm install redoc-cli -g`)
|
||
|
|
||
|
redoc-cli bundle ../mailinabox.yml \
|
||
|
-t template.hbs \
|
||
|
-o api-docs.html \
|
||
|
--templateOptions.metaDescription="Mail-in-a-Box HTTP API" \
|
||
|
--title="Mail-in-a-Box HTTP API" \
|
||
|
--options.expandSingleSchemaField \
|
||
|
--options.hideSingleRequestSampleTab \
|
||
|
--options.jsonSampleExpandLevel=10 \
|
||
|
--options.hideDownloadButton \
|
||
|
--options.theme.logo.maxHeight=180px \
|
||
|
--options.theme.logo.maxWidth=180px \
|
||
|
--options.theme.colors.primary.main="#C52" \
|
||
|
--options.theme.typography.fontSize=16px \
|
||
|
--options.theme.typography.fontFamily="Raleway, sans-serif" \
|
||
|
--options.theme.typography.headings.fontFamily="Ubuntu, Arial, sans-serif" \
|
||
|
--options.theme.typography.code.fontSize=15px \
|
||
|
--options.theme.typography.code.fontFamily='"Source Code Pro", monospace'
|