diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml new file mode 100644 index 0000000..ab0c2fd --- /dev/null +++ b/.github/workflows/npm-publish.yml @@ -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!" diff --git a/package.json b/package.json index bedad94..48268d8 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/components/anchor.tsx b/src/components/anchor.tsx index 21b904a..d28ef25 100644 --- a/src/components/anchor.tsx +++ b/src/components/anchor.tsx @@ -28,7 +28,7 @@ export const Anchor = forwardRef(function ( {...props} > {children} - (opens in a new tab) + (opens in a new tab) ) } diff --git a/src/components/navbar.tsx b/src/components/navbar.tsx index 2fdccce..e2b21b1 100644 --- a/src/components/navbar.tsx +++ b/src/components/navbar.tsx @@ -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' diff --git a/src/constants.tsx b/src/constants.tsx index ab952ea..bee2323 100644 --- a/src/constants.tsx +++ b/src/constants.tsx @@ -292,7 +292,7 @@ export const DEFAULT_THEME: DocsThemeConfig = { icon: ( <> - GitHub + GitHub ) },