Skip to content

Commit

Permalink
Compatibility Modifications for docusaurus 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
anaclumos committed Aug 9, 2024
1 parent 9a4b30e commit 02374fe
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 12 deletions.
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion docusaurus-preset-classic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@docusaurus/plugin-sitemap": "3.5.0",
"@docusaurus/theme-classic": "3.5.0",
"@docusaurus/theme-common": "3.5.0",
"@docusaurus/theme-search-algolia": "3.5.0",
"@docusaurus/theme-search-algolia": "workspace:3.5.0",
"@docusaurus/types": "3.5.0"
},
"peerDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/
import { DEFAULT_SEARCH_TAG } from '@docusaurus/theme-common/internal'
import { useDocsContextualSearchTags } from '@docusaurus/plugin-content-docs/client'
import useDocusaurusContext from '@docusaurus/core/src/client/exports/useDocusaurusContext'
import useDocusaurusContext from '@docusaurus/core/lib/client/exports/useDocusaurusContext'
function useSearchTags() {
// only docs have custom search tags per version
const docsTags = useDocsContextualSearchTags()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import { DEFAULT_SEARCH_TAG } from '@docusaurus/theme-common/internal'
import { useDocsContextualSearchTags } from '@docusaurus/plugin-content-docs/client'
import useDocusaurusContext from '@docusaurus/core/src/client/exports/useDocusaurusContext'
import useDocusaurusContext from '@docusaurus/core/lib/client/exports/useDocusaurusContext'

function useSearchTags() {
// only docs have custom search tags per version
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"dependencies": {
"@docusaurus/core": "^3.5.0",
"@docusaurus/plugin-client-redirects": "^3.5.0",
"@docusaurus/preset-classic": "^3.5.0",
"@docusaurus/preset-classic": "workspace:^3.5.0",
"@docusaurus/theme-classic": "^3.5.0",
"@docusaurus/theme-common": "^3.5.0",
"@docusaurus/theme-mermaid": "^3.5.0",
Expand Down Expand Up @@ -53,6 +53,10 @@
"scc": "printf '\n## Stats\n' >> README.md && printf '\n```\n' >> README.md && scc . >> README.md && printf '```\n' >> README.md",
"write-translations": "docusaurus write-translations && docusaurus write-translations --locale ko"
},
"workspaces": [
"docusaurus-theme-search-algolia",
"docusaurus-preset-classic"
],
"trustedDependencies": [
"@swc/core",
"core-js",
Expand Down
2 changes: 1 addition & 1 deletion src/data/backlinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7220,7 +7220,7 @@ export const backlinks = {
"WebGPU": "- It has a built-in [[shader]] [[Link (Computer Systems)|linker]] and binding ..."
},
"Stripe Acquires Lemon Squeezy": {
"2024-08-02": "- [[Stripe Acquires Lemon Squeezy]]"
"2024-08-02": "- [[Stripe Acquires Lemon Squeezy]] -https://react.dev/reference/react/experimentaltaintObjectReference"
},
"My Raycast Wrapped of 2023": {
"2023-12-15": "- [[My Raycast Wrapped of 2023]]"
Expand Down
4 changes: 2 additions & 2 deletions src/theme/BlogPostItem/Header/Authors/index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react'
import clsx from 'clsx'

import { useBlogPost } from '@docusaurus/theme-common/internal'
import BlogPostItemHeaderAuthor from '@theme/BlogPostItem/Header/Author'
import { useBlogPost } from '@docusaurus/plugin-content-blog/client'
import BlogPostItemHeaderAuthor from '@theme/BlogPostItem/Header/Authors'
import type { Props } from '@theme/BlogPostItem/Header/Authors'
import styles from './styles.module.css'

Expand Down
2 changes: 1 addition & 1 deletion src/theme/BlogPostItem/Header/Info/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import clsx from 'clsx'
import { translate } from '@docusaurus/Translate'
import { usePluralForm } from '@docusaurus/theme-common'

import { useBlogPost } from '@docusaurus/theme-common/internal'
import { useBlogPost } from '@docusaurus/plugin-content-blog/client'
import type { Props } from '@theme/BlogPostItem/Header/Info'

import styles from './styles.module.css'
Expand Down
2 changes: 1 addition & 1 deletion src/theme/BlogPostItem/Header/Title/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import clsx from 'clsx'
import Link from '@docusaurus/Link'

import { useBlogPost } from '@docusaurus/theme-common/internal'
import { useBlogPost } from '@docusaurus/plugin-content-blog/client'
import type { Props } from '@theme/BlogPostItem/Header/Title'
import Balancer from 'react-wrap-balancer'

Expand Down
2 changes: 1 addition & 1 deletion src/theme/BlogPostItem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { WrapperProps } from '@docusaurus/types'
import Giscus from '@site/src/components/Giscus'
import PostNotice from '@site/src/components/PostNotice'

import { useBlogPost } from '@docusaurus/theme-common/internal'
import { useBlogPost } from '@docusaurus/plugin-content-blog/client'
import BrowserOnly from '@docusaurus/BrowserOnly'

type Props = WrapperProps<typeof BlogPostItemType>
Expand Down
2 changes: 1 addition & 1 deletion src/theme/DocItem/Layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react'
import clsx from 'clsx'
import { useWindowSize } from '@docusaurus/theme-common'

import { useDoc } from '@docusaurus/theme-common/internal'
import { useDoc } from '@docusaurus/plugin-content-docs/client'
import DocItemPaginator from '@theme/DocItem/Paginator'
import DocVersionBanner from '@theme/DocVersionBanner'
import DocVersionBadge from '@theme/DocVersionBadge'
Expand Down
2 changes: 1 addition & 1 deletion src/theme/DocItem/Metadata/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react'
import { PageMetadata } from '@docusaurus/theme-common'
import { useDoc } from '@docusaurus/theme-common/internal'
import { useDoc } from '@docusaurus/plugin-content-docs/client'
import Head from '@docusaurus/Head'

export default function DocItemMetadata(): JSX.Element {
Expand Down

0 comments on commit 02374fe

Please sign in to comment.