Code Monkey home page Code Monkey logo

hardware's Introduction

Hardware documentation and design

This repository hold hardware documentation and design.

Product datasheets

The product datasheets are written in markdown and generated to HTML by Jekyll and to PDF by wkhtmltopdf. It uses bootstrap for layout of the HTML and liquid tags to help with the content generation.

Writing

Each datasheets needs to contain the following:

  • Front Matter variables
  • Ingress (with image)
  • Datasheet history

Front Matter variables

Each datahseet has a number of attributs set in FrontMatter for datasheet:

Name Values Description
layout datasheet-base Selects the layout, there is only one
title Name of the product
sku The product SKU
version The version of the datasheet
status early-access / active / eol The product life cycle status

Liquid tags

There's a number of liquid tags to make things easier and keep formatting consisent, they are listed below.

Datasheet intro

Used to create the ingress and image at the start of the datasheet. The tag takes one argument, the image.

{% datasheet_intro my-fancy-image-jpg; %}
This is the ingress for the datahseet right here!
{% enddatasheet_intro %}

Note: The image should be located in the same folder as the markdown file. A full path will not work when generating product pages on the web from the markdown.

Inserting images

This tag is used to insert images and takes three arguments:

  • Name of image
  • Size of image: small, medium, large
  • Alignment of image: center
{% datasheet_img My Fancy image; medium; center; my-fancy-image.png; %}

Note: The image should be located in the same folder as the markdown file. A full path will not work when generating product pages on the web from the markdown.

Notice

This tag is used to insert a notice and takes one arguments:

  • Type: warning (yellow background), success (green background), danger (red background)
{% datasheet_notice warning; %}
You have been warned!
{% enddatasheet_notice %}

Generating

You need the toolbelt to generate the datasheets.

The generation is done using the following command:

$ tb generate [datasheet]

  datasheet - Optional directory name of datasheet for generating
              only one datasheet. If this is not specified all the
              datasheets are generated.

hardware's People

Contributors

ataffanel avatar evoggy avatar gemenerik avatar knmcguire avatar krichardsson avatar tobbeanton avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

hardware's Issues

Add output of source files in build

Add a second zip with the source files (markdown and images) for all products. This information will be used in the web build to populate some parts of the product pages on the web.

Add product lifecycle status

A Font Matter tag should be added where we can set the product life cycle status: early-access, active, end-of-life.

The status should be reflected in the datasheet and relevant information should be added.

Use dockerfied wkhtmltopdf

To keep the number of dependencies down and keep a consistent output we should use a "dockerfied" version of wkhtmltopdf instead.

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.