Skip to content

Commit 3f6fc5d

Browse files
author
abrulic
committed
small UI fix
1 parent b3a6614 commit 3f6fc5d

File tree

4 files changed

+18
-12
lines changed

4 files changed

+18
-12
lines changed

.github/workflows/publish-documentation.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ jobs:
1717
- name: Checkout
1818
uses: actions/checkout@v4
1919
with:
20-
ref: ${{ github.head_ref }} # ← checkout the PR head branch
2120
fetch-depth: 0
2221

2322
- name: Setup pnpm
@@ -57,13 +56,14 @@ jobs:
5756
path: docs/app/utils/versions.ts
5857
if-no-files-found: error
5958

60-
61-
deploy-docs-pr-preview:
59+
deploy-docs-on-release:
6260
needs: [build-docs]
6361
name: Deploy Docs
62+
environment:
63+
name: docs-release
6464
runs-on: ubuntu-latest
6565
steps:
66-
- uses: actions/checkout@v4
66+
- uses: actions/checkout@v4
6767

6868
- name: Download generated docs (tgz)
6969
uses: actions/download-artifact@v4

docs/app/components/code-block/code-block-syntax-highlighter.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ const MASTER_REGEX = new RegExp(
1515
"\\/\\*[\\s\\S]*?\\*\\/",
1616
// hash comment at start of line
1717
"^\\s*#.*$",
18+
// backtick inline code
19+
"\\`(?:[^`\\\\]|\\\\.)*\\`",
1820
// strings
1921
"(['\"])(?:(?!\\1)[^\\\\]|\\\\.)*\\1",
2022
// numbers
@@ -23,15 +25,14 @@ const MASTER_REGEX = new RegExp(
2325
"[a-zA-Z_$][a-zA-Z0-9_$]*",
2426
// arrow function
2527
"=>",
26-
// operators & punctuation:
27-
// - multi-char first
28-
// - single '/' only if NOT starting a comment
28+
// operators & punctuation
2929
"===|!==|<=|>=|==|!=|&&|\\|\\||\\+\\+|--|[+\\-*%=<>!?:(){}\\[\\];,.]|\\/(?![/*])|[+\\-*/%]=",
3030
].join("|"),
3131
"gm"
3232
)
3333

3434

35+
3536
const KEYWORDS = [
3637
"import",
3738
"export",

docs/app/tailwind.css

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@
6262
--color-background-active: #f3f4f6;
6363
--color-text-accent: #646464;
6464

65-
--color-code-inline-bg: #f5f5f5;
66-
--color-code-inline-text: #1f2937;
65+
--color-code-inline-text: #04825b;
66+
--color-code-inline-bg: #f3f4f6;
6767

6868
--color-code-block-bg: #fcfcfc;
6969
--color-code-block-text: #334155;
@@ -172,8 +172,8 @@
172172
--color-background-active: #1a1a1a;
173173
--color-text-accent: #878787;
174174

175-
--color-code-inline-bg: #1a1a1a;
176-
--color-code-inline-text: #f5f5f5;
175+
--color-code-inline-text: #34d399;
176+
--color-code-inline-bg: #1a1a1a;
177177

178178
--color-code-block-bg: #1a1a1a;
179179
--color-code-block-text: #e2e8f0;
@@ -289,4 +289,9 @@
289289
*::-webkit-scrollbar-thumb {
290290
cursor: default;
291291
}
292+
293+
.prose :not(pre) > code::before,
294+
.prose :not(pre) > code::after {
295+
content: none !important;
296+
}
292297
}

docs/app/ui/inline-code.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const InlineCode = (props: ComponentPropsWithoutRef<"code">) => {
1414
return (
1515
<code
1616
{...props}
17-
className="rounded bg-[var(--color-code-inline-bg)] p-0.5 text-[var(--color-code-inline-text)] text-xs sm:text-sm md:text-base"
17+
className="rounded bg-[var(--color-code-inline-bg)] py-1 px-2 mx-1 text-[var(--color-code-inline-text)] text-xs sm:text-sm md:text-base "
1818
/>
1919
)
2020
}

0 commit comments

Comments
 (0)