Skip to content

Commit bd662f5

Browse files
committed
Use docusaurus faster
1 parent 987055c commit bd662f5

File tree

10 files changed

+14723
-8706
lines changed

10 files changed

+14723
-8706
lines changed

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
node-version: "20"
5050

5151
- name: Install dependencies
52-
run: yarn install --frozen-lockfile
52+
run: yarn install --immutable
5353

5454
- name: Typecheck
5555
run: yarn typecheck

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Setup Pages
2929
uses: actions/configure-pages@v5
3030
- name: Install dependencies
31-
run: yarn install --frozen-lockfile
31+
run: yarn install --immutable
3232
- name: Build website
3333
run: yarn build
3434
- name: Upload artifact

.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.8.1",
19+
"@docusaurus/faster": "^3.8.1",
1920
"@docusaurus/plugin-client-redirects": "3.8.1",
2021
"@docusaurus/preset-classic": "3.8.1",
2122
"@mdx-js/react": "^3.1.1",
@@ -53,5 +54,6 @@
5354
},
5455
"engines": {
5556
"node": ">=18.0"
56-
}
57+
},
58+
"packageManager": "[email protected]"
5759
}

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, { JSX } 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>

0 commit comments

Comments
 (0)