Giter Club home page Giter Club logo

bikeshed's Introduction

Bikeshed, a spec preprocessor

Bikeshed is a pre-processor for spec documents, turning a source document (containing only the actual spec content, plus several shorthands for linking to terms and other things) into a final spec document, with appropriate boilerplate, bibliography, indexes, etc all filled in. It's currently used on nearly all specs in the CSSWG, as well as various specs in the FXTF, SVGWG, WebAppSecurity, WHATWG, and elsewhere!

Build Status Gitter

The processor can be easily installed and run locally (requiring no network access unless you're updating), or accessed as a CGI without any installation at all: https://api.csswg.org/bikeshed/

A short overview of some of Bikeshed's features:

Note About Fatal Errors

Bikeshed generates "fatal errors" for lots of things that it wants you to fix, but generally recovers gracefully from them anyway. If you're getting a fatal error, but don't have time to fix it and just need a spec right now, you can force Bikeshed to generate anyway with the -f flag, like: bikeshed -f spec.

This is also sometimes useful when converting a spec to Bikeshed for the first time, so you can see all the errors at once and fix them in whatever order is easiest, rather than having to deal with them one-by-one with no idea when they'll end. (You may also want to silence the warnings in this case, to reduce visual noise until you've gotten it at least building successfully. Use bikeshed -qf spec.)

Documentation Sections

  • Installing Bikeshed - gets you from "reading this page" to "running Bikeshed" in as few steps as possible.
  • Quick Start Guide - gets you from an empty file to a full spec in no time.
  • Metadata - describes the format of the required metadata block in your spec.
  • Definitions, Autolinks, and Bibliography - describes how to create definitions, autolinks, and bibliography entries.
  • Markup - describes several of the markup niceties and shortcuts over plain HTML that the processor recognizes.
  • Global Names - describes the concept and syntax of global names, which are used by several features to uniquely identify and refer to defined terms.
  • IDL - describes Bikeshed's automatic IDL processing.
  • Railroad Diagrams - describes the railroad-diagram feature, and its syntax.
  • Boilerplate - describes the use and generation of a spec's boilerplate sections. You probably don't need to read this.
  • Source-File Processing - describes the functions Bikeshed has for processing your source file itself.
  • Anatomy of a Dfn - describes the way Bikeshed formats <dfn> elements for processing by scrapers, so interoperating tools can do the same.

Bikeshed File Extension

The preferred file extensions for Bikeshed source files is bs, like index.bs. Bikeshed will automatically recognize *.bs files in the folder it's run in, and assume that you want an output file of the same name with a .html extension. The repository also contains a syntax highlighting script for Bikeshed source files.

(Bikeshed also recognizes files with *.src.html for backwards compatibility with older CSS specs, though most such specs have switched their source file extensions to .bs now. Using .src.html in most text editors will display the file with HTML source formatting, which isn't generally what you want.)

License

This document and all associated files in the github project are licensed under CC0 . This means you can reuse, remix, or otherwise appropriate this project for your own use without restriction. (The actual legal meaning can be found at the above link.) Don't ask me for permission to use any part of this project, just use it. I would appreciate attribution, but that is not required by the license.

bikeshed's People

Contributors

0b10011 avatar annevk avatar arronei avatar axelnennker avatar birtles avatar brycelelbach avatar darobin avatar dbaron avatar dirkschulze avatar domenic avatar dontcallmedom avatar foolip avatar frivoal avatar garykac avatar gregwhitworth avatar jyasskin avatar mikewest avatar mkruisselbrink avatar nox avatar plehegar avatar plinss avatar richtr avatar shans avatar simonsapin avatar svgeesus avatar tabatkins avatar tantek avatar tobie avatar wseltzer avatar zcorpan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.