File tree 4 files changed +50
-1
lines changed
4 files changed +50
-1
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " Docusaurus" ,
3
+ "image" : " mcr.microsoft.com/devcontainers/typescript-node:22-bookworm" ,
4
+ "features" : {},
5
+ "forwardPorts" : [3000 ],
6
+ "postCreateCommand" : " npm install" ,
7
+ "customizations" : {
8
+ "vscode" : {
9
+ "extensions" : [
10
+ " unifiedjs.vscode-mdx" ,
11
+ " esbenp.prettier-vscode" ,
12
+ " davidanson.vscode-markdownlint" ,
13
+ " redhat.vscode-yaml" ,
14
+ " yzhang.markdown-all-in-one"
15
+ ]
16
+ }
17
+ }
18
+ }
Original file line number Diff line number Diff line change 1
1
# CodeGate docs <!-- omit in toc -->
2
2
3
+ [ ![ GitHub deployments] ( https://img.shields.io/github/deployments/stacklok/codegate-docs/Production?logo=vercel&style=flat&label=Vercel%20deployment )] ( https://github.com/stacklok/codegate-docs/deployments/Production )
4
+
3
5
This repository contains the public-facing docs for CodeGate, hosted at
4
6
[ https://docs.codegate.ai ] ( https://docs.codegate.ai ) .
5
7
@@ -20,6 +22,12 @@ formatting.
20
22
21
23
## Local development
22
24
25
+ You'll need Node.js available (v22 recommended) or VS Code with the
26
+ [ Dev Containers] ( https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers )
27
+ extension and Docker.
28
+
29
+ [ ![ Open in Dev Containers] ( https://img.shields.io/static/v1?label=Dev%20Containers&message=Open&color=blue )] ( https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/stacklok/codegate-docs )
30
+
23
31
``` bash
24
32
npm install
25
33
npm run start
Original file line number Diff line number Diff line change @@ -276,6 +276,29 @@ Here is an example of how to use the `requests` package:
276
276
...
277
277
` ` `
278
278
279
+ # # Troubleshooting
280
+
281
+ < details>
282
+ < summary> ** Issue** : Copilot in VS Code does not work with Dev Containers< /summary>
283
+
284
+ ** Details:** The Copilot extensions load within the Dev Container context by
285
+ default, but the container cannot reach the CodeGate proxy directly and does not
286
+ trust the CodeGate certificate.
287
+
288
+ ** Solution:** The simplest solution which doesn' t require modifications to the
289
+ devcontainer configuration in your project is to force the Copilot extensions to
290
+ run in the UI context instead of remotely. Add the following to your **VS Code
291
+ User Settings** file:
292
+
293
+ ```json title="settings.json"
294
+ "remote.extensionKind": {
295
+ "GitHub.copilot": ["ui"],
296
+ "GitHub.copilot-chat": ["ui"]
297
+ }
298
+ ```
299
+
300
+ </details>
301
+
279
302
## Next steps
280
303
281
304
Learn more about CodeGate' s features and how to use them:
Original file line number Diff line number Diff line change 15
15
"prettier" : " prettier . --check" ,
16
16
"prettier:fix" : " prettier . --write" ,
17
17
"serve" : " docusaurus serve" ,
18
- "start" : " docusaurus start" ,
18
+ "start" : " docusaurus start --host 0.0.0.0 " ,
19
19
"swizzle" : " docusaurus swizzle" ,
20
20
"typecheck" : " tsc" ,
21
21
"write-heading-ids" : " docusaurus write-heading-ids" ,
You can’t perform that action at this time.
0 commit comments