Skip to content

Commit

Permalink
updated readme, fixed docs syntax highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
catc committed Sep 24, 2019
1 parent f547a5b commit b036d7c
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 10 deletions.
24 changes: 22 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,28 @@
<!--
TODO
- update react spring to v9 on release
- should fix about of typescript issues
- fix remaining typescript errors
-->

<h1 align="center">
<img height="350" src="./screenshots/example.png" />
<br><br>
<br/>
<a href="https://catc.github.io/react-timekeeper/">React Timekeeper</a>
</h1>

<p align="center">
<a href="https://npmjs.org/package/driver.js">
<img src="https://img.shields.io/travis/catc/react-timekeeper" alt="build" />
</a>
<a href="https://www.npmjs.com/package/react-timekeeper">
<img src="https://img.shields.io/npm/dm/react-timekeeper" alt="downloads" />
</a>
<a href="https://github.com/catc/react-timekeeper/blob/master/LICENSE">
<img src="https://img.shields.io/badge/License-MIT-yellow.svg" />
</a>
</p>

<p align="center">
<b>
Time picker based on the style of the
Expand All @@ -14,6 +33,7 @@
</b>
</p>

------------
<br/>

## Installation
Expand Down Expand Up @@ -66,7 +86,7 @@ For full api and examples, see [API docs](https://catc.github.io/react-timekeepe

Other useful commands:
- build docs: `npm run docs:build`
- run all tests: `npm run tests:run`
- run all tests: `npm run tests`
- watch tests: `npm run tests:watch`
- create lib to publish npm: `npm run lib`

6 changes: 3 additions & 3 deletions docs/build/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/build/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions docs/js/content.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
import React, { useEffect } from 'react'
import React, { useLayoutEffect } from 'react'
import { hot } from 'react-hot-loader'
import '../css/style.scss'

import highlight from 'highlight.js/lib'
import 'highlight.js/lib/languages/javascript'
import 'highlight.js/lib/languages/scss'
import 'highlight.js/styles/dracula.css'

import '../css/style.scss'

import Intro from './sections/intro'
import Installation from './sections/installation'
import API from './sections/api'
import Examples from './sections/examples'
import Other from './sections/other'

function Content() {
useEffect(() => {
useLayoutEffect(() => {
highlight.configure({
tabReplace: ' ',
})
Expand Down

0 comments on commit b036d7c

Please sign in to comment.