Skip to content

Commit

Permalink
fix: syntax highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
jlp-craigmorten committed Mar 14, 2024
1 parent 963d4f4 commit 209c5e4
Show file tree
Hide file tree
Showing 5 changed files with 953 additions and 1,581 deletions.
8 changes: 4 additions & 4 deletions docs/example.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ values={[
}>
<TabItem value="ts">

```ts
```ts title="./playwright.config.ts"
import { screenReaderConfig } from "@guidepup/playwright";
import { devices, PlaywrightTestConfig } from "@playwright/test";

Expand All @@ -105,7 +105,7 @@ export default config;
</TabItem>
<TabItem value="js">

```js
```js title="./playwright.config.js"
const { screenReaderConfig } = require("@guidepup/playwright");
const { devices } = require("@playwright/test");

Expand Down Expand Up @@ -148,7 +148,7 @@ values={[
}>
<TabItem value="ts">

```ts
```ts title="./voiceOver.spec.ts"
import { voiceOverTest as test } from "@guidepup/playwright";
import { expect } from "@playwright/test";

Expand Down Expand Up @@ -182,7 +182,7 @@ test.describe("Playwright VoiceOver", () => {
</TabItem>
<TabItem value="js">

```js
```js title="./voiceOver.spec.js"
const { voiceOverTest as test } = require("@guidepup/playwright");
const { expect } = require("@playwright/test");

Expand Down
12 changes: 8 additions & 4 deletions docs/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ For further information checkout this [guide to set up your environment](./guide

Install Guidepup to your project:

```bash
yarn add @guidepup/guidepup
```

<Tabs
groupId="pm-flavor"
defaultValue="yarn"
Expand Down Expand Up @@ -76,7 +80,7 @@ values={[

If you're using MacOS:

```ts
```ts title="./example.ts"
import { voiceOver } from "@guidepup/guidepup";

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

Or if you're using Windows:

```ts
```ts title="./example.ts"
import { nvda } from "@guidepup/guidepup";

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

If you're using MacOS:

```js
```js title="./example.js"
const { voiceOver } = require("@guidepup/guidepup");

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

Or if you're using Windows:

```js
```js title="./example.js"
const { nvda } = require("@guidepup/guidepup");

(async () => {
Expand Down
4 changes: 2 additions & 2 deletions docs/virtual.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ values={[
}>
<TabItem value="ts">

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

test("should navigate to the input and announce the placeholder", async () => {
Expand Down Expand Up @@ -105,7 +105,7 @@ test("should navigate to the input and announce the placeholder", async () => {
</TabItem>
<TabItem value="js">

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

test("should navigate to the input and announce the placeholder", async () => {
Expand Down
2 changes: 1 addition & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const { themes } = require("prism-react-renderer");
const lightCodeTheme = themes.github;
// const darkCodeTheme = require("prism-react-renderer/themes/dracula");

// Original: https://github.com/dracula/visual-studio-code
const accessibleDarkTheme = {
Expand Down Expand Up @@ -203,6 +202,7 @@ const config = {
copyright: `Copyright © ${new Date().getFullYear()} Craig Morten.`,
},
prism: {
additionalLanguages: ["bash"],
theme: lightCodeTheme,
darkTheme: accessibleDarkTheme,
},
Expand Down
Loading

0 comments on commit 209c5e4

Please sign in to comment.