You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3. When executed, this script will download a `tar.gz` file of the whole repo and create your new website.
13
-
4. To see what script arguments you need to provide, run this command:
13
+
4. To see what script arguments you need to provide, run this command (more details below):
14
14
```shell
15
15
zsh create-microsite.sh --help
16
16
```
@@ -33,3 +33,48 @@ Next, replace the placeholder text and `*.markdown` files with your real content
33
33
4. Make any changes you want to make in the `docs/_config.yml` file. (None are required.)
34
34
35
35
See also the `README.md` that was created in your new repo for more tips and guidance on development tasks.
36
+
37
+
## More about `create-microsite.sh`
38
+
39
+
Run the command with the `--help` option:
40
+
41
+
```shell
42
+
zsh create-microsite.sh --help
43
+
```
44
+
45
+
It (currently) prints the following:
46
+
47
+
```text
48
+
create-microsite.sh [-h|--help] [-n|--noop] --repo-name|-r name --microsite-title|--site-title|-t title --work-group|-w work_group
49
+
50
+
Where the options and required arguments are the following:
51
+
-h | --help Print this message and exit
52
+
-n | --noop Just print the commands but don't make changes.
53
+
54
+
These arguments are required, but they can appear in any order. See the example below:
55
+
56
+
--repo-name | -r name The name of gitHub repo. See example below.
57
+
--microsite-title | --site-title | -t title
58
+
The title of microsite.
59
+
--work-group | -w work_group
60
+
The name of work group this site is associated with.
61
+
62
+
For example, suppose you want to create a microsite with the title "AI for Evil Project",
63
+
under the FA2: Trust and Safety work group, then use the following the command:
64
+
65
+
create-microsite.sh --repo-name ai-for-evil-project --microsite-title "AI for Evil Project" --work-group fa2
66
+
67
+
Note that just specifying "fa1" or "FA1", etc. for any of the focus areas will result in the
68
+
following names being used:
69
+
70
+
FA1: FA1: Skills and Education
71
+
FA2: FA2: Trust and Safety
72
+
FA3: FA3: Applications and Tools
73
+
FA4: FA4: Hardware Enablement
74
+
FA5: FA5: Foundation Models and Datasets
75
+
FA6: FA6: Advocacy
76
+
77
+
NOTE: The title and work group strings need to be quoted if they contain spaces!
78
+
```
79
+
80
+
The example shows the required arguments: `--repo-name`, `--microsite-title`, and `--work-group`. The values provided are used to replace placeholders in the template files. Other dynamic input includes a timestamp, "now", for when the initial version of the website was created.
0 commit comments