Skip to content

Commit 209c5e4

Browse files
fix: syntax highlighting
1 parent 963d4f4 commit 209c5e4

File tree

5 files changed

+953
-1581
lines changed

5 files changed

+953
-1581
lines changed

docs/example.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ values={[
8282
}>
8383
<TabItem value="ts">
8484

85-
```ts
85+
```ts title="./playwright.config.ts"
8686
import { screenReaderConfig } from "@guidepup/playwright";
8787
import { devices, PlaywrightTestConfig } from "@playwright/test";
8888

@@ -105,7 +105,7 @@ export default config;
105105
</TabItem>
106106
<TabItem value="js">
107107

108-
```js
108+
```js title="./playwright.config.js"
109109
const { screenReaderConfig } = require("@guidepup/playwright");
110110
const { devices } = require("@playwright/test");
111111

@@ -148,7 +148,7 @@ values={[
148148
}>
149149
<TabItem value="ts">
150150

151-
```ts
151+
```ts title="./voiceOver.spec.ts"
152152
import { voiceOverTest as test } from "@guidepup/playwright";
153153
import { expect } from "@playwright/test";
154154

@@ -182,7 +182,7 @@ test.describe("Playwright VoiceOver", () => {
182182
</TabItem>
183183
<TabItem value="js">
184184

185-
```js
185+
```js title="./voiceOver.spec.js"
186186
const { voiceOverTest as test } = require("@guidepup/playwright");
187187
const { expect } = require("@playwright/test");
188188

docs/intro.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ For further information checkout this [guide to set up your environment](./guide
3434

3535
Install Guidepup to your project:
3636

37+
```bash
38+
yarn add @guidepup/guidepup
39+
```
40+
3741
<Tabs
3842
groupId="pm-flavor"
3943
defaultValue="yarn"
@@ -76,7 +80,7 @@ values={[
7680

7781
If you're using MacOS:
7882

79-
```ts
83+
```ts title="./example.ts"
8084
import { voiceOver } from "@guidepup/guidepup";
8185

8286
(async () => {
@@ -93,7 +97,7 @@ import { voiceOver } from "@guidepup/guidepup";
9397

9498
Or if you're using Windows:
9599

96-
```ts
100+
```ts title="./example.ts"
97101
import { nvda } from "@guidepup/guidepup";
98102

99103
(async () => {
@@ -113,7 +117,7 @@ import { nvda } from "@guidepup/guidepup";
113117

114118
If you're using MacOS:
115119

116-
```js
120+
```js title="./example.js"
117121
const { voiceOver } = require("@guidepup/guidepup");
118122

119123
(async () => {
@@ -130,7 +134,7 @@ const { voiceOver } = require("@guidepup/guidepup");
130134

131135
Or if you're using Windows:
132136

133-
```js
137+
```js title="./example.js"
134138
const { nvda } = require("@guidepup/guidepup");
135139

136140
(async () => {

docs/virtual.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ values={[
7474
}>
7575
<TabItem value="ts">
7676

77-
```ts
77+
```ts title="./example.test.ts"
7878
import { virtual } from "@guidepup/virtual-screen-reader";
7979

8080
test("should navigate to the input and announce the placeholder", async () => {
@@ -105,7 +105,7 @@ test("should navigate to the input and announce the placeholder", async () => {
105105
</TabItem>
106106
<TabItem value="js">
107107

108-
```js
108+
```js title="./example.test.js"
109109
const { virtual } = require("@guidepup/virtual-screen-reader");
110110

111111
test("should navigate to the input and announce the placeholder", async () => {

docusaurus.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const { themes } = require("prism-react-renderer");
22
const lightCodeTheme = themes.github;
3-
// const darkCodeTheme = require("prism-react-renderer/themes/dracula");
43

54
// Original: https://github.com/dracula/visual-studio-code
65
const accessibleDarkTheme = {
@@ -203,6 +202,7 @@ const config = {
203202
copyright: `Copyright © ${new Date().getFullYear()} Craig Morten.`,
204203
},
205204
prism: {
205+
additionalLanguages: ["bash"],
206206
theme: lightCodeTheme,
207207
darkTheme: accessibleDarkTheme,
208208
},

0 commit comments

Comments
 (0)