W3C Credentials Community Group

Increasing trust on the Web, one spec at a time.

Next Meeting

Date:
Time: 12pm Boston
Voice:
    Web: https://meet.w3c-ccg.org/weekly
    US phone: +1 602 932 2243 x1
    EU phone: +44 161 519 4762 x1
Chat: Web, IRC
Duration:60 minutes

Announcements
Connecting to the Calls
Mailing List
Meeting Minutes
W3C Community Page

View the Project on GitHub w3c-ccg/w3c-ccg.github.io

Creating spectext with bikeshed (markdown)

Bikeshed is a tool that generates specs (html/ReSpec files) from simpler source files, such as markdown.

If you’re using bikeshed, we recommend performing the conversion to html/ReSec as a github action. You can use the markdown-to-spec repo as a template.

Use the bikeshed quick start.

Example

The vc-ed-models spec and source demonstrate a spec that’s written in bikeshed with a github action that auto-converts to HTML/ReSpec Note the following:

You can run bikeshed locally to preview the results. Instructions are below.

When to use

Spec authors/editors may prefer to use markdown and bikeshed for the following types of CCG work items:

In later phases of Community Specifications, especially complex ones like the DID spec, participants may prefer direct diffs on the html for precision.

Running Locally

Installing Bikeshed

git clone https://github.com/tabatkins/bikeshed.git
cd <location>/bikeshed
pip install --editable <location>/bikeshed

other possible prereqs:

brew install python@2

pip install pygments lxml --upgrade

Additional Examples

The BTCR DID method spec uses bikeshed for generating spectext. We edit the BTCR index.bs file, and then run bikeshed to generate the index.html file. The rendered output is shown here.

An example of the BTCR metadata section is here:

<pre class='metadata'>
Title: BTCR DID Method
Shortname: didm-btcr
Level: 1
Status: w3c/CG-DRAFT
Group: Credentials Community Group
URL: https://w3c-ccg.github.io/didm-btcr/

Editor: Christopher Allen, http://www.lifewithalacrity.com/
Editor: Kim Hamilton Duffy, https://github.com/kimdhamilton
Editor: Ryan Grant
Editor: Dan Pape, https://github.com/danpape

Abstract: The Bitcoin Reference DID method specification conforms to the requirements specified in the <a href="https://w3c-ccg.github.io/did-spec/">DID specification</a> currently published by the W3C Credentials Community Group. For more information about DIDs and DID method specifications, please see the <a href="https://github.com/WebOfTrustInfo/rwot7/blob/master/topics-and-advance-readings/did-primer.md">DID Primer</a>.

</pre>

Note: In Amira, I ended up adding this line as well for markdown-to-html bolding:

Markup Shorthands: css no, markdown yes

Running Bikeshed

python bikeshed.py spec ../didm-btcr/index.bs