Skip to content

Commit

Permalink
add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ptbarnum4 committed Aug 5, 2024
1 parent f16f490 commit 7003203
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
38 changes: 38 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Custom mocha styles

This is a simple package that includes some additional style/functionality to the mocha test runner.

## Include in your project

To include this package in your project, simply add the following to the `<head>` of your html test file

### Styles
```html
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/gh/OperationSpark/mocha-style@main/mocha.css"
/>
```
### Syntax highlighting
```html
<script src="https://cdn.jsdelivr.net/gh/OperationSpark/mocha-style@main/injectStyles.js"></script>
```

### Example
```html
<!DOCTYPE html>
<html>
<head>
...
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/gh/OperationSpark/mocha-style@main/mocha.css"
/>

<script src="https://cdn.jsdelivr.net/gh/OperationSpark/mocha-style@main/injectStyles.js"></script>

...
</head>
...
</html>
```

0 comments on commit 7003203

Please sign in to comment.