Skip to content
Open
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
18 changes: 11 additions & 7 deletions docusaurus.config.js → docusaurus.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
const path = require('path');
const { themes } = require('prism-react-renderer');
const progress = require("./scripts/progress_lang.json");
import path from 'node:path';
import { themes } from 'prism-react-renderer';
import progress from "./scripts/progress_lang.json" with { type: "json" };
import type { Config } from '@docusaurus/types';
import type * as Preset from '@docusaurus/preset-classic';

const GITHUB_URL = 'https://github.com/pnpm/pnpm';
const GITHUB_SPONSOR_URL = 'https://github.com/sponsors/pnpm';
Expand Down Expand Up @@ -29,7 +31,7 @@ function makeEditUrl (locale, path1, path2) {
return `https://github.com/pnpm/${PROJECT_NAME}/edit/main/${path1}/${path2}`;
}

module.exports={
const docusaurusConfig = {
"title": "pnpm",
"tagline": "Fast, disk space efficient package manager",
"url": "https://pnpm.io",
Expand Down Expand Up @@ -72,7 +74,7 @@ module.exports={
"theme": {
customCss: require.resolve('./src/css/customTheme.css'),
}
}
} satisfies Preset.Options
]
],
"plugins": [
Expand Down Expand Up @@ -291,7 +293,7 @@ module.exports={
"indexName": "pnpm",
"contextualSearch": true,
},
},
} satisfies Preset.ThemeConfig,
i18n: {
defaultLocale: DEFAULT_LOCALE,
locales: LOCALE_CI ? [LOCALE_CI] : ['en', 'it', 'zh', 'ja', 'ko', 'pt', 'zh-TW', 'ru', 'uk', 'fr', 'tr', 'es', 'id'],
Expand Down Expand Up @@ -320,4 +322,6 @@ module.exports={
// de: { label: `Deutsch (${progress["de"].translationProgress}%)` },
},
},
}
} satisfies Config;

export default docusaurusConfig;
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
},
"devDependencies": {
"@crowdin/crowdin-api-client": "1.41.2",
"@docusaurus/types": "^3.8.1",
"@types/node": "^20.12.2",
"shx": "^0.3.4",
"ts-node": "10.9.2"
Expand Down
27 changes: 12 additions & 15 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.