Skip to content

Commit a6d9512

Browse files
authored
fix: webpack 5 build (#35)
1 parent f4c759d commit a6d9512

File tree

4 files changed

+49
-49
lines changed

4 files changed

+49
-49
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ It is always best to discuss your plans beforehand, to ensure that your contribu
3636
- Make sure you sign-off on your commits `git commit -s -m "adding X to change Y"`
3737
- Write good commit messages (see below).
3838
- Push your changes to a topic branch in your fork of the repository.
39-
- As you push your changes, update the pull request with new infomation and tasks as you complete them
39+
- As you push your changes, update the pull request with new information and tasks as you complete them
4040
- Project maintainers might comment on your work as you progress
4141
- When you are done, remove the `work in progess` label and ping the maintainers for a review
4242
- Your pull request must receive a :thumbsup: from two [maintainers](MAINTAINERS)

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ A Docusaurus v2 plugin that supports referencing code examples from public GitHu
1010
First, add the theme plugin to your dependencies:
1111

1212
```sh
13-
npm install @saucelabs/theme-github-codeblock
13+
# NPM
14+
npm install --save @saucelabs/theme-github-codeblock
15+
16+
# Yarn
17+
yarn add @saucelabs/theme-github-codeblock
1418
```
1519

1620
## Usage

package-lock.json

Lines changed: 41 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/theme/ReferenceCodeBlock/index.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { URL } from 'url'
21
import React, { useReducer } from 'react'
32
import CodeBlock from '@theme-init/CodeBlock'
43

@@ -51,7 +50,7 @@ export function parseReference (ref: string): GitHubReference {
5150
}
5251
}
5352

54-
export function parseCustomization (metastring: string | undefined): CustomizedLinkOptions {
53+
export function parseCustomization (metastring: string | undefined): CustomizedLinkOptions {
5554

5655
const refTitle = metastring?.match(/title="(?<title>.*?)"/)?.groups?.title;
5756

@@ -61,7 +60,7 @@ export function parseCustomization (metastring: string | undefined): CustomizedL
6160
const customStylingMatch = metastring?.match(/customStyling/);
6261
const refUseCustomStyling = customStylingMatch?.length === 1;
6362
const refNoteStyling = customStylingMatch?.length === 1 ? {} : noteStyle;
64-
63+
6564
return {
6665
title: refTitle,
6766
linkText: refLinkText,

0 commit comments

Comments
 (0)