JosephDuffy / VaporDocC

Vapor middleware that serves a DocC archive

Home Page:https://vapordocc.josephduffy.co.uk/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VaporDocC

VaporDocC provides middleware for use with Vapor. To initialise the middleware pass in the path to your .doccarchive, e.g.:

let archiveURL = URL(fileURLWithPath: "/path/to/VaporDocC.doccarchive")
app.middleware.use(VaporDocCMiddleware(archivePath: archiveURL))

Documentation – hosted by the docker image included in this repo – is available at vapordocc.josephduffy.co.uk.

Docker

A docker image that wraps a Vapor app using the VaporDocCMiddleware is provided at ghcr.io/josephduffy/vapordocc.

To run locally mount the docs at /docs, e.g.:

docker run -p 8080:8080 -v /path/to/VaporDocC.doccarchive:/docs ghcr.io/josephduffy/vapordocc

About

Vapor middleware that serves a DocC archive

https://vapordocc.josephduffy.co.uk/


Languages

Language:Swift 95.0%Language:Dockerfile 5.0%