Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Beautiful static documentation for your API
Reslate is a proof-of-concept static documentation template that rebuilds the Slate API documentation layout using Eleventy (11ty) as the static site generator, turning Markdown sources into a static HTML site.
Reslate is an open-source documentation generator that ports Slate to the Eleventy static site generator, eliminating the original Ruby dependency. It takes Markdown files as input and outputs a static HTML documentation site using a Node.js build pipeline. The project lives in the Mermade/reslate repository on GitHub and is explicitly labeled a proof of concept (v3). It runs on an LTS version of Node.js and installs via npm.
npm run build produces the site, npm run debug runs a debug build, and npm run serve starts a local server at http://localhost:4567.npx reslate init scaffolds a new project and npx reslate [build|debug|serve] runs the respective commands.Reslate is suited for teams and individuals who want the classic Slate documentation style but prefer a Node.js-based workflow. API documentation maintainers can use it to generate static docs that deploy to any hosting service. Developers already using Eleventy can adopt it as a starting point for a documentation section. Contributors interested in the Slate-to-Eleventy port will find the codebase concise enough to follow.
npx reslate init, and start writing docs inside an existing project.npm run build and host the generated HTML anywhere, including GitHub Pages.Reslate requires an LTS version of Node.js. You can clone the repository and run npm i, or create a new Node.js project and install Reslate as a dependency, then run npx reslate init. The build process converts Markdown into static HTML with Prism.js highlighting, and the serve command provides a live preview.
No. Reslate is built entirely on Node.js and Eleventy, so it does not need the Ruby toolchain that the original Slate requires.
More than 200 languages are supported out of the box, powered by Prism.js.
Run npm run serve (or npx reslate serve if installed as a dependency) and open a browser to http://localhost:4567.
Reslate is a proof of concept, so it should be treated as a starting point rather than a mature, feature-complete product. The repository itself lists several planned improvements.
The project lists "Specify additional CSS includes in header?" as an open todo, so it is not yet implemented as of the content shown.
