Skip to content

Commit fa08393

Browse files
committed
Merge branch 'main' of github.com:The-AI-Alliance/microsite-template
2 parents 104267b + ff8532c commit fa08393

File tree

2 files changed

+47
-2
lines changed

2 files changed

+47
-2
lines changed

README.md

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Rather than copy the repo contents and edit manually, use the `create-microsite.
1010
curl -L https://raw.githubusercontent.com/The-AI-Alliance/microsite-template/refs/heads/main/create-microsite.sh > create-microsite.sh
1111
```
1212
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):
1414
```shell
1515
zsh create-microsite.sh --help
1616
```
@@ -33,3 +33,48 @@ Next, replace the placeholder text and `*.markdown` files with your real content
3333
4. Make any changes you want to make in the `docs/_config.yml` file. (None are required.)
3434

3535
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.

create-microsite.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ under the FA2: Trust and Safety work group, then use the following the command:
5050
5151
$script --repo-name ai-for-evil-project --microsite-title "AI for Evil Project" --work-group fa2
5252
53-
Note that jsut specifying "fa1" or "FA1", etc. for any of the focus areas will result in the
53+
Note that just specifying "fa1" or "FA1", etc. for any of the focus areas will result in the
5454
following names being used:
5555
5656
FA1: ${fa_names["FA1"]}

0 commit comments

Comments
 (0)