File tree 1 file changed +32
-0
lines changed
1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -45,4 +45,36 @@ For example:<br>
45
45
46
46
<img width =" 580 " alt =" image " src =" https://user-images.githubusercontent.com/54933897/216062894-b88986a4-39e8-49ea-969c-93704c81c8d6.png " >
47
47
48
+ ## 🔧 Configuration
48
49
50
+ Typically the script doesn't need any configuration, but you can change some of the settings if required.
51
+ You can do this by editing your local copy of the ` gh-doccs ` file and editing the values of the variables at the top of the script.
52
+
53
+ ``` bash
54
+ REPO=" github/docs-internal"
55
+ DEVCONTAINER=" .devcontainer/devcontainer.json"
56
+ TIMEOUT=" 3h"
57
+ MACHINE=" xLargePremiumLinux" # To list available machine types for a repo use:
58
+ # gh api --jq ".machines[].name" repos/OWNER/REPONAME/codespaces/machines
59
+ LOCATION=" " # e.g. EastUs|SouthEastAsia|WestEurope|WestUs2
60
+ # Leave empty for automatic location selection.
61
+ # To list current available locations see: gh cs create --help
62
+ RETENTION=" 720h"
63
+ OPEN_IN_BROWSER=false # Set to true to open the codespace in a browser, or false to open in VS Code.
64
+ REQUEST_BRANCH=true # Set to true to request a branch name, or false to use the default branch.
65
+ ```
66
+
67
+ For example, by default ` LOCATION ` is an empty string, but you can set this to a particular location
68
+ (e.g. ` EastUs ` or ` SouthEastAsia ` or ` WestEurope ` or ` WestUs2 ` ).
69
+
70
+ After changing any of the variable values, uninstall the existing version of the extension:
71
+
72
+ ```
73
+ gh ext remove doccs
74
+ ```
75
+
76
+ Then, on the command line, move to the location of ` doccs ` file and install the extension locally:
77
+
78
+ ```
79
+ gh ext install .
80
+ ```
You can’t perform that action at this time.
0 commit comments