Skip to content

Latest commit

 

History

History
72 lines (49 loc) · 1.26 KB

README.md

File metadata and controls

72 lines (49 loc) · 1.26 KB

docat web

Project setup

yarn install [--pure-lockfile]

Compiles and hot-reloads for development

The script for yarn start automatically sets VITE_DOCAT_VERSION to display the current version in the footer, so you can just run:

yarn start

Compiles and minifies for production

To display the current version of docat in the footer, use the following script to set VITE_DOCAT_VERSION. This one liner uses the latest tag, if there is one on the current commit, and the current commit if not.

VITE_DOCAT_VERSION=$(git describe --tags --always) yarn build

Otherwise you can just use the following and the footer will show unknown.

yarn build

Lints and fixes files

yarn lint

Tests

yarn test

Basic Header Theming

Not happy with the default Docat logo and header? Just add your custom html header to the /var/www/html/config.json file.

{ "headerHTML": "<h1>MyCompany</h1>" }

Development

sudo docker run \
  --detach \
  --volume /path/to/doc:/var/docat/doc/ \
  --publish 8000:80 \
  docat

Errors

If you get a 403 response when trying to read a version, try changing the permissions of your docs folder on your host.

sudo chmod 777 /path/to/doc -r