Skip to content

Commit 5dc6058

Browse files
committed
Use docusaurus faster
1 parent 901f4b9 commit 5dc6058

File tree

8 files changed

+14763
-8818
lines changed

8 files changed

+14763
-8818
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,10 @@
1818
npm-debug.log*
1919
yarn-debug.log*
2020
yarn-error.log*
21+
22+
.yarn/*
23+
!.yarn/patches
24+
!.yarn/plugins
25+
!.yarn/releases
26+
!.yarn/sdks
27+
!.yarn/versions

.yarn/releases/yarn-4.7.0.cjs

Lines changed: 935 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
nodeLinker: node-modules
2+
3+
yarnPath: .yarn/releases/yarn-4.7.0.cjs

babel.config.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

docusaurus.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ const darkCodeTheme = require("prism-react-renderer").themes.dracula;
88

99
/** @type {import('@docusaurus/types').Config} */
1010
const config = {
11+
future: {
12+
experimental_faster: true,
13+
},
14+
1115
title: "Flathub Documentation",
1216
tagline: "Your Linux desktop apps in one place",
1317
favicon: "img/favicon.svg",

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
},
1717
"dependencies": {
1818
"@docusaurus/core": "3.7.0",
19+
"@docusaurus/faster": "^3.7.0",
1920
"@docusaurus/plugin-client-redirects": "3.7.0",
2021
"@docusaurus/preset-classic": "3.7.0",
2122
"@mdx-js/react": "^3.1.0",
@@ -52,5 +53,6 @@
5253
},
5354
"engines": {
5455
"node": ">=18.0"
55-
}
56+
},
57+
"packageManager": "yarn@4.7.0"
5658
}

src/pages/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from "react";
22
import Layout from "@theme/Layout";
33

4-
import FlathubDocs from "../../static/img/flathub-docs.svg";
4+
import FlathubDocsSvg from "../../static/img/flathub-docs.svg";
55

66
export default function Home(): JSX.Element {
77
return (
@@ -37,7 +37,7 @@ export default function Home(): JSX.Element {
3737
paddingBottom: "24px",
3838
}}
3939
>
40-
<FlathubDocs />
40+
<FlathubDocsSvg />
4141
</div>
4242

4343
<h2>Getting started</h2>

yarn.lock

Lines changed: 13809 additions & 8812 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)