Merge pull request #258 from rtfpessoa/fix-readme-highlight
doc: Fix readme highlight
This commit is contained in:
commit
37fb939e8e
4 changed files with 14 additions and 5 deletions
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
|
|
@ -4,6 +4,7 @@ on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
if: "!contains(github.event.head_commit.message, 'skip ci')"
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
env:
|
env:
|
||||||
CI: true
|
CI: true
|
||||||
|
|
|
||||||
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
|
|
@ -8,12 +8,14 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
version:
|
version:
|
||||||
|
if:
|
||||||
|
github.event.pull_request.merged && "!contains(github.event.head_commit.message, 'skip ci')" &&
|
||||||
|
"!contains(github.event.head_commit.message, 'skip release')"
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
container:
|
container:
|
||||||
image: codacy/git-version
|
image: codacy/git-version
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
if: github.event.pull_request.merged
|
|
||||||
- name: Configure Git
|
- name: Configure Git
|
||||||
run: |
|
run: |
|
||||||
git checkout -f "${GITHUB_REF#refs/heads/}"
|
git checkout -f "${GITHUB_REF#refs/heads/}"
|
||||||
|
|
@ -107,7 +109,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
node-version: 13
|
node-version: 13
|
||||||
registry-url: https://npm.pkg.github.com
|
registry-url: https://npm.pkg.github.com
|
||||||
scope: "@rtfpessoa"
|
scope: '@rtfpessoa'
|
||||||
- name: Publish to GitHub
|
- name: Publish to GitHub
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||||
|
|
|
||||||
4
.github/workflows/website.yml
vendored
4
.github/workflows/website.yml
vendored
|
|
@ -8,6 +8,9 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
if:
|
||||||
|
github.event.pull_request.merged && "!contains(github.event.head_commit.message, 'skip ci')" &&
|
||||||
|
"!contains(github.event.head_commit.message, 'skip release')"
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
env:
|
env:
|
||||||
CI: true
|
CI: true
|
||||||
|
|
@ -16,7 +19,6 @@ jobs:
|
||||||
node-version: [13.x]
|
node-version: [13.x]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
if: github.event.pull_request.merged
|
|
||||||
- name: Setup Node.js ${{ matrix.node-version }}
|
- name: Setup Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
|
|
@ -92,11 +92,15 @@ You can also refer to it from a CDN like [CDNJS](https://cdnjs.com/libraries/dif
|
||||||
|
|
||||||
> JSON representation of the diff
|
> JSON representation of the diff
|
||||||
|
|
||||||
function parse(diffInput: string, configuration: Diff2HtmlConfig = {}): DiffFile[]
|
```ts
|
||||||
|
function parse(diffInput: string, configuration: Diff2HtmlConfig = {}): DiffFile[];
|
||||||
|
```
|
||||||
|
|
||||||
> Pretty HTML representation of the diff
|
> Pretty HTML representation of the diff
|
||||||
|
|
||||||
function html(diffInput: string | DiffFile[], configuration: Diff2HtmlConfig = {}): string
|
```ts
|
||||||
|
function html(diffInput: string | DiffFile[], configuration: Diff2HtmlConfig = {}): string;
|
||||||
|
```
|
||||||
|
|
||||||
> Check out the [docs/demo.html](./docs/demo.html) for a demo example.
|
> Check out the [docs/demo.html](./docs/demo.html) for a demo example.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue