Skip to content

Commit b91dea6

Browse files
Properties: Fix Codeblock Title (#9)
1. Remove old images 2. Move doc titles into frontmatter. 3. Delete dupe doc `parameters` 4. Add some frontmatter snippets. 5. Properties: The codeblock is referred to as a file. We have title support so we should just use that. 6. Code of Conduct: Fix links --------- Signed-off-by: Gilbert Sanchez <me@gilbertsanchez.com>
1 parent 0766c50 commit b91dea6

File tree

7 files changed

+258
-73
lines changed

7 files changed

+258
-73
lines changed

.frontmatter/database/mediaDb.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
1-
{"static":{"img":{}}}
1+
{
2+
"static": {
3+
"img": {}
4+
},
5+
"docs": {
6+
"static": {
7+
"img": {}
8+
}
9+
}
10+
}
Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1-
{}
1+
{
2+
"taxonomy": {
3+
"tags": [],
4+
"categories": []
5+
}
6+
}

blog/authors.yml

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,4 @@
1-
yangshun:
2-
name: Yangshun Tay
3-
title: Front End Engineer @ Facebook
4-
url: https://github.com/yangshun
5-
image_url: https://github.com/yangshun.png
6-
page: true
7-
socials:
8-
x: yangshunz
9-
github: yangshun
10-
11-
slorber:
12-
name: Sébastien Lorber
13-
title: Docusaurus maintainer
14-
url: https://sebastienlorber.com
15-
image_url: https://github.com/slorber.png
16-
page:
17-
# customize the url of the author page at /blog/authors/<permalink>
18-
permalink: '/all-sebastien-lorber-articles'
19-
socials:
20-
x: sebastienlorber
21-
linkedin: sebastienlorber
22-
github: slorber
23-
newsletter: https://thisweekinreact.com
24-
1+
# https://docusaurus.io/docs/api/plugins/@docusaurus/plugin-content-blog#authors-file
252
heyitsgilbert:
263
name: Gilbert Sanchez
274
title: Core Contributor
@@ -30,4 +7,4 @@ heyitsgilbert:
307
socials:
318
x: HeyItsGilbertS
329
linkedin: gilbertsanchez
33-
github: HeyItsGilbert
10+
github: HeyItsGilbert

docs/code_of_conduct.md

Lines changed: 77 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,32 @@
1-
# Contributor Covenant Code of Conduct
1+
---
2+
title: Contributor Covenant Code of Conduct
3+
description: Learn how we expect our community members to conduct themselves.
4+
---
25

36
## Our Pledge
47

5-
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
8+
We as members, contributors, and leaders pledge to make participation in our
9+
community a harassment-free experience for everyone, regardless of age, body
10+
size, visible or invisible disability, ethnicity, sex characteristics, gender
11+
identity and expression, level of experience, education, socio-economic status,
12+
nationality, personal appearance, race, religion, or sexual identity and
13+
orientation.
614

7-
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
15+
We pledge to act and interact in ways that contribute to an open, welcoming,
16+
diverse, inclusive, and healthy community.
817

918
## Our Standards
1019

11-
Examples of behavior that contributes to a positive environment for our community include:
20+
Examples of behavior that contributes to a positive environment for our
21+
community include:
1222

1323
* Demonstrating empathy and kindness toward other people
1424
* Being respectful of differing opinions, viewpoints, and experiences
1525
* Giving and gracefully accepting constructive feedback
16-
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17-
* Focusing on what is best not just for us as individuals, but for the overall community
26+
* Accepting responsibility and apologizing to those affected by our mistakes,
27+
and learning from the experience
28+
* Focusing on what is best not just for us as individuals, but for the overall
29+
community
1830

1931
Examples of unacceptable behavior include:
2032

@@ -29,56 +41,95 @@ Examples of unacceptable behavior include:
2941

3042
## Enforcement Responsibilities
3143

32-
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
44+
Community leaders are responsible for clarifying and enforcing our standards of
45+
acceptable behavior and will take appropriate and fair corrective action in
46+
response to any behavior that they deem inappropriate, threatening, offensive,
47+
or harmful.
3348

34-
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
49+
Community leaders have the right and responsibility to remove, edit, or reject
50+
comments, commits, code, wiki edits, issues, and other contributions that are
51+
not aligned to this Code of Conduct, and will communicate reasons for moderation
52+
decisions when appropriate.
3553

3654
## Scope
3755

38-
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
56+
This Code of Conduct applies within all community spaces, and also applies when
57+
an individual is officially representing the community in public spaces.
58+
Examples of representing our community include using an official e-mail address,
59+
posting via an official social media account, or acting as an appointed
60+
representative at an online or offline event.
3961

4062
## Enforcement
4163

42-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at coc@psake.dev. All complaints will be reviewed and investigated promptly and fairly.
64+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
65+
reported to the community leaders responsible for enforcement at
66+
[coc@psake.dev](mailto:coc@psake.dev). All complaints will be reviewed and
67+
investigated promptly and fairly.
4368

44-
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
69+
All community leaders are obligated to respect the privacy and security of the
70+
reporter of any incident.
4571

4672
## Enforcement Guidelines
4773

48-
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
74+
Community leaders will follow these Community Impact Guidelines in determining
75+
the consequences for any action they deem in violation of this Code of Conduct:
4976

5077
### 1. Correction
5178

52-
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
79+
**Community Impact**: Use of inappropriate language or other behavior deemed
80+
unprofessional or unwelcome in the community.
5381

54-
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
82+
**Consequence**: A private, written warning from community leaders, providing
83+
clarity around the nature of the violation and an explanation of why the
84+
behavior was inappropriate. A public apology may be requested.
5585

5686
### 2. Warning
5787

58-
**Community Impact**: A violation through a single incident or series of actions.
88+
**Community Impact**: A violation through a single incident or series of
89+
actions.
5990

60-
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
91+
**Consequence**: A warning with consequences for continued behavior. No
92+
interaction with the people involved, including unsolicited interaction with
93+
those enforcing the Code of Conduct, for a specified period of time. This
94+
includes avoiding interactions in community spaces as well as external channels
95+
like social media. Violating these terms may lead to a temporary or permanent
96+
ban.
6197

6298
### 3. Temporary Ban
6399

64-
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
100+
**Community Impact**: A serious violation of community standards, including
101+
sustained inappropriate behavior.
65102

66-
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
103+
**Consequence**: A temporary ban from any sort of interaction or public
104+
communication with the community for a specified period of time. No public or
105+
private interaction with the people involved, including unsolicited interaction
106+
with those enforcing the Code of Conduct, is allowed during this period.
107+
Violating these terms may lead to a permanent ban.
67108

68109
### 4. Permanent Ban
69110

70-
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
111+
**Community Impact**: Demonstrating a pattern of violation of community
112+
standards, including sustained inappropriate behavior, harassment of an
113+
individual, or aggression toward or disparagement of classes of individuals.
71114

72-
**Consequence**: A permanent ban from any sort of public interaction within the project community.
115+
**Consequence**: A permanent ban from any sort of public interaction within the
116+
project community.
73117

74118
## Attribution
75119

76-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77-
available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
121+
version 2.0, available at
122+
[https://www.contributor-covenant.org/version/2/0/code_of_conduct.html][v2.0].
78123

79-
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80-
81-
[homepage]: https://www.contributor-covenant.org
124+
Community Impact Guidelines were inspired by
125+
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
82126

83127
For answers to common questions about this code of conduct, see the FAQ at
84-
https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
128+
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available
129+
at [https://www.contributor-covenant.org/translations][translations].
130+
131+
[homepage]: https://www.contributor-covenant.org
132+
[v2.0]: https://www.contributor-covenant.org/version/2/0/code_of_conduct.html
133+
[Mozilla CoC]: https://github.com/mozilla/diversity
134+
[FAQ]: https://www.contributor-covenant.org/faq
135+
[translations]: https://www.contributor-covenant.org/translations

docs/tutorial-basics/parameters-properties.md

Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
2+
title: Parameters & Properties
23
description: "How to use parameters and properties in your build script."
34
sidebar_position: 11
45
---
56

6-
# Parameters & Properties
7-
87
To summarize the differences between passing parameters and properties to the
98
`Invoke-psake` function:
109

@@ -22,12 +21,17 @@ the Invoke-psake function. The following is an example:
2221
Invoke-psake .\parameters.ps1 -parameters @{"p1"="v1";"p2"="v2"}
2322
```
2423

25-
The example above runs the build script called "parameters.ps1" and passes in
26-
parameters 'p1' and 'p2' with values 'v1' and 'v2'. The parameter value for the
24+
The example above runs the build script called `parameters.ps1` and passes in
25+
parameters `p1` and `p2` with values `v1` and `v2`. The parameter value for the
2726
"parameters" parameter (say that 10 times really fast!) is a PowerShell
28-
hashtable where the name and value of each parameter is specified. Note: You
29-
don't need to use the "$" character when specifying the parameter names in the
30-
hashtable.
27+
hashtable where the name and value of each parameter is specified.
28+
29+
:::note
30+
31+
You don't need to use the "$" character when specifying the parameter names in
32+
the hashtable.
33+
34+
:::
3135

3236
```powershell title="parameters.ps1"
3337
properties {
@@ -41,6 +45,9 @@ task TestParams {
4145
}
4246
```
4347

48+
The Assert in this example would pass because when it runs, `$my_property`
49+
would be set to `v1v2` and not be `$null`.
50+
4451
## Properties
4552

4653
You can override a property in your build script using the `properties`
@@ -50,15 +57,19 @@ parameter of the Invoke-psake function. The following is an example:
5057
Invoke-psake .\properties.ps1 -properties @{"x"="1";"y"="2"}
5158
```
5259

53-
The example above runs the build script called "properties.ps1" and passes in
54-
parameters 'x' and 'y' with values '1' and '2'. The parameter value for the
60+
The example above runs the build script called `properties.ps1` and passes in
61+
parameters `x` and `y` with values `1` and `2`. The parameter value for the
5562
"properties" parameter is a PowerShell hashtable where the name and value of
56-
each property is specified. Note: You don't need to use the "$" character when
57-
specifying the property names in the hashtable.
63+
each property is specified.
5864

59-
The "properties.ps1" build script looks like this:
65+
:::note
6066

61-
```powershell
67+
You don't need to use the "$" character when specifying the property names in
68+
the hashtable.
69+
70+
:::
71+
72+
```powershell title="properties.ps1"
6273
properties {
6374
$x = $null
6475
$y = $null
@@ -74,6 +85,6 @@ task TestProperties {
7485
}
7586
```
7687

77-
The value of $x should be 1 and $y should be 2 by the time the "TestProperties"
78-
task is executed. The value of $z was not over-ridden so it should still be
79-
$null.
88+
The value of `$x` should be `1` and `$y` should be `2` by the time the
89+
`TestProperties` task is executed. The value of `$z` was not overridden so it
90+
should still be `$null`.

docs/tutorial-basics/tasks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
sidebar_position: 4
2+
title: Tasks
3+
description: "Learn how to use the most important building block in psake: The Task"
34
---
4-
# Tasks
55

66
At the core of psake is the task. In it's simplest form you have a task with a
77
name and an action.

0 commit comments

Comments
 (0)