We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a2e961 commit b0791c3Copy full SHA for b0791c3
packages/docusaurus-theme-openapi-docs/src/theme/ApiDemoPanel/MethodEndpoint/index.tsx
@@ -40,6 +40,7 @@ export interface Props {
40
function MethodEndpoint({ method, path }: Props) {
41
return (
42
<pre
43
+ className="openapi-method-endpoint"
44
style={{
45
background: "var(--openapi-card-background-color)",
46
borderRadius: "var(--openapi-card-border-radius)",
@@ -51,7 +52,9 @@ function MethodEndpoint({ method, path }: Props) {
51
52
>
53
{method.toUpperCase()}
54
</span>{" "}
- <span>{path.replace(/{([a-z0-9-_]+)}/gi, ":$1")}</span>
55
+ <span className="openapi-method-endpoint__path">
56
+ {path.replace(/{([a-z0-9-_]+)}/gi, ":$1")}
57
+ </span>
58
</pre>
59
);
60
}
0 commit comments