Skip to content

Commit

Permalink
chore: upgrade to Docusaurus v3 (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
rebelchris authored Nov 3, 2023
1 parent 9d606a6 commit 5689517
Show file tree
Hide file tree
Showing 6 changed files with 7,701 additions and 21,755 deletions.
37 changes: 21 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,36 +19,41 @@ The [daily.dev docs](https://docs.daily.dev/) are designed to help our community
Do this to download the forked copy of this repository to your computer:

```bash
$ git clone https://github.com/dailydotdev/docs.git
git clone https://github.com/dailydotdev/docs.git
```

Step into the directory:
```bash
$ cd docs
cd docs
```

Ensure you are on the correct node version:
```bash
nvm use
```

Install the dependencies:
```bash
# with npm
$ npm i
npm i

# or with yarn
$ yarn
yarn

# or with pnpm
$ pnpm i
pnpm i
```

Run the local dev environment:
```bash
# with npm
$ npm run start
npm run start

# or with yarn
$ yarn start
yarn start

# or with pnpm
$ pnpm start
pnpm start
```

Now Visit:
Expand All @@ -62,25 +67,25 @@ http://localhost:3000

```bash
# with npm
$ npm run build
npm run build

# or with yarn
$ yarn build
yarn build

# or with pnpm
$ pnpm build
pnpm build
```
- Run the server:

```bash
# with npm
$ npm run serve
npm run serve

# or with yarn
$ yarn serve
yarn serve

# or with pnpm
$ pnpm serve
pnpm serve
```
The server is available by default on port `3000`.

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

```bash
$ docker compose up --build
docker compose up --build
```
The server is available by default on port `3000`.

## 🍿 Test
```bash
$ docker run -p 3000:3000 francescoxx/dailydev-docs:0.9.3
docker run -p 3000:3000 francescoxx/dailydev-docs:0.9.3
```

## 🙏 Thanks to all Contributors
Expand Down
6 changes: 3 additions & 3 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion

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

/** @type {import('@docusaurus/types').Config} */
const config = {
Expand Down Expand Up @@ -81,7 +81,7 @@ const config = {
docId: 'intro',
position: 'left',
},

{
label: 'Changelog',
href: 'https://app.daily.dev/sources/daily_updates',
Expand Down
Loading

1 comment on commit 5689517

@vercel
Copy link

@vercel vercel bot commented on 5689517 Nov 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.