Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aglio-theme-api

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aglio-theme-api

Default theme for the Aglio API Blueprint renderer

  • 1.6.16
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Aglio Default Theme

Dependency Status Build Status Coverage Status NPM version License

This is Olio, the default theme engine for Aglio. It takes an API Blueprint AST and renders it into static HTML. Example use:

$ sudo npm install -g aglio
$ aglio -i blueprint.apib -o MyAPI.html

Theme engines for Aglio are described in more detail in the Aglio documentation.

Design Philosophy

Olio is designed from the ground up to be both fast and extensible while maintaining backward compatibility with most of the original Aglio theme. It uses the following technologies:

For backward compatibility, Jade templates can continue to use inline Stylus and CoffeeScript.

Theme Options

Olio comes with a handful of configurable theme options. These are set via the --theme-XXX parameter, where XXX is one of the following:

NameDescription
condense-navWhether to condense nagivation for resources with only a single action (default is true).
full-widthWhether to use the full page width or a responsive layout (default is responsive).
styleLESS or CSS to control the layout and style of the document using the variables from below. Can be a path to your own file or one of the following presets: default. May be an array of paths and/or presets.
templateJade template to render HTML. Can be a path to your own file or one of the following presets: default.
variablesLESS variables that control theme colors, fonts, and spacing. Can be a path to your own file or one of the following presets: default, flatly, slate, cyborg. May be an array of paths and/or presets.

Note: When using this theme programmatically, these options are cased like you would expect in Javascript: --theme-full-width becomes options.themeFullWidth.

Benchmark

Olio makes use of aggressive caching whenever it can, which means that rendering HTML can be blazing fast. Benchmark taken on a 2015 Macbook Pro via BENCHMARK=1 aglio -i example.apib -o example.html:

StepCachedNo cache
Parse API Blueprint44ms44ms
Get CSS1ms49ms
Get template2ms102ms
Call template28ms32ms
Total time75ms227ms

License

Copyright © 2016 Daniel G. Taylor

http://dgt.mit-license.org/

Keywords

FAQs

Package last updated on 13 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc