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
Copy file name to clipboardexpand all lines: utilities/README.md
+4-7
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,5 @@
1
1
# Utilities
2
+
2
3
These scripts help devopsdays organizers manage their events.
3
4
4
5
## Contributing
@@ -43,6 +44,7 @@ Many sponsors are sponsors for multiple devopsdays. If a sponsor listing already
43
44
The sample datafile has some sponsor levels pre-populated; edit as desired. You will want to decide what's in your sponsor packages before accepting most types of sponsors (other than Community).
44
45
45
46
#### Sponsor URL override
47
+
46
48
Sometimes, an existing sponsor will want an event-specific URL for your event. Rather than creating a new sponsor, you can add an optional `url` field to the sponsor in your event data file to override the default URL for that sponsor. For example:
1. Copying the existng sponsor files to `sponsor-before-todaysdate.{png,yml}`.
79
82
1. Copying in the new image to `sponsor.png`.
80
83
1. Modifying any events that did _not_ occur this year such that they are sponsored by `sponsor-before-todaysdate`, rather than `sponsor`.
@@ -86,7 +89,6 @@ Finally, make whatever changes are requested to the image and data file.
86
89
87
90
See [Pivotal logo update](https://github.com/devopsdays/devopsdays-web/pull/6501) for the pull request that inspired this example.
88
91
89
-
90
92
### Adding a new sponsor
91
93
92
94
Use [add_sponsors.sh](add_sponsors.sh) to easily add new sponsors. (Only do this if the sponsor doesn't already exist.)
@@ -97,7 +99,6 @@ Use [add_sponsors.sh](add_sponsors.sh) to easily add new sponsors. (Only do this
97
99
98
100
See [contrib/make_sponsors.rb](make_sponsors.rb) for another option.
99
101
100
-
101
102
### Sponsor logos
102
103
103
104
Guidelines regarding sponsor logo files and formatting:
@@ -118,7 +119,6 @@ The organizer photo must be in JPG format, and should be a minimum 300px x 300px
118
119
119
120
Any PRs adding a new local organizer will need to be accompanied by an email to `[email protected]` with their full name and email address. We merge the PR at the same time as adding them to email lists and Slack, so if you aren't ready to send that email, merging your PR will be delayed until we have that info.
120
121
121
-
122
122
## Social sharing image
123
123
124
124
A sharing image is added to the Open Graph tags for your event pages, to improve the sharing on social networks such as Facebook (or in Slack). This image must located in `static/events/yyyy-city/sharing/`. It should be a minimum 1200px x 630px, and use ratio: 1.91:1. You must set the `sharing_image` field in `data/events/yyyy-city.yml` (example: `sharing_image: "sharing.jpg"`). You can also override the sharing image by setting `sharing_image` in the frontmatter of a specific page, with the filename of an image in the `static/events/yyyy-city/sharing/` directory. Example: `sharing_image = "jeff-smith.png"`
You can also rename the generated program file to include them both: `mv content/events/2017-ponyville/program/rainbow-dash.md content/events/2017-ponyville/program/dash-sparkle.md`. As long as the Speakers line is set correctly, this will work fine.
150
150
151
-
152
151
### Program
153
152
154
153
Use [add_program.sh](add_program.sh) to add the program for your event. The program template expects 4 full talks each day and lists default times, but you can customize. The program data is stored in the event datafile such as `data/events/2017-ponyville.yml`. You don't need to know any or all of your speakers when adding the sample program, but if you have selected speakers you can list them on the program with this script.
155
154
156
155
If you start working on the program before you have all your speakers, by default you'll have `talk-1` through `talk-8` and you can replace those with slugs like `rainbow-dash` or `dash-sparkle` as appropriate.
157
156
158
-
159
157
### Speaker Images
160
158
161
159
The headshots for your speaker images can be either .png or .jpg. They should be square, preferably 600px square. If they are not square, the page listing all speakers will crop them to square, but the individual speaker and talk pages will not crop the image).
162
160
163
-
164
161
# Adding slides and video
165
162
166
163
After the event, you can set additional optional frontmatter for talk files such as `content/events/2017-ponyville/program/rainbow-dash.md`:
@@ -174,6 +171,7 @@ slides = ""
174
171
```
175
172
176
173
## Embedding Videos Other than Vimeo or YouTube
174
+
177
175
You can embed video other than YouTube or Vimeo on talk pages by adding the embed script to a talk file (such as `content/events/2017-ponyville/program/rainbow-dash.md`) and enclosing it into a `<div>` section. Here is an example of embedding a SlidesLive.com video:
178
176
```
179
177
+++
@@ -191,7 +189,6 @@ You can embed video other than YouTube or Vimeo on talk pages by adding the embe
191
189
192
190
```
193
191
194
-
195
192
# Bash tips:
196
193
197
194
Set `$DOD_YEAR` and `$DOD_CITY` and the scripts won't ask
*This is a work in progress and the document may not be comprehensive. Pull requests welcome!*
4
+
5
+
GitHub Codespaces allows you to do all the editing and changes to your files on the devopsdays website without having to run hugo or anything locally! It even works with the utility scripts.
6
+
7
+
## Getting started
8
+
9
+
Begin by going to [github.com/devopsdays/devopsdays-web](github.com/devopsdays/devopsdays-web) and on the README, click the "Open in GitHub Codespaces" button:
10
+
11
+

12
+
13
+
This will take you to a screen to set up the Codespace:
14
+
15
+

16
+
17
+
Do not change the settings for Repository, Branch, Dec container configuration, or Machine type. You can select a Region that is closest to you. Click "Create Codespace".
18
+
19
+
This will take a few minutes to set up. Once it is ready, you will see a screen like this:
If you click on the "Open in browser" link, you will see the site in your browser.
27
+
28
+
If you do not see this message, you can always find the URL for the site in the "ports" section:
29
+
30
+

31
+
32
+

33
+
*Click on the link to see options for opening the site in a browser.*
34
+
35
+
## Running commands
36
+
37
+
If you need to run any terminal commands (i.e., one of the utility scripts), you can open a terminal by clicking on the "Terminal" tab and then selecting the "bash" tab:
38
+
39
+

40
+
41
+
## Committing changes
42
+
43
+
When you have made any changes you need, you will want to commit them to git and push them to your fork.
44
+
45
+
You can do this by clicking on the "Source Control" tab on the left-hand side of the screen.
46
+
47
+

48
+
*The Source Control tab is the third from the top. If there are uncommitted changes, it will identify this with a badge, like this one that shows "11"*
49
+
50
+
This will show you all the files that have been changed. You can stage the files you want to commit by clicking on the "+" next to the file name. Then you can enter a commit message and click the green "Commit" button to commit the changes.
51
+
52
+

53
+
54
+
Now you can just push "Publish branch" to push the changes to your fork.
55
+
56
+

57
+
58
+
Make sure you push to your fork and not the main repository!
59
+
60
+

61
+
62
+
Now you can create a pull request to merge your changes into the main repository, the same way you would with any other method.
63
+
64
+
## Stopping your codespace
65
+
66
+
When you are not using your Codespace, you want to be sure to stop it, so you are not using up your hours. See [Stopping and starting a codespace](https://docs.github.com/en/codespaces/developing-in-a-codespace/stopping-and-starting-a-codespace) for more methods to do this.
67
+
68
+
## A note on "billing"
69
+
70
+
Free, personal GitHub accounts have 120 core-hours per month of Codespaces usage.
71
+
72
+
In order to build the devopsdays-web site, you will need a "machine type" of 4 cores and 16 GB of RAM. So this means you can use the Codespace for 30 hours per month. If you are using the Codespace for other projects, you will need to be mindful of your usage.
73
+
74
+
If you'd like to see how much of your allocated core-hours you have used, visit your [GitHub Billing Summary](https://github.com/settings/billing/summary)
0 commit comments