DocsGPT/docs/README.md

52 lines
1.7 KiB
Markdown
Raw Normal View History

2023-10-16 05:29:25 +00:00
# nextra-docsgpt
## Setting Up Docs Folder of DocsGPT Locally
### 1. Clone the DocsGPT repository:
2023-10-29 21:59:17 +00:00
```bash
2023-10-16 05:29:25 +00:00
git clone https://github.com/arc53/DocsGPT.git
```
### 2. Navigate to the docs folder:
2023-10-29 21:59:17 +00:00
```bash
2023-10-16 05:29:25 +00:00
cd DocsGPT/docs
```
2023-10-29 21:59:17 +00:00
2023-10-16 05:29:25 +00:00
The docs folder contains the markdown files that make up the documentation. The majority of the files are in the pages directory. Some notable files in this folder include:
`index.mdx`: The main documentation file.
`_app.js`: This file is used to customize the default Next.js application shell.
`theme.config.jsx`: This file is for configuring the Nextra theme for the documentation.
### 3. Verify that you have Node.js and npm installed in your system. You can check by running:
2023-10-29 21:59:17 +00:00
```bash
2023-10-16 05:29:25 +00:00
node --version
npm --version
```
2023-10-29 21:59:17 +00:00
2023-10-16 05:29:25 +00:00
### 4. If not installed, download Node.js and npm from the respective official websites.
### 5. Once you have Node.js and npm running, proceed to install yarn - another package manager that helps to manage project dependencies:
2023-10-29 21:59:17 +00:00
```bash
2023-10-16 05:29:25 +00:00
npm install --global yarn
```
2023-10-29 21:59:17 +00:00
2023-10-16 05:29:25 +00:00
### 6. Install the project dependencies using yarn:
2023-10-29 21:59:17 +00:00
```bash
2023-10-16 05:29:25 +00:00
yarn install
```
2023-10-29 21:59:17 +00:00
2023-10-16 05:29:25 +00:00
### 7. After the successful installation of the project dependencies, start the local server:
2023-10-29 21:59:17 +00:00
```bash
2023-10-16 05:29:25 +00:00
yarn dev
```
- Now, you should be able to view the docs on your local environment by visiting `http://localhost:5000`. You can explore the different markdown files and make changes as you see fit.
2023-10-19 05:26:30 +00:00
- **Footnotes:** This guide assumes you have Node.js and npm installed. The guide involves running a local server using yarn, and viewing the documentation offline. If you encounter any issues, it may be worth verifying your Node.js and npm installations and whether you have installed yarn correctly.