Skip to content
Draft

Mem #48

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
4 changes: 3 additions & 1 deletion .github/workflows/prod_deploy_docusaurus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ jobs:
- run: npm run copy
- name: Build website
run: |
export NODE_OPTIONS="--max_old_space_size=15360"
export NODE_OPTIONS="--max-old-space-size=12288"
export DOCUSAURUS_IGNORE_SSG_WARNINGS=true
export DOCUSAURUS_PERF_LOGGER=true
export DOCUSAURUS_SSR_CONCURRENCY=8
yarn build

- name: sync to S3
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/stage_deploy_docusaurus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,16 @@ jobs:
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: |
sudo lshw -c memory
yarn install --frozen-lockfile

- run: npm run copy
- name: Build website
run: |
export NODE_OPTIONS="--max_old_space_size=15360"
export NODE_OPTIONS="--max-old-space-size=12288"
export DOCUSAURUS_IGNORE_SSG_WARNINGS=true
export DOCUSAURUS_PERF_LOGGER=true
export DOCUSAURUS_SSR_CONCURRENCY=8
if [[ $INPUTS_VERSIONS == 'TopTwo' ]]; then
export BUILD_FAST=true
fi
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
22.14
24
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ yarn install --frozen-lockfile
git clone git@github.com:StarRocks/starrocks.git temp
npm run copy
export DOCUSAURUS_IGNORE_SSG_WARNINGS=true
export NODE_OPTIONS="--max-old-space-size=12192"
export NODE_OPTIONS="--max-old-space-size=12288"
yarn clear && yarn build && yarn serve
```

Expand Down
3 changes: 1 addition & 2 deletions build.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ yarn install --frozen-lockfile
git clone git@github.com:StarRocks/starrocks.git temp
npm run copy
export DOCUSAURUS_IGNORE_SSG_WARNINGS=true
export BUILD_FAST=true
export NODE_OPTIONS="--max-old-space-size=12192"
export NODE_OPTIONS="--max-old-space-size=12288 --trace-gc"
yarn clear && yarn build && yarn serve
15 changes: 14 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,19 @@ const config = {

future: {
v4: true,
faster: {
rspackBundler: true,
// Persistent cache is only useful for local iterative builds.
// On CI the .docusaurus dir is not cached between runs, so writing
// the cache on every run adds large disk I/O with no benefit.
rspackPersistentCache: !process.env.CI,
swcJsLoader: true,
swcJsMinimizer: true,
swcHtmlMinimizer: true,
lightningCssMinimizer: true,
mdxCrossCompilerCache: true,
ssgWorkerThreads: true,
},
},

i18n: {
Expand Down Expand Up @@ -93,7 +106,7 @@ const config = {
}
})(),

//onlyIncludeVersions: ['4.1', '4.0', '3.5', '3.4', '3.3', 3.2', '3.1'],
//onlyIncludeVersions: ['4.1', '4.0', '3.5', '3.4', '3.3', '3.2', '3.1'],
onlyIncludeVersions: (() => {
if (isVersioningDisabled) {
return ['current'];
Expand Down
33 changes: 13 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "starrocks",
"name": "my-website",
"version": "0.0.0",
"private": true,
"scripts": {
Expand All @@ -16,32 +16,25 @@
"write-heading-ids": "docusaurus write-heading-ids"
},
"dependencies": {
"@algolia/client-search": "^5.45.0",
"@copilotkit/react-core": "1.9.3",
"@copilotkit/react-ui": "1.9.3",
"@docsearch/react": "4",
"@docusaurus/core": "^3.10.0",
"@docusaurus/faster": "^3.10.0",
"@copilotkit/react-ui": "^1.55.3",
"@docusaurus/core": "3.10.0",
"@docusaurus/faster": "3.10.0",
"@docusaurus/plugin-client-redirects": "^3.10.0",
"@docusaurus/preset-classic": "^3.10.0",
"@docusaurus/theme-search-algolia": "^3.10.0",
"@docusaurus/preset-classic": "3.10.0",
"@mdx-js/react": "^3.0.0",
"@radix-ui/react-accordion": "^1.2.12",
"@radix-ui/react-icons": "^1.3.2",
"@tailwindcss/postcss": "^4.1.16",
"@tailwindcss/postcss": "^4.2.2",
"clsx": "^2.0.0",
"docusaurus-plugin-hubspot": "^1.0.1",
"fs-extra": "^11.1.1",
"postcss": "^8.5.6",
"posthog-js": "^1.97.1",
"prism-react-renderer": "^2.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"tailwindcss": "^4.1.16"
"posthog-js": "^1.369.0",
"prism-react-renderer": "^2.3.0",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
"devDependencies": {
"@docusaurus/module-type-aliases": "^3.10.0",
"@docusaurus/types": "^3.10.0"
"@docusaurus/module-type-aliases": "3.10.0",
"@docusaurus/types": "3.10.0"
},
"browserslist": {
"production": [
Expand All @@ -56,6 +49,6 @@
]
},
"engines": {
"node": ">=18.0"
"node": ">=20.0"
}
}
Loading