Giter VIP home page Giter VIP logo

clean-documentation-theme's Introduction

Clean Documentation Theme

Build Status Coverage Status Dependency Status js-standard-style

A theme for documentationjs

Preview

It uses React server side rendering with Radium for styling components.

Usage

$ npm install --save-dev clean-documentation-theme
$ npm install --save-dev documentation

Add to your package.json

"scripts": {
  "docs": "documentation build --format html --theme node_modules/clean-documentation-theme --o docs
"
  ...
}

and run

$ npm run docs

License

MIT

clean-documentation-theme's People

Contributors

dignifiedquire avatar fabienmotte avatar victorb avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

clean-documentation-theme's Issues

Cannot read property 'context' of undefined

Just by following the example in the README I get the following warning and error:

Warning: Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead.

TypeError: Cannot read property 'context' of undefined

Does anyone know what the problem might be?

Add tests

There are none, but there should be

Force examples to be javascript

Currently, the highlighting is sometimes auto-set and it seems to not be super accurate.

If I have a JSON-like object in the example, it assumes I want JSON, which means the rest of the JavaScript in the example, won't be highlighted correctly.

highlight (code) {
if (this.options.hljs && this.options.hljs.highlightAuto) {
return hljs.highlightAuto(code).value
}
return hljs.highlight('js', code).value
}

Object Properties Missing

See this stackoverflow question for more details.

When making an object in a class, the properties for the object do not show up.

Example Object

/**
 * The URLs for the ads attributed to this song.
 * @typedef AdUrls
 * @property {String} flexSkip The ad used if the user wants to gain more skips.
 * @property {String} flexReplay The ad used if the user wants to gain more replays.
 * @property {String} flexThumbsDown The ad used if the user wants to skip using a thumbs down.
 * @property {String} nowPlayingStation The ad used for now playing songs.
 * @property {String} nowPlayingStationAdUnit The nowplaying ad unit. (?)
 * @property {String} nowPlayingStationAdTargeting The nowplaying ad 'targeting'. (?)
 * @property {String} backstage The "backstage" ad. (?)
 * @property {String} backstageAdUnit The "backstage" ad unit. (?)
 * @property {String} backstageAdTargeting The "backstage" ad targeting. (?)
 */
this.adUrls = {
  flexSkip: raw.adUrls.flexSkipAdUrl,
  flexReplay: raw.adUrls.flexSkipAdUrl,
  flexThumbsDown: raw.adUrls.flexThumbsDownAdUrl,
  nowPlayingStation: raw.adUrls.nowPlayingStationAdUrl,
  nowPlayingStationAdUnit: raw.adUrls.nowPlayingStationAdUnit,
  nowPlayingStationAdTargeting: raw.adUrls.nowPlayingStationAdTargeting,
  backstage: raw.adUrls.backstageAdUrl,
  backstageAdUnit: raw.adUrls.backstageAdUnit,
  backstageAdTargeting: raw.adUrls.backstageAdTargeting
};

Using default theme:
chrome_2018-11-26_16-29-05

Using this theme:
chrome_2018-11-26_16-28-39

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.