Skip to content

Commit

Permalink
titles.json updates
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaldron committed Feb 3, 2015
1 parent 9f9f5c9 commit a3a369f
Show file tree
Hide file tree
Showing 20 changed files with 56 additions and 65 deletions.
10 changes: 6 additions & 4 deletions Gruntfile.js
Expand Up @@ -269,11 +269,13 @@ module.exports = function(grunt) {
fritzing: hasFzz ? templates.fritzing({ fzz: fzz }) : ""
};

// Write the file to /docs/*
file.write(md, templates[tplType](values));
if (titles[value]) {
// Write the file to /docs/*
file.write(md, templates[tplType](values));

// Push a rendered markdown link into the readme "index"
readme.push(templates.eglink(values));
// Push a rendered markdown link into the readme "index"
readme.push(templates.eglink(values));
}
});
});

Expand Down
38 changes: 16 additions & 22 deletions README.md
Expand Up @@ -197,7 +197,7 @@ board.on("ready", function() {
### Servo
- [Servo Component](https://github.com/rwaldron/johnny-five/blob/master/docs/servo.md)
- [Continuous Servo Component](https://github.com/rwaldron/johnny-five/blob/master/docs/servo-continuous.md)
- [Servo - Slider](https://github.com/rwaldron/johnny-five/blob/master/docs/servo-slider.md)
- [Servo - Slide Potentiometer Controller](https://github.com/rwaldron/johnny-five/blob/master/docs/servo-slider.md)
- [Servo - Prompt](https://github.com/rwaldron/johnny-five/blob/master/docs/servo-prompt.md)
- [Servo - Drive](https://github.com/rwaldron/johnny-five/blob/master/docs/servo-drive.md)
- [Servo - Animation](https://github.com/rwaldron/johnny-five/blob/master/docs/servo-animation.md)
Expand Down Expand Up @@ -270,9 +270,9 @@ board.on("ready", function() {
### Compass/Magnetometer
- [Compass (HMC6352)](https://github.com/rwaldron/johnny-five/blob/master/docs/compass-hmc6352.md)
- [Compass (HMC5883L)](https://github.com/rwaldron/johnny-five/blob/master/docs/compass-hmc5883l.md)
- [Magnetometer log](https://github.com/rwaldron/johnny-five/blob/master/docs/magnetometer-log.md)
- [Magnetometer north](https://github.com/rwaldron/johnny-five/blob/master/docs/magnetometer-north.md)
- [Magnetometer Component](https://github.com/rwaldron/johnny-five/blob/master/docs/magnetometer.md)
- [Compass/Magnetometer - Logging](https://github.com/rwaldron/johnny-five/blob/master/docs/magnetometer-log.md)
- [Compass/Magnetometer - Find North](https://github.com/rwaldron/johnny-five/blob/master/docs/magnetometer-north.md)
- [Compass/Magnetometer Component](https://github.com/rwaldron/johnny-five/blob/master/docs/magnetometer.md)

### Piezo
- [Piezo Component](https://github.com/rwaldron/johnny-five/blob/master/docs/piezo.md)
Expand All @@ -291,16 +291,11 @@ board.on("ready", function() {
- [Gyro - Analog (LPR5150AL)](https://github.com/rwaldron/johnny-five/blob/master/docs/gyro-lpr5150l.md)
- [Gyro - I2C (MPU6050)](https://github.com/rwaldron/johnny-five/blob/master/docs/gyro-mpu6050.md)
- [Sensor - Photoresistor](https://github.com/rwaldron/johnny-five/blob/master/docs/photoresistor.md)
- [](https://github.com/rwaldron/johnny-five/blob/master/docs/photoresistor-servo.md)
- [Sensor - Potentiometer](https://github.com/rwaldron/johnny-five/blob/master/docs/potentiometer.md)
- [Sensor Component](https://github.com/rwaldron/johnny-five/blob/master/docs/sensor.md)
- [Sensor - Force Sensitive Servo Controller](https://github.com/rwaldron/johnny-five/blob/master/docs/sensor-fsr-servo.md)
- [](https://github.com/rwaldron/johnny-five/blob/master/docs/sensor-fsr.md)
- [](https://github.com/rwaldron/johnny-five/blob/master/docs/sensor-ir-led-receiver.md)
- [Sensor - Slide Potentiometer](https://github.com/rwaldron/johnny-five/blob/master/docs/sensor-slider.md)
- [](https://github.com/rwaldron/johnny-five/blob/master/docs/slider-log.md)
- [](https://github.com/rwaldron/johnny-five/blob/master/docs/slider-pan.md)
- [Sensor - Slider Potentiometer Servo Controller](https://github.com/rwaldron/johnny-five/blob/master/docs/slider-servo-control.md)
- [Sensor - Slide Potentiometer Servo Controller](https://github.com/rwaldron/johnny-five/blob/master/docs/slider-servo-control.md)
- [Temperature (TMP36)](https://github.com/rwaldron/johnny-five/blob/master/docs/temperature-tmp36.md)
- [Temperature (LM35)](https://github.com/rwaldron/johnny-five/blob/master/docs/temperature-lm35.md)
- [Temperature (DS18B20)](https://github.com/rwaldron/johnny-five/blob/master/docs/temperature-ds18b20.md)
Expand All @@ -319,18 +314,17 @@ board.on("ready", function() {
- [Grove Servo](https://github.com/rwaldron/johnny-five/blob/master/docs/grove-servo.md)

### TinkerKit
- [TinkerKit Accelerometer](https://github.com/rwaldron/johnny-five/blob/master/docs/tinkerkit-accelerometer.md)
- [TinkerKit blink](https://github.com/rwaldron/johnny-five/blob/master/docs/tinkerkit-blink.md)
- [TinkerKit Button](https://github.com/rwaldron/johnny-five/blob/master/docs/tinkerkit-button.md)
- [TinkerKit continuous Servo](https://github.com/rwaldron/johnny-five/blob/master/docs/tinkerkit-continuous-servo.md)
- [TinkerKit combo](https://github.com/rwaldron/johnny-five/blob/master/docs/tinkerkit-combo.md)
- [TinkerKit gyroscope](https://github.com/rwaldron/johnny-five/blob/master/docs/tinkerkit-gyroscope.md)
- [TinkerKit joystick](https://github.com/rwaldron/johnny-five/blob/master/docs/tinkerkit-joystick.md)
- [TinkerKit linear pot](https://github.com/rwaldron/johnny-five/blob/master/docs/tinkerkit-linear-pot.md)
- [TinkerKit rotary](https://github.com/rwaldron/johnny-five/blob/master/docs/tinkerkit-rotary.md)
- [TinkerKit thermistor](https://github.com/rwaldron/johnny-five/blob/master/docs/tinkerkit-thermistor.md)
- [TinkerKit tilt](https://github.com/rwaldron/johnny-five/blob/master/docs/tinkerkit-tilt.md)
- [TinkerKit touch](https://github.com/rwaldron/johnny-five/blob/master/docs/tinkerkit-touch.md)
- [TinkerKit - Accelerometer](https://github.com/rwaldron/johnny-five/blob/master/docs/tinkerkit-accelerometer.md)
- [TinkerKit - Blink](https://github.com/rwaldron/johnny-five/blob/master/docs/tinkerkit-blink.md)
- [TinkerKit - Button](https://github.com/rwaldron/johnny-five/blob/master/docs/tinkerkit-button.md)
- [TinkerKit - Continuous Servo](https://github.com/rwaldron/johnny-five/blob/master/docs/tinkerkit-continuous-servo.md)
- [TinkerKit - Combo](https://github.com/rwaldron/johnny-five/blob/master/docs/tinkerkit-combo.md)
- [TinkerKit - Gyro](https://github.com/rwaldron/johnny-five/blob/master/docs/tinkerkit-gyroscope.md)
- [TinkerKit - Joystick](https://github.com/rwaldron/johnny-five/blob/master/docs/tinkerkit-joystick.md)
- [TinkerKit - Linear Potentiometer](https://github.com/rwaldron/johnny-five/blob/master/docs/tinkerkit-linear-pot.md)
- [TinkerKit - Rotary Potentiometer](https://github.com/rwaldron/johnny-five/blob/master/docs/tinkerkit-rotary.md)
- [TinkerKit - Tilt Sensor](https://github.com/rwaldron/johnny-five/blob/master/docs/tinkerkit-tilt.md)
- [TinkerKit - Touch Sensor](https://github.com/rwaldron/johnny-five/blob/master/docs/tinkerkit-touch.md)

### Wii
- [Wii Nunchuk Component](https://github.com/rwaldron/johnny-five/blob/master/docs/nunchuk.md)
Expand Down
2 changes: 1 addition & 1 deletion docs/magnetometer-log.md
@@ -1,5 +1,5 @@
<!--remove-start-->
# Magnetometer log
# Compass/Magnetometer - Logging

Run with:
```bash
Expand Down
2 changes: 1 addition & 1 deletion docs/magnetometer-north.md
@@ -1,5 +1,5 @@
<!--remove-start-->
# Magnetometer north
# Compass/Magnetometer - Find North

Run with:
```bash
Expand Down
2 changes: 1 addition & 1 deletion docs/magnetometer.md
@@ -1,5 +1,5 @@
<!--remove-start-->
# Magnetometer Component
# Compass/Magnetometer Component

Run with:
```bash
Expand Down
2 changes: 1 addition & 1 deletion docs/servo-slider.md
@@ -1,5 +1,5 @@
<!--remove-start-->
# Servo - Slider
# Servo - Slide Potentiometer Controller

Run with:
```bash
Expand Down
2 changes: 1 addition & 1 deletion docs/slider-servo-control.md
@@ -1,5 +1,5 @@
<!--remove-start-->
# Sensor - Slider Potentiometer Servo Controller
# Sensor - Slide Potentiometer Servo Controller

Run with:
```bash
Expand Down
2 changes: 1 addition & 1 deletion docs/tinkerkit-accelerometer.md
@@ -1,5 +1,5 @@
<!--remove-start-->
# TinkerKit Accelerometer
# TinkerKit - Accelerometer

Run with:
```bash
Expand Down
2 changes: 1 addition & 1 deletion docs/tinkerkit-blink.md
@@ -1,5 +1,5 @@
<!--remove-start-->
# TinkerKit blink
# TinkerKit - Blink

Run with:
```bash
Expand Down
2 changes: 1 addition & 1 deletion docs/tinkerkit-button.md
@@ -1,5 +1,5 @@
<!--remove-start-->
# TinkerKit Button
# TinkerKit - Button

Run with:
```bash
Expand Down
2 changes: 1 addition & 1 deletion docs/tinkerkit-combo.md
@@ -1,5 +1,5 @@
<!--remove-start-->
# TinkerKit combo
# TinkerKit - Combo

Run with:
```bash
Expand Down
2 changes: 1 addition & 1 deletion docs/tinkerkit-continuous-servo.md
@@ -1,5 +1,5 @@
<!--remove-start-->
# TinkerKit continuous Servo
# TinkerKit - Continuous Servo

Run with:
```bash
Expand Down
2 changes: 1 addition & 1 deletion docs/tinkerkit-gyroscope.md
@@ -1,5 +1,5 @@
<!--remove-start-->
# TinkerKit gyroscope
# TinkerKit - Gyro

Run with:
```bash
Expand Down
2 changes: 1 addition & 1 deletion docs/tinkerkit-joystick.md
@@ -1,5 +1,5 @@
<!--remove-start-->
# TinkerKit joystick
# TinkerKit - Joystick

Run with:
```bash
Expand Down
2 changes: 1 addition & 1 deletion docs/tinkerkit-linear-pot.md
@@ -1,5 +1,5 @@
<!--remove-start-->
# TinkerKit linear pot
# TinkerKit - Linear Potentiometer

Run with:
```bash
Expand Down
2 changes: 1 addition & 1 deletion docs/tinkerkit-rotary.md
@@ -1,5 +1,5 @@
<!--remove-start-->
# TinkerKit rotary
# TinkerKit - Rotary Potentiometer

Run with:
```bash
Expand Down
2 changes: 1 addition & 1 deletion docs/tinkerkit-thermistor.md
@@ -1,5 +1,5 @@
<!--remove-start-->
# TinkerKit thermistor
#

Run with:
```bash
Expand Down
2 changes: 1 addition & 1 deletion docs/tinkerkit-tilt.md
@@ -1,5 +1,5 @@
<!--remove-start-->
# TinkerKit tilt
# TinkerKit - Tilt Sensor

Run with:
```bash
Expand Down
2 changes: 1 addition & 1 deletion docs/tinkerkit-touch.md
@@ -1,5 +1,5 @@
<!--remove-start-->
# TinkerKit touch
# TinkerKit - Touch Sensor

Run with:
```bash
Expand Down
39 changes: 17 additions & 22 deletions tpl/titles.json
Expand Up @@ -19,9 +19,9 @@
"servo.js": "Servo Component",
"servo-continuous.js": "Continuous Servo Component",
"servo-sweep.js": "Servo - Sweep",
"servo-slider.js": "Servo - Slider",
"servo-slider.js": "Servo - Slide Potentiometer Controller",
"servo-prompt.js": "Servo - Prompt",
"servo-keypress.js": "Servo - Keypress",
"servo-keypress.js": "Servo - Keypress Controller",
"servo-drive.js": "Servo - Drive",
"servo-animation.js": "Servo - Animation",
"servo-diagnostic.js": "Servo - Diagnostic",
Expand Down Expand Up @@ -81,13 +81,9 @@
"led-matrix-HT16K33.js": "LED - Matrix (HT16K33)",
"seven-segment.js": "Shift Register - Seven Segment Controller",
"laser.js": "LED - Laser",
"magnetometer-log.js": "Magnetometer log",
"magnetometer-north.js": "Magnetometer north",
"magnetometer.js": "Magnetometer Component",
"nodeconf-compass.js": "NodeConf Compass",
"nodeconf-navigator.js": "NodeConf Navigator",
"nodeconf-radar.js": "NodeConf Radar",
"nodeconf-slider.js": "NodeConf Slider",
"magnetometer-log.js": "Compass/Magnetometer - Logging",
"magnetometer-north.js": "Compass/Magnetometer - Find North",
"magnetometer.js": "Compass/Magnetometer Component",
"piezo.js": "Piezo Component",
"kinect-arm-controller.js": "Kinect Arm Controller",
"nunchuk.js": "Wii Nunchuk Component",
Expand All @@ -104,7 +100,7 @@
"sensor.js": "Sensor Component",
"sensor-fsr-servo.js": "Sensor - Force Sensitive Servo Controller",
"sensor-slider.js": "Sensor - Slide Potentiometer",
"slider-servo-control.js": "Sensor - Slider Potentiometer Servo Controller",
"slider-servo-control.js": "Sensor - Slide Potentiometer Servo Controller",
"temperature-tmp36.js": "Temperature (TMP36)",
"temperature-lm35.js": "Temperature (LM35)",
"temperature-ds18b20.js": "Temperature (DS18B20)",
Expand All @@ -116,18 +112,17 @@
"grove-lcd-rgb.js": "Grove LCD RGB",
"grove-lcd-rgb-temperature-display.js": "Grove LCD RGB Temperature display",
"grove-servo.js": "Grove Servo",
"tinkerkit-accelerometer.js": "TinkerKit Accelerometer",
"tinkerkit-blink.js": "TinkerKit blink",
"tinkerkit-button.js": "TinkerKit Button",
"tinkerkit-continuous-servo.js": "TinkerKit continuous Servo",
"tinkerkit-combo.js": "TinkerKit combo",
"tinkerkit-gyroscope.js": "TinkerKit gyroscope",
"tinkerkit-joystick.js": "TinkerKit joystick",
"tinkerkit-linear-pot.js": "TinkerKit linear pot",
"tinkerkit-rotary.js": "TinkerKit rotary",
"tinkerkit-thermistor.js": "TinkerKit thermistor",
"tinkerkit-tilt.js": "TinkerKit tilt",
"tinkerkit-touch.js": "TinkerKit touch",
"tinkerkit-accelerometer.js": "TinkerKit - Accelerometer",
"tinkerkit-blink.js": "TinkerKit - Blink",
"tinkerkit-button.js": "TinkerKit - Button",
"tinkerkit-continuous-servo.js": "TinkerKit - Continuous Servo",
"tinkerkit-combo.js": "TinkerKit - Combo",
"tinkerkit-gyroscope.js": "TinkerKit - Gyro",
"tinkerkit-joystick.js": "TinkerKit - Joystick",
"tinkerkit-linear-pot.js": "TinkerKit - Linear Potentiometer",
"tinkerkit-rotary.js": "TinkerKit - Rotary Potentiometer",
"tinkerkit-tilt.js": "TinkerKit - Tilt Sensor",
"tinkerkit-touch.js": "TinkerKit - Touch Sensor",
"led-blink.js": "LED - Blink",
"led-digits-clock.js": "LED - Digital Clock",
"led-matrix-tutorial.js": "LED - Matrix Demo",
Expand Down

0 comments on commit a3a369f

Please sign in to comment.