Skip to content

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
amcdnl committed Jun 7, 2024
1 parent 7669f09 commit dde0fd8
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 3 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: publish npm package

on:
workflow_dispatch

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18"
- run: npm ci
- run: npm run build
- uses: JS-DevTools/npm-publish@v2
with:
token: ${{ secrets.NPM_TOKEN }}
- if: ${{ steps.publish.outputs.type }}
run: echo "Version changed!"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "reablocks-docs-theme",
"version": "1.0.0",
"version": "1.0.1",
"description": "A Nextra theme for documentation reablocks site.",
"repository": "https://github.com/reaviz/reablocks-docs-theme",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/components/anchor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const Anchor = forwardRef<HTMLAnchorElement, AnchorProps>(function (
{...props}
>
{children}
<span className="nx-sr-only nx-select-none"> (opens in a new tab)</span>
<span suppressHydrationWarning className="nx-sr-only nx-select-none"> (opens in a new tab)</span>
</a>
)
}
Expand Down
1 change: 1 addition & 0 deletions src/components/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ function NavbarMenu({
href={
item.href || routes[key]?.route || menu.route + '/' + key
}
suppressHydrationWarning
className={cn(
'nx-relative nx-hidden nx-w-full nx-select-none nx-whitespace-nowrap nx-text-gray-600 hover:nx-text-gray-900 dark:nx-text-gray-400 dark:hover:nx-text-gray-100 md:nx-inline-block',
'nx-py-1.5 nx-transition-colors ltr:nx-pl-3 ltr:nx-pr-9 rtl:nx-pr-3 rtl:nx-pl-9'
Expand Down
2 changes: 1 addition & 1 deletion src/constants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ export const DEFAULT_THEME: DocsThemeConfig = {
icon: (
<>
<GitHubIcon />
<span className="nx-sr-only">GitHub</span>
<span className="nx-sr-only" suppressHydrationWarning>GitHub</span>
</>
)
},
Expand Down

0 comments on commit dde0fd8

Please sign in to comment.