1.0.10 • Published 7 years ago

phd v1.0.10

Weekly downloads
-
License
ISC
Repository
-
Last release
7 years ago

What is PHD?

Automatically generate a static site from your repo's README.md and make it dynamic.


Install

npm install --save-dev phd

Usage

Step 1. Create phd.config.js

Create a phd.config.js JS file to define a phd config object.

module.exports = [{
  input: ["README.md"],
  output: "index.html",
  js: ["https://www.celljs.org/cell.js"],
  css: [
    "https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.6/css/bootstrap.min.css",
    "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.11.0/styles/grayscale.min.css",
    "https://fonts.googleapis.com/css?family=Raleway:300,400,500,600,700",
    "https://fonts.googleapis.com/css?family=Merriweather:900",
    "./website/style.css"
  ],
  init: function() {
    /**
     * Do whatever JS initialization you need
     */
  }
}]

Step 2. Run

node phd

Syntax

module.exports = {
  input: Array,
  output: String,
  js: Array,
  css: Array,
  init: Function
}
attributedescription
inputan array of markdown file paths in the current repository
outputa string of output filename
jsan array of JavaScript URLs
cssan array of CSS URLs
initan initializier function that will run onload

Customization

TBD

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago