Add docusaurus faster (#149)

Leads to about half the build time.

Reviewed-on: https://gitea.com/gitea/docs/pulls/149
Co-authored-by: TheFox0x7 <thefox0x7@noreply.gitea.com>
Co-committed-by: TheFox0x7 <thefox0x7@noreply.gitea.com>
This commit is contained in:
TheFox0x7
2025-01-10 19:15:45 +00:00
committed by techknowlogick
parent 1ddf6a1822
commit 301154989a
4 changed files with 1112 additions and 2 deletions

View File

@@ -155,7 +155,9 @@ const config = {
onBrokenLinks: 'warn',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.png',
future:{
experimental_faster: true
},
plugins: [
[
'docusaurus-plugin-plausible',

1107
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -17,6 +17,7 @@
},
"dependencies": {
"@docusaurus/core": "^3.4.0",
"@docusaurus/faster": "^3.7.0",
"@docusaurus/preset-classic": "^3.4.0",
"@easyops-cn/docusaurus-search-local": "^0.47.0",
"@emotion/react": "^11.11.3",

View File

@@ -16,7 +16,7 @@
border-color: var(--ifm-color-white);
}
.input:placeholder {
.input::placeholder {
color: var(--palette-pale-blue);
font-size: var(--font-size-normal);
font-weight: var(--ifm-font-weight-bold);