Skip to content

Commit 5689517

Browse files
authored
chore: upgrade to Docusaurus v3 (#257)
1 parent 9d606a6 commit 5689517

File tree

6 files changed

+7701
-21755
lines changed

6 files changed

+7701
-21755
lines changed

README.md

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,36 +19,41 @@ The [daily.dev docs](https://docs.daily.dev/) are designed to help our community
1919
Do this to download the forked copy of this repository to your computer:
2020

2121
```bash
22-
$ git clone https://github.com/dailydotdev/docs.git
22+
git clone https://github.com/dailydotdev/docs.git
2323
```
2424

2525
Step into the directory:
2626
```bash
27-
$ cd docs
27+
cd docs
28+
```
29+
30+
Ensure you are on the correct node version:
31+
```bash
32+
nvm use
2833
```
2934

3035
Install the dependencies:
3136
```bash
3237
# with npm
33-
$ npm i
38+
npm i
3439

3540
# or with yarn
36-
$ yarn
41+
yarn
3742

3843
# or with pnpm
39-
$ pnpm i
44+
pnpm i
4045
```
4146

4247
Run the local dev environment:
4348
```bash
4449
# with npm
45-
$ npm run start
50+
npm run start
4651

4752
# or with yarn
48-
$ yarn start
53+
yarn start
4954

5055
# or with pnpm
51-
$ pnpm start
56+
pnpm start
5257
```
5358

5459
Now Visit:
@@ -62,25 +67,25 @@ http://localhost:3000
6267

6368
```bash
6469
# with npm
65-
$ npm run build
70+
npm run build
6671

6772
# or with yarn
68-
$ yarn build
73+
yarn build
6974

7075
# or with pnpm
71-
$ pnpm build
76+
pnpm build
7277
```
7378
- Run the server:
7479

7580
```bash
7681
# with npm
77-
$ npm run serve
82+
npm run serve
7883

7984
# or with yarn
80-
$ yarn serve
85+
yarn serve
8186

8287
# or with pnpm
83-
$ pnpm serve
88+
pnpm serve
8489
```
8590
The server is available by default on port `3000`.
8691

@@ -89,13 +94,13 @@ The server is available by default on port `3000`.
8994
From the folder where the docker-compose.yml file is located, type:
9095

9196
```bash
92-
$ docker compose up --build
97+
docker compose up --build
9398
```
9499
The server is available by default on port `3000`.
95100

96101
## 🍿 Test
97102
```bash
98-
$ docker run -p 3000:3000 francescoxx/dailydev-docs:0.9.3
103+
docker run -p 3000:3000 francescoxx/dailydev-docs:0.9.3
99104
```
100105

101106
## 🙏 Thanks to all Contributors

docusaurus.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// @ts-check
22
// Note: type annotations allow type checking and IDEs autocompletion
33

4-
const lightCodeTheme = require('prism-react-renderer/themes/github');
5-
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
4+
const lightCodeTheme = require('prism-react-renderer').themes.github;
5+
const darkCodeTheme = require('prism-react-renderer').themes.dracula;
66

77
/** @type {import('@docusaurus/types').Config} */
88
const config = {
@@ -81,7 +81,7 @@ const config = {
8181
docId: 'intro',
8282
position: 'left',
8383
},
84-
84+
8585
{
8686
label: 'Changelog',
8787
href: 'https://app.daily.dev/sources/daily_updates',

0 commit comments

Comments
 (0)