Skip to content

Commit 6847abf

Browse files
committed
doc: formatting
1 parent 708a7be commit 6847abf

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

docs/pages/index.mdx

+8-7
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,14 @@ Replace `YOUR_OAI_KEY` with your actual OpenAI API Key, then execute:
6565
<Tabs.Tab >
6666
```sh
6767
docker run -d --name npi --pull always \
68-
-p 9140:9140 \
69-
-p 9141:9141 \
70-
-e OPENAI_API_KEY=YOUR_OAI_KEY npiai/npi-mac:latest
68+
-p 9140:9140 \
69+
-p 9141:9141 \
70+
-e OPENAI_API_KEY=YOUR_OAI_KEY npiai/npi-mac:latest
7171
```
7272
</Tabs.Tab>
7373
<Tabs.Tab >
7474
```sh
75-
docker run -d --name npi --pull always \
75+
docker run -d --name npi --pull always \
7676
-p 9140:9140 \
7777
-p 9141:9141 \
7878
-e OPENAI_API_KEY=YOUR_OAI_KEY npiai/npi:latest
@@ -83,12 +83,13 @@ Replace `YOUR_OAI_KEY` with your actual OpenAI API Key, then execute:
8383

8484
Confirm server connectivity by running `npi connect test`. If you receive a `server connected` message, the setup is successful. Otherwise, consult the logs with `docker logs npi` and report issues to [NPi GitHub Repository](https://github.com/npi-ai/npi/issues/new).
8585

86-
### Authorize NPi to access your GitHub account
86+
### Authorize NPi to Access Your GitHub Account
87+
88+
Generate a new token via [GitHub Tokens Page](https://github.com/settings/tokens) for NPi. You may need to grant the `repo` scope so that NPi can access repositories on behalf of you. ([Read more about scopes](https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/scopes-for-oauth-apps))
8789

88-
Generate a new token via [GitHub Tokens Page](https://github.com/settings/tokens) for NPi, you may need to grant the `repo` scope so that NPi can access repositories on behalf of you. ([Read more about scopes](https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/scopes-for-oauth-apps))
8990
![grant-repo-scope](../assets/github-token-grant-repo.png)
9091

91-
and authorize NPi's access to your GitHub account with the following command.
92+
Then, authorize NPi's access to your GitHub account with the following command:
9293

9394
```sh
9495
npi auth github --access-token YOUR_GITHUB_ACCESS_TOKEN

0 commit comments

Comments
 (0)