Skip to content

Commit

Permalink
Merge pull request #615 from shelar1423/patch3
Browse files Browse the repository at this point in the history
FIX: added script in package.json of docs and added instructions to run nextra-DocsGPT locally
  • Loading branch information
dartpain authored Oct 17, 2023
2 parents e69fab8 + f886dfb commit 49a4b11
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 2 deletions.
54 changes: 53 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,53 @@
# nextra-docsgpt
# nextra-docsgpt

## Setting Up Docs Folder of DocsGPT Locally

### 1. Clone the DocsGPT repository:

```
git clone https://github.com/arc53/DocsGPT.git
```
### 2. Navigate to the docs folder:

```
cd DocsGPT/docs
```
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:

```
node --version
npm --version
```
### 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:

```
npm install --global yarn
```
### 6. Install the project dependencies using yarn:

```
yarn install
```
### 7. After the successful installation of the project dependencies, start the local server:

```
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.

- 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.
8 changes: 7 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{
"scripts":{
"dev": "next dev",
"build": "next build",
"start": "next start"
},
"license": "MIT",
"dependencies": {
"@vercel/analytics": "^1.0.2",
"docsgpt": "^0.2.4",
Expand All @@ -8,4 +14,4 @@
"react": "^18.2.0",
"react-dom": "^18.2.0"
}
}
}

2 comments on commit 49a4b11

@vercel
Copy link

@vercel vercel bot commented on 49a4b11 Oct 17, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

nextra-docsgpt – ./docs

nextra-docsgpt-git-main-arc53.vercel.app
nextra-docsgpt.vercel.app
nextra-docsgpt-arc53.vercel.app
docs.docsgpt.co.uk

@vercel
Copy link

@vercel vercel bot commented on 49a4b11 Oct 17, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

docs-gpt – ./frontend

docs-gpt-brown.vercel.app
docs-gpt-git-main-arc53.vercel.app
docs-gpt-arc53.vercel.app

Please sign in to comment.