Skip to content

Commit 5078599

Browse files
committed
[dev] cleanup
1 parent 16e0987 commit 5078599

File tree

18 files changed

+11876
-33505
lines changed

18 files changed

+11876
-33505
lines changed

.github/workflows/deploy.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,18 @@ jobs:
1717
fetch-depth: 0
1818
- uses: actions/setup-node@v4
1919
with:
20-
node-version: 18
21-
cache: npm
20+
node-version: 22
21+
cache: yarn
2222

2323
- name: Install dependencies
24-
run: npm ci --legacy-peer-deps
24+
run: yarn install --frozen-lockfile
25+
26+
- name: Run typecheck
27+
run: yarn run typecheck
2528
- name: Build website
26-
run: npm run build
29+
run: yarn run build
30+
env:
31+
DOCUSAURUS_IGNORE_SSG_WARNINGS: true
2732

2833
- name: Upload Build Artifact
2934
uses: actions/upload-pages-artifact@v3

.github/workflows/test-deploy.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,15 @@ jobs:
1717
fetch-depth: 0
1818
- uses: actions/setup-node@v4
1919
with:
20-
node-version: 18
21-
cache: npm
20+
node-version: 22
21+
cache: yarn
2222

2323
- name: Install dependencies
24-
run: npm ci --legacy-peer-deps
24+
run: yarn install --frozen-lockfile
25+
26+
- name: Run typecheck
27+
run: yarn run typecheck
2528
- name: Test build website
26-
run: npm run build
29+
run: yarn run build
30+
env:
31+
DOCUSAURUS_IGNORE_SSG_WARNINGS: true

README.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,24 @@ This repository contains the documentation for the ReHLDS project, built using [
44

55
## Prerequisites
66

7-
- Node.js version 18 or higher
7+
- Node.js version 22 LTS
88
- NPM (comes with Node.js)
9+
- Install `yarn` (or `pnpm`, `bun`, etc. or use `npm`)
910

1011
## Getting Started
1112

1213
1. Clone the repository
14+
2. `node -v` Should print `v22.17.1` or other `22.x`
15+
3. `corepack enable yarn`
16+
4. `yarn -v`
1317

14-
2. Install the dependencies
18+
5. Install the dependencies
1519
```bash
16-
npm install
20+
yarn install --frozen-lockfile
1721
```
18-
3. Start the local development server
22+
1. Start the local development server
1923
```bash
20-
npm run start
24+
yarn start
2125
```
2226
This will launch the documentation at `http://localhost:3000` with hot reloading enabled. Any changes made to the content will automatically refresh the browser.
2327

@@ -38,7 +42,7 @@ This will launch the documentation at `http://localhost:3000` with hot reloading
3842

3943
To create a production build of the documentation:
4044
```npm
41-
npm run build
45+
yarn run build
4246
```
4347
The output will be in the `build` directory, which can be served by any static site hosting service.
4448

@@ -47,13 +51,13 @@ The output will be in the `build` directory, which can be served by any static s
4751
To deploy the documentation site, make sure to configure the deployment settings in `docusaurus.config.js` and run:
4852

4953
```npm
50-
npm run deploy
54+
yarn run deploy
5155
```
5256
## Type Checking
5357

5458
To check for TypeScript errors, run:
5559
```npm
56-
npm run typecheck
60+
yarn run typecheck
5761
```
5862
This will ensure that all TypeScript code adheres to type definitions.
5963

babel.config.js

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

bun.lockb

-603 KB
Binary file not shown.

docusaurus.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ const config: Config = {
3434
locales: ["en", "ru"],
3535
},
3636

37+
future: {
38+
v4: true, // opt-in for Docusaurus v4 planned changes
39+
experimental_faster: true, // turns Docusaurus Faster on globally
40+
},
41+
3742
presets: [
3843
[
3944
"classic",

0 commit comments

Comments
 (0)