/plushcap/analysis/cloudflare/cloudflares-json-powered-documentation-generator

CloudFlare's JSON-powered Documentation Generator

What's this blog post about?

Vojtech Miksu shares insights into Cloudflare's RESTful API documentation process and introduces a set of tools used for generating the same. The company uses JSON Hyper-Schema to describe their API, which is then used to generate HTML documentation. They have an open source library called JSON Schema Docs Generator (JSDC) that generates complete HTML documentation from JSON Schema files and Handlebars.js templates. However, they found it hard to use for other teams due to its complicated configuration and slow performance. To address these issues, they created a toolchain based on JSDC and modern JavaScript libraries. They also introduced doca, a command-line tool that scaffolds the whole application for users. The tools are designed to be modular and extensible while still providing ready-to-go output with just a few commands.

Company
Cloudflare

Date published
Aug. 3, 2016

Author(s)
Vojtech Miksu

Word count
1644

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.