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

perf: docusaurus version upgrade [3.6.3] #558

Merged
merged 3 commits into from
Nov 25, 2024
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
3 changes: 0 additions & 3 deletions babel.config.js

This file was deleted.

4 changes: 4 additions & 0 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ export default {
},
},
},
future: {
experimental_faster: true, // Required for faster production builds. For reference: https://docusaurus.io/blog/releases/3.6#adoption-strategy
},
presets: [
[
"classic",
Expand Down Expand Up @@ -160,6 +163,7 @@ export default {
type: "all",
copyright: `Copyright © ${new Date().getFullYear()} Tailcall, Inc.`,
},
onInlineAuthors: "ignore", // TODO: Create an authors.yml file to reduce authors info. redundancy
},
],
[
Expand Down
7,357 changes: 5,001 additions & 2,356 deletions package-lock.json

Large diffs are not rendered by default.

23 changes: 12 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@
"cypress": "cypress run"
},
"dependencies": {
"@docusaurus/core": "3.4.0",
"@docusaurus/plugin-client-redirects": "3.4.0",
"@docusaurus/plugin-content-blog": "^3.4.0",
"@docusaurus/plugin-google-gtag": "^3.4.0",
"@docusaurus/plugin-ideal-image": "^3.4.0",
"@docusaurus/preset-classic": "3.4.0",
"@docusaurus/theme-search-algolia": "3.4.0",
"@docusaurus/core": "3.6.3",
"@docusaurus/faster": "3.6.3",
"@docusaurus/plugin-client-redirects": "3.6.3",
"@docusaurus/plugin-content-blog": "3.6.3",
"@docusaurus/plugin-google-gtag": "3.6.3",
"@docusaurus/plugin-ideal-image": "3.6.3",
"@docusaurus/preset-classic": "3.6.3",
"@docusaurus/theme-search-algolia": "3.6.3",
"@mdx-js/react": "^3.0.1",
"autoprefixer": "^10.4.19",
"clsx": "^2.1.1",
Expand All @@ -53,10 +54,10 @@
"devDependencies": {
"@babel/core": "^7.24.7",
"@babel/eslint-parser": "^7.24.7",
"@docusaurus/eslint-plugin": "^3.4.0",
"@docusaurus/module-type-aliases": "3.4.0",
"@docusaurus/tsconfig": "3.4.0",
"@docusaurus/types": "3.4.0",
"@docusaurus/eslint-plugin": "3.6.3",
"@docusaurus/module-type-aliases": "3.6.3",
"@docusaurus/tsconfig": "3.6.3",
"@docusaurus/types": "3.6.3",
"@giscus/react": "^3.0.0",
"@typescript-eslint/eslint-plugin": "^7.14.1",
"@typescript-eslint/parser": "^7.14.1",
Expand Down
2 changes: 1 addition & 1 deletion src/theme/BlogPostItem/Category/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react"
import {BlogPostFrontMatter} from "@docusaurus/plugin-content-blog"
import {useBlogPost} from "@docusaurus/theme-common/internal"
import {useBlogPost} from "@docusaurus/plugin-content-blog/client"

export default function BlogPostItemCategory(): JSX.Element {
const {frontMatter} = useBlogPost()
Expand Down
2 changes: 1 addition & 1 deletion src/theme/BlogPostItem/Content/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react"
import clsx from "clsx"
import {blogPostContainerID} from "@docusaurus/utils-common"
import {useBlogPost} from "@docusaurus/theme-common/internal"
import {useBlogPost} from "@docusaurus/plugin-content-blog/client"
import MDXContent from "@theme/MDXContent"
import type {Props} from "@theme/BlogPostItem/Content"

Expand Down
2 changes: 1 addition & 1 deletion src/theme/BlogPostItem/Footer/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react"
import clsx from "clsx"
import {useBlogPost} from "@docusaurus/theme-common/internal"
import {useBlogPost} from "@docusaurus/plugin-content-blog/client"
import {ThemeClassNames} from "@docusaurus/theme-common"
import EditMetaRow from "@theme/EditMetaRow"
import ReadMoreLink from "@theme/BlogPostItem/Footer/ReadMoreLink"
Expand Down
2 changes: 1 addition & 1 deletion src/theme/BlogPostItem/Header/Author/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, {type Props as LinkProps} from "@docusaurus/Link"

import type {Props} from "@theme/BlogPostItem/Header/Author"
import type {Props} from "@theme/Blog/Components/Author"

function MaybeLink(props: LinkProps): JSX.Element {
if (props.href) {
Expand Down
6 changes: 3 additions & 3 deletions src/theme/BlogPostItem/Header/Authors/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
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 BlogAuthor from "@theme/Blog/Components/Author"
import type {Props} from "@theme/BlogPostItem/Header/Authors"
import styles from "./styles.module.css"

Expand All @@ -23,7 +23,7 @@ export default function BlogPostItemHeaderAuthors({className}: Props): JSX.Eleme
className={clsx(!imageOnly && "col col--6", imageOnly ? styles.imageOnlyAuthorCol : styles.authorCol)}
key={idx}
>
<BlogPostItemHeaderAuthor
<BlogAuthor
author={{
...author,
// Handle author images using relative paths
Expand Down
3 changes: 2 additions & 1 deletion src/theme/BlogPostItem/Header/Info/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import React from "react"
import clsx from "clsx"
import {translate} from "@docusaurus/Translate"
import {usePluralForm} from "@docusaurus/theme-common"
import {useBlogPost, useDateTimeFormat} from "@docusaurus/theme-common/internal"
import {useDateTimeFormat} 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
@@ -1,7 +1,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 styles from "./styles.module.css"
Expand Down
2 changes: 1 addition & 1 deletion src/theme/BlogPostItem/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react"
import BlogPostItemHeaderTitle from "@theme/BlogPostItem/Header/Title"
import BlogPostItemHeaderInfo from "@theme/BlogPostItem/Header/Info"
import BlogBackButton from "./Back"
import {useBlogPost} from "@docusaurus/theme-common/internal"
import {useBlogPost} from "@docusaurus/plugin-content-blog/client"
import BlogPostItemCategory from "../Category"

export default function BlogPostItemHeader(): JSX.Element {
Expand Down
2 changes: 1 addition & 1 deletion src/theme/BlogPostItem/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react"
import clsx from "clsx"
import {useBlogPost} from "@docusaurus/theme-common/internal"
import {useBlogPost} from "@docusaurus/plugin-content-blog/client"
import BlogPostItemContainer from "@theme/BlogPostItem/Container"
import BlogPostItemHeader from "@theme/BlogPostItem/Header"
import BlogPostItemContent from "@theme/BlogPostItem/Content"
Expand Down
2 changes: 1 addition & 1 deletion src/theme/DocItem/Layout/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,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/Layout/Provider/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import {composeProviders} from "@docusaurus/theme-common"
import {
ColorModeProvider,
AnnouncementBarProvider,
DocsPreferredVersionContextProvider,
ScrollControllerProvider,
NavbarProvider,
PluginHtmlClassNameProvider,
} from "@docusaurus/theme-common/internal"
import {DocsPreferredVersionContextProvider} from "@docusaurus/plugin-content-docs/client"
import GithubStarsProvider from "@site/src/components/shared/GithubStarsProvider"
import Footer from "@site/src/components/shared/Footer"
import Announcement from "@site/src/components/shared/Announcement"
Expand Down
Loading