Skip to content

Commit 323c208

Browse files
authored
Merge pull request #33 from open-rpc/fix/packaging
fix: packaging of css to include all the styles in components.css
2 parents 935480f + ae331c4 commit 323c208

File tree

69 files changed

+80
-67
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+80
-67
lines changed

.changeset/wicked-llamas-live.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"open-rpc-markdown-generator-beta": patch
3+
"open-rpc-docusaurus-plugin-beta": patch
4+
---
5+
6+
Change fixes css packaging

packages/docusaurus-plugin/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"types": "./dist/index.d.ts",
77
"exports": {
88
".": "./dist/index.js",
9-
"./components": "./dist/components.js"
9+
"./components": "./dist/components.js",
10+
"./components.css": "./dist/components.css"
1011
},
1112
"scripts": {
1213
"build": "bun run build.ts",

packages/docusaurus-plugin/src/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ export default function openRPCDocusaurusPlugin(
3434
// TODO: Return glob patterns for files to watch (e.g., OpenRPC JSON specs)
3535
},
3636

37+
getClientModules() {
38+
// This path will resolve relative to the plugin's dist folder when published
39+
40+
return ["./components.css"];
41+
},
42+
3743
/**
3844
* Loads content - runs on startup and on hot reload
3945
* This is where you'd read OpenRPC specs and generate markdown/mdx files

packages/example-site/docs/api-reference/methods/debug_getBadBlocks.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ hide_table_of_contents: true
55
description: ""
66
---
77

8-
import {TwoColumnLayout, InteractiveRequest, ResponseExample, TryNow} from 'open-rpc-docusaurus-plugin-beta/components';
8+
import {TwoColumnLayout, InteractiveRequest, ResponseExample} from 'open-rpc-docusaurus-plugin-beta/components';
99
import { useState } from 'react';
1010

1111
<TwoColumnLayout sidebar={<InteractiveRequest request={"{\n \"jsonrpc\": \"2.0\",\n \"method\": \"debug_getBadBlocks\",\n \"params\": [],\n \"id\": 1\n}"} />}>

packages/example-site/docs/api-reference/methods/debug_getRawBlock.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ hide_table_of_contents: true
55
description: ""
66
---
77

8-
import {TwoColumnLayout, InteractiveRequest, ResponseExample, TryNow} from 'open-rpc-docusaurus-plugin-beta/components';
8+
import {TwoColumnLayout, InteractiveRequest, ResponseExample} from 'open-rpc-docusaurus-plugin-beta/components';
99
import { useState } from 'react';
1010

1111
<TwoColumnLayout sidebar={<InteractiveRequest request={"{\n \"jsonrpc\": \"2.0\",\n \"method\": \"debug_getRawBlock\",\n \"params\": {\n \"Block\": \"example\"\n },\n \"id\": 1\n}"} />}>

packages/example-site/docs/api-reference/methods/debug_getRawHeader.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ hide_table_of_contents: true
55
description: ""
66
---
77

8-
import {TwoColumnLayout, InteractiveRequest, ResponseExample, TryNow} from 'open-rpc-docusaurus-plugin-beta/components';
8+
import {TwoColumnLayout, InteractiveRequest, ResponseExample} from 'open-rpc-docusaurus-plugin-beta/components';
99
import { useState } from 'react';
1010

1111
<TwoColumnLayout sidebar={<InteractiveRequest request={"{\n \"jsonrpc\": \"2.0\",\n \"method\": \"debug_getRawHeader\",\n \"params\": {\n \"Block\": \"example\"\n },\n \"id\": 1\n}"} />}>

packages/example-site/docs/api-reference/methods/debug_getRawReceipts.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ hide_table_of_contents: true
55
description: ""
66
---
77

8-
import {TwoColumnLayout, InteractiveRequest, ResponseExample, TryNow} from 'open-rpc-docusaurus-plugin-beta/components';
8+
import {TwoColumnLayout, InteractiveRequest, ResponseExample} from 'open-rpc-docusaurus-plugin-beta/components';
99
import { useState } from 'react';
1010

1111
<TwoColumnLayout sidebar={<InteractiveRequest request={"{\n \"jsonrpc\": \"2.0\",\n \"method\": \"debug_getRawReceipts\",\n \"params\": {\n \"Block\": \"example\"\n },\n \"id\": 1\n}"} />}>

packages/example-site/docs/api-reference/methods/debug_getRawTransaction.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ hide_table_of_contents: true
55
description: ""
66
---
77

8-
import {TwoColumnLayout, InteractiveRequest, ResponseExample, TryNow} from 'open-rpc-docusaurus-plugin-beta/components';
8+
import {TwoColumnLayout, InteractiveRequest, ResponseExample} from 'open-rpc-docusaurus-plugin-beta/components';
99
import { useState } from 'react';
1010

1111
<TwoColumnLayout sidebar={<InteractiveRequest request={"{\n \"jsonrpc\": \"2.0\",\n \"method\": \"debug_getRawTransaction\",\n \"params\": {\n \"Transaction hash\": \"string\"\n },\n \"id\": 1\n}"} />}>

packages/example-site/docs/api-reference/methods/engine_exchangeCapabilities.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ hide_table_of_contents: true
55
description: ""
66
---
77

8-
import {TwoColumnLayout, InteractiveRequest, ResponseExample, TryNow} from 'open-rpc-docusaurus-plugin-beta/components';
8+
import {TwoColumnLayout, InteractiveRequest, ResponseExample} from 'open-rpc-docusaurus-plugin-beta/components';
99
import { useState } from 'react';
1010

1111
<TwoColumnLayout sidebar={<InteractiveRequest request={"{\n \"jsonrpc\": \"2.0\",\n \"method\": \"engine_exchangeCapabilities\",\n \"params\": {\n \"Consensus client methods\": [\n \"string\"\n ]\n },\n \"id\": 1\n}"} />}>

packages/example-site/docs/api-reference/methods/engine_exchangeTransitionConfigurationV1.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ hide_table_of_contents: true
55
description: ""
66
---
77

8-
import {TwoColumnLayout, InteractiveRequest, ResponseExample, TryNow} from 'open-rpc-docusaurus-plugin-beta/components';
8+
import {TwoColumnLayout, InteractiveRequest, ResponseExample} from 'open-rpc-docusaurus-plugin-beta/components';
99
import { useState } from 'react';
1010

1111
<TwoColumnLayout sidebar={<InteractiveRequest request={"{\n \"jsonrpc\": \"2.0\",\n \"method\": \"engine_exchangeTransitionConfigurationV1\",\n \"params\": {\n \"Consensus client configuration\": {\n \"terminalTotalDifficulty\": \"string\",\n \"terminalBlockHash\": \"string\",\n \"terminalBlockNumber\": \"string\"\n }\n },\n \"id\": 1\n}"} />}>

0 commit comments

Comments
 (0)