Sign inSign up

mandrean/apidocker

By mandrean

•Updated over 10 years ago

apiDocker generates API documentation from inline apidocjs.com annotation.

Image
0

805

mandrean/apidocker repository overview

⁠apiDocker

apiDocker is a minimalistic Alpine-based Docker image for generating API documentation from inline apidocjs.com annotation.

⁠Annotation

See apidocjs.com for full documentation with examples.

⁠Paths

You can specify input and output folder paths using the ENV variables:

APIDOCKER_INPUT

APIDOCKER_OUTPUT

Default paths are / and docs/.

⁠Usage

With docker run, using the current working directory $(pwd) and overriding the input/output paths:

docker run --rm -ti \
    -e APIDOCKER_INPUT="app/" \
    -e APIDOCKER_OUTPUT="apidocs/" \
    -v $(pwd):/src mandrean/apidocker

With docker-compose.yml, using the same working directory as the compose file and overriding the input/output paths:

version: '2'

services:
    apidocker:
        image: mandrean/apidocker:latest
        environment:
            APIDOCKER_INPUT: app/
            APIDOCKER_OUTPUT: apidocs/
        volumes:
            - ./:/src

⁠TODO

  • Add support for file-filters
  • Add support for exclude filters
  • Add support for templates
  • Add support for apidoc config file
  • Add support for verbose debug output

Tag summary

Content type

Image

Digest

Size

14.8 MB

Last updated

over 10 years ago

docker pull mandrean/apidocker