Jay V 7 месяцев назад
Родитель
Сommit
9f6fc1c3c5

+ 51 - 1
packages/web/src/content/docs/docs/config.mdx

@@ -10,7 +10,6 @@ You can configure opencode using a JSON config file.
   "$schema": "https://opencode.ai/config.json",
   "theme": "opencode",
   "model": "anthropic/claude-sonnet-4-20250514",
-  "autoshare": false,
   "autoupdate": true
 }
 ```
@@ -93,6 +92,24 @@ You can configure the theme you want to use in your opencode config through the
 
 ---
 
+### Layout
+
+You can configure the layout of the TUI with the `layout` option.
+
+```json title="opencode.json"
+{
+  "$schema": "https://opencode.ai/config.json",
+  "layout": "stretch"
+}
+```
+
+This takes:
+
+- `"auto"`: Centers content with padding. This is the default.
+- `"stretch"`: Uses full terminal width.
+
+---
+
 ### Logging
 
 Logs are written to:
@@ -119,6 +136,26 @@ With the following options:
 | `ERROR` | Errors only                              |
 
 The **default** log level is `INFO`. If you are running opencode locally in
+
+---
+
+### Sharing
+
+You configure the [share](/docs/share) feature through the `share` option.
+
+```json title="opencode.json"
+{
+  "$schema": "https://opencode.ai/config.json",
+  "share": "auto"
+}
+```
+
+This takes:
+
+- `"auto"` - Automatically share new conversations
+- `"disabled"` - Disable sharing entirely
+
+By default, you'll need to manually share new conversations.
 development mode it's set to `DEBUG`.
 
 ---
@@ -138,6 +175,19 @@ You can customize your keybinds through the `keybinds` option.
 
 ---
 
+### Autoupdate
+
+opencode will automatically download any new updates when it starts up. You can disable this with the `autoupdate` option.
+
+```json title="opencode.json"
+{
+  "$schema": "https://opencode.ai/config.json",
+  "autoupdate": false
+}
+```
+
+---
+
 ### MCP servers
 
 You can configure MCP servers you want to use through the `mcp` option.

+ 0 - 1
packages/web/src/content/docs/docs/keybinds.mdx

@@ -30,7 +30,6 @@ opencode has a list of keybinds that you can customize through the opencode conf
 
     "file_list": "<leader>f",
     "file_close": "esc",
-    "file_search": "@",
     "file_diff_toggle": "<leader>v",
 
     "input_clear": "ctrl+c",

+ 2 - 2
packages/web/src/content/docs/docs/models.mdx

@@ -46,14 +46,14 @@ You can add custom providers by specifying the npm package for the provider and
 
 You can customize the base URL for any provider by setting the `baseURL` option. This is useful when using proxy services or custom endpoints.
 
-```json title="opencode.json" {6-7}
+```json title="opencode.json" {6}
 {
   "$schema": "https://opencode.ai/config.json",
   "provider": {
     "anthropic": {
       "options": {
         "baseURL": "https://api.anthropic.com/v1"
-      },
+      }
     }
   }
 }

+ 24 - 8
packages/web/src/content/docs/docs/share.mdx

@@ -39,22 +39,22 @@ This will generate a unique URL that'll be copied to your clipboard.
 
 ---
 
-### Autoshare
+### Auto-share
 
 You can enable automatic sharing for all new conversations through the `autoshare` option in your [config file](/docs/config).
 
 ```json title="opencode.json"
 {
   "$schema": "https://opencode.ai/config.json",
-  "autoshare": true
+  "share": "auto"
 }
 ```
 
-By default, `autoshare` is disabled.
+By default, automatic sharing is disabled.
 
 ---
 
-## Unsharing
+## Un-sharing
 
 To stop sharing a conversation and remove it from public access:
 
@@ -66,6 +66,21 @@ This will remove the share link and delete the data related to the conversation.
 
 ---
 
+## Disable
+
+If you'd like to disable sharing entirely, you can do so by setting the `share` option to `"disabled"` in your [config file](/docs/config).
+
+```json title="opencode.json"
+{
+  "$schema": "https://opencode.ai/config.json",
+  "share": "disabled"
+}
+```
+
+To enforce this across your team for a given project, add it to the `opencode.json` in your project and check into Git.
+
+---
+
 ## Privacy
 
 There are a few things to keep in mind when sharing a conversation.
@@ -85,10 +100,11 @@ includes:
 
 ### Recommendations
 
-- Only share conversations that don't contain sensitive information
-- Review conversation content before sharing
-- Unshare conversations when collaboration is complete
-- Avoid sharing conversations with proprietary code or confidential data
+- Only share conversations that don't contain sensitive information.
+- Review conversation content before sharing.
+- Unshare conversations when collaboration is complete.
+- Avoid sharing conversations with proprietary code or confidential data.
+- For sensitive projects, disable sharing entirely.
 
 ---
 

+ 2 - 5
packages/web/src/content/docs/docs/troubleshooting.mdx

@@ -134,13 +134,10 @@ We're working on adding click & drag text selection in a future update.
 
 By default, opencode's TUI uses an "auto" layout that centers content with padding. If you want the TUI to use the full width of your terminal, you can configure the layout setting:
 
-```json
+```json title="opencode.json"
 {
   "layout": "stretch"
 }
 ```
 
-Add this to your `opencode.json` configuration file. The available layout options are:
-
-- `"auto"` (default) - Centers content with padding
-- `"stretch"` - Uses full terminal width
+Read more about this in the [config docs](/docs/config#layout).