Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 5 additions & 0 deletions .changeset/eleven-files-nail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@alauda/doom": patch
---

chore: bump rspress to v2.0.0-beta.26
56 changes: 28 additions & 28 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,27 +59,27 @@
},
"dependencies": {
"@cspell/eslint-plugin": "^8.19.4 || ^9.2.0",
"@eslint-react/eslint-plugin": "^1.52.3",
"@inquirer/prompts": "^7.7.1",
"@eslint-react/eslint-plugin": "^1.52.4",
"@inquirer/prompts": "^7.8.2",
"@openapi-contrib/openapi-schema-to-json-schema": "^5.1.0",
"@playwright/browser-chromium": "^1.54.1",
"@rsbuild/plugin-react": "^1.3.4",
"@rsbuild/plugin-sass": "^1.3.3",
"@rsbuild/plugin-svgr": "^1.2.1",
"@rsbuild/plugin-yaml": "^1.0.2",
"@rspress/core": "2.0.0-beta.22",
"@rspress/plugin-algolia": "2.0.0-beta.22",
"@rspress/plugin-llms": "2.0.0-beta.22",
"@rspress/shared": "2.0.0-beta.22",
"@shikijs/transformers": "^3.8.1",
"@playwright/browser-chromium": "^1.54.2",
"@rsbuild/plugin-react": "^1.3.5",
"@rsbuild/plugin-sass": "^1.3.5",
"@rsbuild/plugin-svgr": "^1.2.2",
"@rsbuild/plugin-yaml": "^1.0.3",
"@rspress/core": "2.0.0-beta.26",
"@rspress/plugin-algolia": "2.0.0-beta.26",
"@rspress/plugin-llms": "2.0.0-beta.26",
"@rspress/shared": "2.0.0-beta.26",
"@shikijs/transformers": "^3.9.2",
"@total-typescript/ts-reset": "^0.6.1",
"chokidar": "^4.0.3",
"cli-progress": "^3.12.0",
"clsx": "^2.1.1",
"commander": "^13.1.0 || ^14.0.0",
"ejs": "^3.1.10",
"es-toolkit": "^1.39.7",
"eslint": "^9.31.0",
"es-toolkit": "^1.39.9",
"eslint": "^9.33.0",
"eslint-plugin-mdx": "^3.6.2",
"globals": "^16.3.0",
"html-tag-names": "^2.1.0",
Expand All @@ -90,13 +90,13 @@
"mdast-util-to-markdown": "^2.1.2",
"mdast-util-to-string": "^4.0.0",
"mermaid": "^11.9.0",
"openai": "^5.10.2",
"openai": "^5.12.2",
"openapi-types": "^12.1.3",
"p-ratelimit": "^1.0.1",
"pdf-lib": "^1.17.1",
"pdf-merger-js": "^5.1.2",
"picomatch": "^4.0.3",
"playwright": "^1.54.1",
"playwright": "^1.54.2",
"pluralize": "^8.0.0",
"react-markdown": "^10.1.0",
"rehype-raw": "^7.0.0",
Expand All @@ -113,49 +113,49 @@
"remark-mdx": "^3.1.0",
"remark-message-control": "^8.0.0",
"remark-stringify": "^11.0.0",
"shiki": "^3.8.1",
"shiki": "^3.9.2",
"simple-git": "^3.28.0",
"string-width": "^7.2.0",
"swagger2openapi": "^7.0.8",
"tinyglobby": "^0.2.14",
"type-fest": "^4.41.0",
"typescript": "^5.8.3",
"typescript-eslint": "^8.38.0",
"typescript": "^5.9.2",
"typescript-eslint": "^8.39.1",
"unified": "^11.0.5",
"unified-lint-rule": "^3.0.1",
"unist-util-position": "^5.0.0",
"unist-util-visit-parents": "^6.0.1",
"x-fetch": "^0.2.6",
"yaml": "^2.8.0",
"yaml": "^2.8.1",
"yoctocolors": "^2.1.1"
},
"devDependencies": {
"@changesets/changelog-github": "^0.5.1",
"@changesets/cli": "^2.29.5",
"@eslint/js": "^9.31.0",
"@eslint/js": "^9.33.0",
"@swc-node/register": "^1.10.10",
"@swc/core": "1.13.2",
"@swc/core": "1.13.3",
"@types/cli-progress": "^3.11.6",
"@types/ejs": "^3.1.5",
"@types/mdast": "^4.0.4",
"@types/node": "^22.16.5",
"@types/picomatch": "^4.0.1",
"@types/node": "^22.17.1",
"@types/picomatch": "^4.0.2",
"@types/pluralize": "^0.0.33",
"@types/react": "^19.1.8",
"@types/react-dom": "^19.1.6",
"@types/react": "^19.1.10",
"@types/react-dom": "^19.1.7",
"@types/swagger2openapi": "^7.0.4",
"@unts/patch-package": "^8.1.1",
"clean-pkg-json": "^1.3.0",
"eslint-import-resolver-typescript": "^4.4.4",
"eslint-plugin-import-x": "^4.16.1",
"eslint-plugin-react-hooks": "^5.2.0",
"eslint-plugin-regexp": "^2.9.0",
"eslint-plugin-regexp": "^2.10.0",
"nano-staged": "^0.8.0",
"npm-run-all2": "^8.0.4",
"prettier": "^3.6.2",
"prettier-plugin-pkg": "^0.21.2",
"prettier-plugin-properties": "^0.3.0",
"simple-git-hooks": "^2.13.0",
"simple-git-hooks": "^2.13.1",
"type-coverage": "^2.29.7",
"yarn-berry-deduplicate": "^6.1.3"
},
Expand Down
2 changes: 1 addition & 1 deletion src/cli/html-export-pdf/core/outline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export async function getOutlineNodes(
} else {
const newNode: OutlineNode = {
// http://perfectionkills.com/the-poor-misunderstood-innerText/
title: tag.textContent?.trim().replace(/^#|#$/, '') ?? '',
title: tag.textContent.trim().replace(/^#|#$/, ''),
destination: dest,
children: [],
depth: orderDepth,
Expand Down
2 changes: 1 addition & 1 deletion src/cli/html-export-pdf/core/printer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export class Printer extends EventEmitter {
const meta: Meta = {}
const title = document.querySelector('title')
if (title) {
meta.title = title.textContent?.trim()
meta.title = title.textContent.trim()
}

const lang = document.querySelector('html')?.getAttribute('lang')
Expand Down
1 change: 0 additions & 1 deletion src/cli/load-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@ const getCommonConfig = async ({
],
},
markdown: {
checkDeadLinks: true,
shiki: {
transformers: [
// builtin transformers
Expand Down
1 change: 1 addition & 0 deletions src/global/SiteOverrides/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const concatTitle = (title: string, suffix?: string) => {
}

export const SiteOverrides = () => {
// eslint-disable-next-line @typescript-eslint/no-deprecated -- `usePage` is not exported...
const { siteData, page } = usePageData()
const {
pageType,
Expand Down
1 change: 1 addition & 0 deletions src/global/VersionsNav/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ if (!isProduction()) {
}

const VersionsNav_ = () => {
// eslint-disable-next-line @typescript-eslint/no-deprecated -- `usePage` is not exported...
const { siteData } = usePageData()

const lang = useLang()
Expand Down
1 change: 1 addition & 0 deletions src/runtime/components/ExternalSiteLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const ExternalSiteLink_ = ({
}: ExternalSiteLinkProps) => {
const isPrint = useIsPrint()

// eslint-disable-next-line @typescript-eslint/no-deprecated -- `usePage` is not exported...
const { siteData } = usePageData()

const site = useMemo(
Expand Down
1 change: 1 addition & 0 deletions src/runtime/components/OpenAPIPath.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ export const OpenAPIPath = ({
openapiPath: openapiPath_,
pathPrefix: pathPrefix_,
}: OpenAPIPathProps) => {
// eslint-disable-next-line @typescript-eslint/no-deprecated -- `usePage` is not exported...
const { page } = usePageData()

const pathPrefix = pathPrefix_ ?? (virtual.pathPrefix || '')
Expand Down
1 change: 1 addition & 0 deletions src/runtime/components/OpenAPIRef.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ export const OpenAPIRef = ({
isCommonRef = true,
collectRefs = true,
}: OpenAPIRefProps) => {
// eslint-disable-next-line @typescript-eslint/no-deprecated -- `usePage` is not exported...
const { page } = usePageData()

let uid = useUid()
Expand Down
6 changes: 4 additions & 2 deletions src/runtime/components/Overview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ import {
isEqualPath,
normalizeHrefInRuntime as normalizeHref,
usePageData,
useSidebar,
} from '@rspress/core/runtime'
import { Link, renderInlineMarkdown, useSidebarData } from '@rspress/core/theme'
import { Link, renderInlineMarkdown } from '@rspress/core/theme'
import type { Header, NormalizedSidebarGroup } from '@rspress/shared'
import { Fragment, useCallback, useMemo } from 'react'

Expand Down Expand Up @@ -62,6 +63,7 @@ export function Overview(props: {
const {
siteData,
page: { routePath, frontmatter, title },
// eslint-disable-next-line @typescript-eslint/no-deprecated -- `usePage` is not exported...
} = usePageData()
const { content, groups: customGroups, defaultGroupTitle = 'Others' } = props

Expand All @@ -81,7 +83,7 @@ export function Overview(props: {
[pages, subFilter],
)

let overviewSidebarGroups = useSidebarData()
let overviewSidebarGroups = useSidebar()

if (
overviewSidebarGroups[0] &&
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/hooks/useIsPrint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function useIsPrintMedia() {
const [isPrint, changeIsPrint] = useState(!!printMediaQuery?.matches)

const onChange = useCallback((mqList: MediaQueryListEvent) => {
changeIsPrint(!!mqList.matches)
changeIsPrint(mqList.matches)
}, [])

useEffect(() => {
Expand Down
1 change: 1 addition & 0 deletions src/theme.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ const getClosestSidebar = (sidebarItems: DoomSidebar[], pathname: string) => {
export const Layout = () => {
const {
siteData: { lang: siteLang, themeConfig },
// eslint-disable-next-line @typescript-eslint/no-deprecated -- `usePage` is not exported...
} = usePageData()

const lang = useLang()
Expand Down
Loading