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: editor-guidelines.md
+17-9Lines changed: 17 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -203,27 +203,35 @@ If the lesson has been written by a new author, editors should add information a
203
203
204
204
**Whitespace is important**, so be sure that the indentation matches the other examples.
205
205
206
-
### 3) Add reviewers and editors to the YAML file
206
+
### 3) Add a table of contents to the lesson
207
+
208
+
The following code should be added into the text of the lesson, usually before the first subheader:
209
+
210
+
```
211
+
{% raw %}{% include toc.html %}{% endraw %}
212
+
```
213
+
214
+
### 4) Add reviewers and editors to the YAML file
207
215
208
216
It is important that we acknowledge the work of our peer reviewers and editors. To the YAML file at the top of the tutorial, add the names of the reviewers who helped work on the piece as well as the names of any members of the community who contributed substantial open reviews. In addition, create an `editors` key and add yourself and any other editors who actively contributed to guiding the piece to publication. YAML formatting instructions can be found in the [Author Guidelines](/author-guidelines).
209
217
210
-
### 4) Add a difficulty indicator to the YAML file
218
+
### 5) Add a difficulty indicator to the YAML file
211
219
212
220
To help readers evaluate which lessons best fit their goals and skill level, we provide "Recommended for ___ Users" information in the lesson YAML file. There are currently three tiers, which can be set with the following numerical codes: 1 (Beginning), 2 (Intermediate), 3 (Advanced). To add the difficulty level to the lesson, include the following in the YAML file:
213
221
214
222
```yaml
215
223
difficulty: 1
216
224
```
217
225
218
-
### 5) Add the review ticket number to the YAML file
226
+
### 6) Add the review ticket number to the YAML file
219
227
220
228
In order to promote transparency around the review process, create a `review-ticket` key in the YAML file and provide the ticket number for the corresponding review ticket in the ph-submissions repository. This information will be used to provide a link back to the review ticket for the lesson.
221
229
222
-
### 6) Update the date field in the YAML file
230
+
### 7) Update the date field in the YAML file
223
231
224
232
Update the date in the YAML file to the date the lesson was moved to the jekyll repository and the added to the main site.
225
233
226
-
### 7) Other lesson YAML finalization
234
+
### 8) Other lesson YAML finalization
227
235
Looking at the example below, make sure all front matter on the lesson is properly filled out. Common fields that need writing or editing at this point are:
228
236
- **collection** should just say "collection: lessons"
229
237
- **layout** should just say "layout: lesson"
@@ -257,7 +265,7 @@ Check out the example below to see what finished front matter should look like:
257
265
abstract: "In this lesson you will first learn what topic modeling is and why you might want to employ it in your research. You will then learn how to install and work with the MALLET natural language processing toolkit to do so."
258
266
---
259
267
260
-
### 8) Find an Image to represent the lesson
268
+
### 9) Find an Image to represent the lesson
261
269
262
270
We represent our lessons using an old image that we feel captures some element of the task described in the tutorial. You can see the full range of these on the [main Lessons directory](/lessons/). These images are selected by editors.
263
271
@@ -276,7 +284,7 @@ Then, create a new copy of the image. Crop it to a square without removing any i
276
284
277
285
Upload the original image to the [gallery/originals](https://github.com/programminghistorian/jekyll/tree/gh-pages/gallery/originals) folder, and upload the edited image to the [gallery](https://github.com/programminghistorian/jekyll/tree/gh-pages/gallery) folder.
278
286
279
-
### 9) Incorporate your lesson into our Twitter bot
287
+
### 10) Incorporate your lesson into our Twitter bot
280
288
In addition to the Twitter promotion outlined below, we also make use of a Twitter bot to regularly re-advertise older lessons. In order to add the new lesson to our pipeline, you need to add it as a row in [this spreadsheet](https://docs.google.com/spreadsheets/d/1o-C-3WwfcEYWipIFb112tkuM-XOI8pVVpA9_sag9Ph8/edit#gid=1625380994). Everyone on the editorial team should have the ability to make changes; email the google group if you have trouble. You will need to add a new row for your lesson to the end of the table with the following fields:
281
289
282
290
* message_one (column A) - a twitter message to play early in the week.
@@ -285,7 +293,7 @@ In addition to the Twitter promotion outlined below, we also make use of a Twitt
285
293
286
294
Leave column D blank and untouched - this field is used by the Twitter bot to log its progress through the list. Also note that this step should not replace your own promotion of the lesson. The bot goes through the lessons at random, one a week, so it could be months until your lesson comes up through this means.
287
295
288
-
### 10) Confirm all links and YAML headers are functioning correctly
296
+
### 11) Confirm all links and YAML headers are functioning correctly
289
297
290
298
Once you push your changes on to the `gh-pages` branch of the [programminghistorian][ph_repo] repository, the site will be automatically tested by [Travis CI] ([Continuous Integration]).
291
299
This test process checks two things: first, that all YAML and markdown code is parseable, and second, that all the hyperlinks on the site point to valid, operational pages.
@@ -322,7 +330,7 @@ If your build has errored, you will need to consult the build logs to see what i
322
330
323
331
[create a new issue]: https://github.com/programminghistorian/jekyll/issues/new
324
332
325
-
### 11) Thank Everyone and Encourage Promotion
333
+
### 12) Thank Everyone and Encourage Promotion
326
334
It's important to send an email or message to everyone involved thanking them for their efforts. In particular, thank the author for contributing and encourage them to think of us again in future. It's also worth giving the author some ideas on promoting their lesson. The most-used lessons always have authors' energies behind them. For example authors should be encouraged to:
327
335
328
336
- Tweet at least 3 times about their lesson (with a link).
0 commit comments