From 096de3f3c6a329c8086f551d9853a1fe71a3a2e0 Mon Sep 17 00:00:00 2001 From: samdenty Date: Mon, 13 Nov 2023 13:59:36 +0000 Subject: [PATCH 1/2] feat: add view query param --- docs/platform/webcontainers/project-config.md | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/docs/platform/webcontainers/project-config.md b/docs/platform/webcontainers/project-config.md index 61c5ab10..67b71a52 100644 --- a/docs/platform/webcontainers/project-config.md +++ b/docs/platform/webcontainers/project-config.md @@ -121,6 +121,29 @@ The default `"auto"` setting enables showing changes as user types, which may pr A map of default environment variables that will be set in each top-level shell process. +### view + + + + + + + + + + +
Type"default" | "editor"
Default"default"
+ +The `view` option allows you to configure the layout the editor uses at startup. + +The available settings are: + +- `"default"` (default): Editor & Preview side-by-side +- `"editor"`: Just the editor, no preview + +You can also specify this option under the key `pullRequests` or `issues` to make it different when opening respectively. + + ## With URL parameters ### startScript @@ -144,3 +167,7 @@ You can also run several scripts sequentially using comma-separated values. For ``` https://stackblitz.com/edit/project-id?startScript=build,serve ``` + +### view + +Use the `view` parameter to configure the layout the editor uses at startup. Either `default` or `editor` From 834ef115fbc331264c6e9f3cc57edfbda22c1bb3 Mon Sep 17 00:00:00 2001 From: samdenty Date: Thu, 30 Nov 2023 15:50:52 +0000 Subject: [PATCH 2/2] fix --- docs/platform/webcontainers/project-config.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/platform/webcontainers/project-config.md b/docs/platform/webcontainers/project-config.md index 67b71a52..61da5b0a 100644 --- a/docs/platform/webcontainers/project-config.md +++ b/docs/platform/webcontainers/project-config.md @@ -139,7 +139,7 @@ The `view` option allows you to configure the layout the editor uses at startup. The available settings are: - `"default"` (default): Editor & Preview side-by-side -- `"editor"`: Just the editor, no preview +- `"editor"`: Just the Editor, no preview You can also specify this option under the key `pullRequests` or `issues` to make it different when opening respectively.