Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bunnylushington/api-doc-pipeline
OpenAPI 3.0 -> widdershins -> slate documentation pipeline in Docker
https://github.com/bunnylushington/api-doc-pipeline
Last synced: 3 months ago
JSON representation
OpenAPI 3.0 -> widdershins -> slate documentation pipeline in Docker
- Host: GitHub
- URL: https://github.com/bunnylushington/api-doc-pipeline
- Owner: bunnylushington
- Created: 2019-09-03T16:58:11.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-03-11T15:29:14.000Z (over 2 years ago)
- Last Synced: 2024-07-14T12:39:49.782Z (4 months ago)
- Language: Dockerfile
- Size: 2.93 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-starred - bunnylushington/api-doc-pipeline - OpenAPI 3.0 -> widdershins -> slate documentation pipeline in Docker (others)
README
# API Documentation Pipeline
This is a Docker image that will take an OpenAPI (v3) YAML document
and produce a static [Slate](https://github.com/slatedocs/slate) site
suitable for publication on GitHub Pages or wherever. The
[widdershins](https://github.com/Mermade/widdershins) library is
responsible for converting the YAML/JSON into something Slate can use.## To Build
``` shell
$ docker build -t api-doc-pipeline .
```## To Use
Assuming the API YAML specification file is `/projects/api/api.yaml`:
``` shell
$ docker run -v /projects/api:/work/source --rm api-doc-pipeline
```The resulting HTML, JS, CSS, &c. will be available in /projects/api
alongside the original source.The filename `api.yaml` is hardcoded.
## Options
Widdershins options should be set in (with the path assumptions above)
the file `/projects/api/widdershins.yaml`.This file will look something like
``` yaml
resolve: true
tocSummary: true
omitBody: true
language_tabs:
- http: HTTP
- python: Python
- csharp: 'C#'
- powershell: PowerShell```
## License
MIT License
Copyright (c) 2019 Bunny Lushington
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.