Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renoun v8 upgrade #11

Merged
merged 36 commits into from
Jan 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
e3a1c93
test `Directory` feature
noxify Nov 15, 2024
9f024e5
updates
noxify Nov 18, 2024
11d9f52
update deps
noxify Nov 19, 2024
b971aa3
update
noxify Nov 19, 2024
0b176d8
update deps
noxify Nov 19, 2024
41799cc
testing 7.5.0
noxify Nov 19, 2024
dd8e551
update deps
noxify Nov 22, 2024
b23425b
update deps
noxify Nov 25, 2024
4f80a0d
update deps
noxify Nov 25, 2024
e797797
update deps
noxify Dec 8, 2024
8177c67
unable to read metadata?
noxify Dec 8, 2024
780030c
debug
noxify Dec 8, 2024
51fb8e3
working root layout with search tab calculation
noxify Dec 9, 2024
e4d5baa
working sidebar
noxify Dec 9, 2024
46e96fc
wip
noxify Dec 9, 2024
e248848
update deps
noxify Jan 20, 2025
c585e33
houston, we have a problem
noxify Jan 20, 2025
a2e4753
eslint: Unsafe assignment of an error typed value.eslint@typescript-e…
noxify Jan 20, 2025
1f9621f
update layout
noxify Jan 20, 2025
db2668f
* fix typing issue ( workaround? )
noxify Jan 20, 2025
0f9abbe
wip
noxify Jan 20, 2025
3bfd864
render page with FileContent
noxify Jan 21, 2025
d4e892b
working breadcrumb and metadata
noxify Jan 21, 2025
844e8ca
* add section grid
noxify Jan 21, 2025
956196a
fix docs sidebar
noxify Jan 21, 2025
8e3b135
* fix linting issues
noxify Jan 21, 2025
8ba0b0c
update deps
noxify Jan 21, 2025
347b26f
* fix format issues
noxify Jan 21, 2025
f948828
add missing doc block for `getSections`
noxify Jan 21, 2025
5b56cdb
fix siblings
noxify Jan 22, 2025
7a1ca2b
* remove debug prints
noxify Jan 22, 2025
d6b9b59
add ci
noxify Jan 22, 2025
83cdf70
add packageManger
noxify Jan 22, 2025
9a3abfe
remove cp
noxify Jan 22, 2025
1665b04
* enable prefetch
noxify Jan 22, 2025
2aa81ef
add prettierignore
noxify Jan 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/setup/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: "Setup and install"
description: "Common setup steps for Actions"

runs:
using: composite
steps:
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "pnpm"

- shell: bash
run: pnpm add -g turbo

- shell: bash
run: pnpm install
62 changes: 62 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: CI

on:
pull_request:
branches: ["*"]
push:
branches: ["main"]
merge_group:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}

# You can leverage Vercel Remote Caching with Turbo to speed up your builds
# @link https://turborepo.org/docs/core-concepts/remote-caching#remote-caching-on-vercel-builds
env:
FORCE_COLOR: 3

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup
uses: ./.github/setup

- name: Lint
run: pnpm lint

format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup
uses: ./.github/setup

- name: Format
run: pnpm format

typecheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup
uses: ./.github/setup

- name: Typecheck
run: pnpm typecheck

linkcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup
uses: ./.github/setup

- name: Unittest
run: pnpm lint:links
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pnpm-lock.yaml
71 changes: 0 additions & 71 deletions content/docs/aria-docs/getting-started/03.quick-start-guide.mdx

This file was deleted.

1 change: 0 additions & 1 deletion content/docs/aria-docs/react-hooks/use-notification.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ Before proceeding, ensure you have the following:
- [local file - relative path](../use-inventory)

- [local link - absolute path with hash](/docs/aria-docs/react-hooks/use-notification#prerequisites)
- [local link - absolute path with INVALID hash](/docs/aria-docs/react-hooks/use-notification#invalid-hash)

- [current file - only hash](#only-hash)

Expand Down
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import * as path from "node:path"
import { fixupPluginRules, includeIgnoreFile } from "@eslint/compat"
import eslint from "@eslint/js"
import nextPlugin from "@next/eslint-plugin-next"
import importPlugin from "eslint-plugin-import"
import importPlugin from "eslint-plugin-import-x"
import packageJson from "eslint-plugin-package-json/configs/recommended"
import reactPlugin from "eslint-plugin-react"
import hooksPlugin from "eslint-plugin-react-hooks"
Expand Down
17 changes: 4 additions & 13 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,15 @@ export default withMDX({
eslint: { ignoreDuringBuilds: true },
typescript: { ignoreBuildErrors: true },
images: { unoptimized: true },
// experimental: {
// parallelServerCompiles: true,
// webpackBuildWorker: true,
// },
webpack(config, { webpack }) {
config.resolve.extensionAlias = {
".js": [".ts", ".tsx", ".js"],
}

/* Silence critical dependency warnings for @ts-morph/common */
config.plugins.push(
new webpack.ContextReplacementPlugin(
/\/(@ts-morph\/common)\//,
(data) => {
for (const dependency of data.dependencies) {
delete dependency.critical
}
return data
},
),
)

return config
},
})
103 changes: 52 additions & 51 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,99 +1,100 @@
{
"name": "renoun-docs-template",
"version": "0.1.1",
"version": "0.2.0",
"private": true,
"type": "module",
"scripts": {
"build": "renoun next build && pnpm generate-pagefind",
"ct": "tsx src/test.ts",
"deps:check": "pnpm outdated -r",
"deps:update": "pnpm update -i -L -r",
"dev": "renoun next dev",
"format": "prettier --check . --ignore-path .gitignore",
"format": "prettier --check . --ignore-path .gitignore --ignore-path .prettierignore",
"format:fix": "prettier --check --write . --ignore-path .gitignore",
"generate-pagefind": "pagefind --site out --output-path out/pagefind",
"info": "next info",
"lint": "eslint",
"lint:fix": "eslint --fix",
"lint:links": "node --import ./src/register.js --import tsx/esm src/link-check.ts",
"preview": "tsx src/localserver.ts",
"renoun-test": "tsx src/test.ts",
"typecheck": "tsc --noEmit",
"ui": "shadcn"
},
"prettier": "./prettier.config.js",
"dependencies": {
"@getcanary/web": "1.0.12",
"@giscus/react": "3.0.0",
"@giscus/react": "3.1.0",
"@hapi/bourne": "3.0.0",
"@mdx-js/loader": "3.1.0",
"@mdx-js/node-loader": "3.1.0",
"@mdx-js/react": "3.1.0",
"@next/mdx": "15.0.3",
"@radix-ui/react-accordion": "^1.2.1",
"@radix-ui/react-collapsible": "1.1.1",
"@radix-ui/react-dialog": "1.1.2",
"@radix-ui/react-dropdown-menu": "2.1.2",
"@radix-ui/react-select": "^2.1.2",
"@radix-ui/react-slot": "1.1.0",
"@radix-ui/react-tabs": "1.1.1",
"@renoun/mdx": "1.2.1",
"@tanstack/react-table": "^8.20.5",
"class-variance-authority": "0.7.0",
"@next/mdx": "15.1.6",
"@radix-ui/react-accordion": "^1.2.2",
"@radix-ui/react-collapsible": "1.1.2",
"@radix-ui/react-dialog": "1.1.4",
"@radix-ui/react-dropdown-menu": "2.1.4",
"@radix-ui/react-select": "^2.1.4",
"@radix-ui/react-slot": "1.1.1",
"@radix-ui/react-tabs": "1.1.2",
"@renoun/mdx": "1.3.1",
"@tanstack/react-table": "^8.20.6",
"class-variance-authority": "0.7.1",
"clsx": "2.1.1",
"date-fns": "4.1.0",
"lucide-react": "0.460.0",
"mermaid": "11.4.0",
"lucide-react": "0.473.0",
"mermaid": "11.4.1",
"multimatch": "7.0.0",
"next": "15.0.3",
"next-themes": "0.4.3",
"next": "15.1.6",
"next-themes": "0.4.4",
"railroad-diagrams": "1.0.0",
"react": "19.0.0-rc-33c7bd9a-20241104",
"react-dom": "19.0.0-rc-33c7bd9a-20241104",
"react-element-to-jsx-string": "15.0.0",
"react": "19.0.0",
"react-dom": "19.0.0",
"react-element-to-jsx-string": "17.0.0",
"rehype-mdx-import-media": "^1.2.0",
"renoun": "7.0.0",
"restyle": "2.4.0",
"tailwind-merge": "2.5.4",
"renoun": "8.0.0",
"restyle": "3.1.1",
"tailwind-merge": "2.6.0",
"tailwindcss-animate": "1.0.7",
"tm-themes": "1.9.3",
"tm-themes": "1.9.8",
"ts-dot-prop": "2.1.4",
"zod": "3.23.8",
"zustand": "5.0.1"
"zod": "3.24.1",
"zustand": "5.0.3"
},
"devDependencies": {
"@eslint/compat": "1.2.3",
"@ianvs/prettier-plugin-sort-imports": "4.4.0",
"@next/eslint-plugin-next": "15.0.3",
"@tailwindcss/typography": "0.5.15",
"@eslint/compat": "1.2.5",
"@ianvs/prettier-plugin-sort-imports": "4.4.1",
"@next/eslint-plugin-next": "15.1.6",
"@tailwindcss/typography": "0.5.16",
"@types/mdx": "2.0.13",
"@types/node": "22.9.0",
"@types/react": "18.3.12",
"@types/react-dom": "18.3.1",
"@types/node": "22.10.7",
"@types/react": "19.0.7",
"@types/react-dom": "19.0.3",
"@types/serve-handler": "6.1.4",
"eslint": "9.15.0",
"eslint-config-next": "15.0.3",
"eslint-plugin-import": "2.31.0",
"eslint": "9.18.0",
"eslint-config-next": "15.1.6",
"eslint-plugin-import-x": "4.6.1",
"eslint-plugin-jsx-a11y": "6.10.2",
"eslint-plugin-package-json": "0.15.6",
"eslint-plugin-react": "7.37.2",
"eslint-plugin-react-hooks": "rc",
"eslint-plugin-package-json": "0.20.1",
"eslint-plugin-react": "7.37.4",
"eslint-plugin-react-hooks": "^5.1.0",
"mdast-util-to-string": "4.0.0",
"next-validate-link": "1.4.0",
"pagefind": "1.2.0",
"postcss": "8.4.49",
"prettier": "3.3.3",
"prettier-plugin-tailwindcss": "0.6.8",
"next-validate-link": "1.4.1",
"pagefind": "1.3.0",
"postcss": "8.5.1",
"prettier": "3.4.2",
"prettier-plugin-tailwindcss": "0.6.10",
"remark-parse": "11.0.0",
"serve-handler": "6.1.6",
"shadcn": "2.1.6",
"shadcn": "2.1.8",
"source-map-support": "0.5.21",
"tailwindcss": "3.4.15",
"tailwindcss": "3.4.17",
"tsx": "4.19.2",
"type-fest": "4.27.0",
"typescript": "5.6.3",
"typescript-eslint": "8.14.0",
"type-fest": "4.33.0",
"typescript": "5.7.3",
"typescript-eslint": "8.21.0",
"unified": "11.0.5"
},
"packageManager": "[email protected]",
"pnpm": {
"overrides": {
"minimist@<0.2.1": ">=0.2.1",
Expand Down
Loading
Loading