Skip to content

Commit 185c468

Browse files
committed
Updated readme
1 parent 3c5bdaa commit 185c468

File tree

6 files changed

+25
-25
lines changed

6 files changed

+25
-25
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020
- name: Install the dependencies
2121
run: npm i
2222

23-
- name: Clone the toolkit
24-
run: |
25-
git clone https://github.com/microsoftgraph/microsoft-graph-toolkit
26-
npm run snippets
23+
# - name: Clone the toolkit
24+
# run: |
25+
# git clone https://github.com/microsoftgraph/microsoft-graph-toolkit
26+
# npm run snippets
2727

2828
- name: Install vsce
2929
run: npm i -g vsce

README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -50,29 +50,29 @@ Snippets to insert the MGT web component in HTML:
5050

5151
| Snippet |
5252
|---------|
53-
| mgt-agenda |
54-
| mgt-people |
55-
| mgt-login |
56-
| mgt-people-picker |
57-
| mgt-person |
58-
| mgt-person-card |
59-
| mgt-tasks |
60-
| mgt-teams-channel-picker |
53+
| `mgt-agenda` |
54+
| `mgt-login` |
55+
| `mgt-people` |
56+
| `mgt-people-picker` |
57+
| `mgt-person` |
58+
| `mgt-person-card` |
59+
| `mgt-tasks` |
60+
| `mgt-teams-channel-picker` |
6161

6262
### CSS
6363

6464
Snippets to quickly modify the component styles:
6565

6666
| Snippet |
6767
|---------|
68-
| mgt-agenda |
69-
| mgt-people |
70-
| mgt-login |
71-
| mgt-people-picker |
72-
| mgt-person |
73-
| mgt-person-card |
74-
| mgt-tasks |
75-
| mgt-teams-channel-picker |
68+
| `mgt-agenda` |
69+
| `mgt-login` |
70+
| `mgt-people` |
71+
| `mgt-people-picker` |
72+
| `mgt-person` |
73+
| `mgt-person-card` |
74+
| `mgt-tasks` |
75+
| `mgt-teams-channel-picker` |
7676

7777
## Changelog
7878

scripts/generate-css-snippets.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ const readmePath = '../README.md';
100100
let mdContent = fs.readFileSync(tmplPath, { encoding: "utf-8" });
101101

102102
if (mdContent) {
103-
mdContent = mdContent.replace(`{HTML_SNIPPETS}`, uniqComponents.map(c => `| ${c} |`).join(`\n`));
104-
mdContent = mdContent.replace(`{CSS_SNIPPETS}`, uniqComponents.map(c => `| ${c} |`).join(`\n`));
103+
mdContent = mdContent.replace(`{HTML_SNIPPETS}`, uniqComponents.map(c => `| \`${c}\` |`).join(`\n`));
104+
mdContent = mdContent.replace(`{CSS_SNIPPETS}`, uniqComponents.map(c => `| \`${c}\` |`).join(`\n`));
105105
fs.writeFileSync(mdPath, mdContent, { encoding: "utf-8"})
106106
}
107107
}

snippets/css.components.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"mgt-agenda":{"prefix":"mgt-agenda","body":["mgt-agenda${1:.custom-class} {"," ${2:}","}"],"description":"Create custom styles for the \"mgt-agenda\" component."},"mgt-people":{"prefix":"mgt-people","body":["mgt-people${1:.custom-class} {"," ${2:}","}"],"description":"Create custom styles for the \"mgt-people\" component."},"mgt-login":{"prefix":"mgt-login","body":["mgt-login${1:.custom-class} {"," ${2:}","}"],"description":"Create custom styles for the \"mgt-login\" component."},"mgt-people-picker":{"prefix":"mgt-people-picker","body":["mgt-people-picker${1:.custom-class} {"," ${2:}","}"],"description":"Create custom styles for the \"mgt-people-picker\" component."},"mgt-person":{"prefix":"mgt-person","body":["mgt-person${1:.custom-class} {"," ${2:}","}"],"description":"Create custom styles for the \"mgt-person\" component."},"mgt-person-card":{"prefix":"mgt-person-card","body":["mgt-person-card${1:.custom-class} {"," ${2:}","}"],"description":"Create custom styles for the \"mgt-person-card\" component."},"mgt-tasks":{"prefix":"mgt-tasks","body":["mgt-tasks${1:.custom-class} {"," ${2:}","}"],"description":"Create custom styles for the \"mgt-tasks\" component."},"mgt-teams-channel-picker":{"prefix":"mgt-teams-channel-picker","body":["mgt-teams-channel-picker${1:.custom-class} {"," ${2:}","}"],"description":"Create custom styles for the \"mgt-teams-channel-picker\" component."}}
1+
{"mgt-agenda":{"prefix":"mgt-agenda","body":["mgt-agenda${1:.custom-class} {"," ${2:}","}"],"description":"Create custom styles for the \"mgt-agenda\" component."},"mgt-login":{"prefix":"mgt-login","body":["mgt-login${1:.custom-class} {"," ${2:}","}"],"description":"Create custom styles for the \"mgt-login\" component."},"mgt-people":{"prefix":"mgt-people","body":["mgt-people${1:.custom-class} {"," ${2:}","}"],"description":"Create custom styles for the \"mgt-people\" component."},"mgt-people-picker":{"prefix":"mgt-people-picker","body":["mgt-people-picker${1:.custom-class} {"," ${2:}","}"],"description":"Create custom styles for the \"mgt-people-picker\" component."},"mgt-person":{"prefix":"mgt-person","body":["mgt-person${1:.custom-class} {"," ${2:}","}"],"description":"Create custom styles for the \"mgt-person\" component."},"mgt-person-card":{"prefix":"mgt-person-card","body":["mgt-person-card${1:.custom-class} {"," ${2:}","}"],"description":"Create custom styles for the \"mgt-person-card\" component."},"mgt-tasks":{"prefix":"mgt-tasks","body":["mgt-tasks${1:.custom-class} {"," ${2:}","}"],"description":"Create custom styles for the \"mgt-tasks\" component."},"mgt-teams-channel-picker":{"prefix":"mgt-teams-channel-picker","body":["mgt-teams-channel-picker${1:.custom-class} {"," ${2:}","}"],"description":"Create custom styles for the \"mgt-teams-channel-picker\" component."}}

snippets/html.components.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"mgt-agenda":{"prefix":"mgt-agenda","body":["<mgt-agenda ${1:}></mgt-agenda>"],"description":"Adds the \"mgt-agenda\" component."},"mgt-people":{"prefix":"mgt-people","body":["<mgt-people ${1:}></mgt-people>"],"description":"Adds the \"mgt-people\" component."},"mgt-login":{"prefix":"mgt-login","body":["<mgt-login ${1:}></mgt-login>"],"description":"Adds the \"mgt-login\" component."},"mgt-people-picker":{"prefix":"mgt-people-picker","body":["<mgt-people-picker ${1:}></mgt-people-picker>"],"description":"Adds the \"mgt-people-picker\" component."},"mgt-person":{"prefix":"mgt-person","body":["<mgt-person ${1:}></mgt-person>"],"description":"Adds the \"mgt-person\" component."},"mgt-person-card":{"prefix":"mgt-person-card","body":["<mgt-person-card ${1:}></mgt-person-card>"],"description":"Adds the \"mgt-person-card\" component."},"mgt-tasks":{"prefix":"mgt-tasks","body":["<mgt-tasks ${1:}></mgt-tasks>"],"description":"Adds the \"mgt-tasks\" component."},"mgt-teams-channel-picker":{"prefix":"mgt-teams-channel-picker","body":["<mgt-teams-channel-picker ${1:}></mgt-teams-channel-picker>"],"description":"Adds the \"mgt-teams-channel-picker\" component."}}
1+
{"mgt-agenda":{"prefix":"mgt-agenda","body":["<mgt-agenda ${1:}></mgt-agenda>"],"description":"Adds the \"mgt-agenda\" component."},"mgt-login":{"prefix":"mgt-login","body":["<mgt-login ${1:}></mgt-login>"],"description":"Adds the \"mgt-login\" component."},"mgt-people":{"prefix":"mgt-people","body":["<mgt-people ${1:}></mgt-people>"],"description":"Adds the \"mgt-people\" component."},"mgt-people-picker":{"prefix":"mgt-people-picker","body":["<mgt-people-picker ${1:}></mgt-people-picker>"],"description":"Adds the \"mgt-people-picker\" component."},"mgt-person":{"prefix":"mgt-person","body":["<mgt-person ${1:}></mgt-person>"],"description":"Adds the \"mgt-person\" component."},"mgt-person-card":{"prefix":"mgt-person-card","body":["<mgt-person-card ${1:}></mgt-person-card>"],"description":"Adds the \"mgt-person-card\" component."},"mgt-tasks":{"prefix":"mgt-tasks","body":["<mgt-tasks ${1:}></mgt-tasks>"],"description":"Adds the \"mgt-tasks\" component."},"mgt-teams-channel-picker":{"prefix":"mgt-teams-channel-picker","body":["<mgt-teams-channel-picker ${1:}></mgt-teams-channel-picker>"],"description":"Adds the \"mgt-teams-channel-picker\" component."}}

0 commit comments

Comments
 (0)