Skip to content

Commit 93f37c6

Browse files
authored
Add pre-commit config (#2483)
* Add pre-commit config * Fix pre-commit hooks for YAML schema validation - Exclude schema files from check-yaml hook (they use multi-document YAML format) - Exclude schema files from yamllint hook - Fix yamale hooks to properly handle file arguments using bash wrapper - Change yamale hooks to use system language instead of python - Exclude schema files from being validated against themselves This resolves all pre-commit validation errors. * Fix linting issues
1 parent 6bb5eec commit 93f37c6

30 files changed

+259
-227
lines changed

.pre-commit-config.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v4.6.0
4+
hooks:
5+
- id: check-yaml
6+
files: ^docs/_data/.*\.(yml|yaml)$
7+
exclude: ^docs/_data/schema-.*\.yaml$
8+
- id: end-of-file-fixer
9+
files: ^docs/_data/.*\.(yml|yaml)$
10+
- id: trailing-whitespace
11+
files: ^docs/_data/.*\.(yml|yaml)$
12+
13+
- repo: https://github.com/adrienverge/yamllint
14+
rev: v1.26.3
15+
hooks:
16+
- id: yamllint
17+
files: ^docs/_data/.*\.(yml|yaml)$
18+
exclude: ^docs/_data/schema-.*\.yaml$
19+
20+
- repo: local
21+
hooks:
22+
- id: yamale-config
23+
name: Validate conference config YAML against schema
24+
entry: bash -c 'for f in "$@"; do yamale -s docs/_data/schema-config.yaml "$f" || exit 1; done' --
25+
language: system
26+
files: ^docs/_data/.*-config\.(yml|yaml)$
27+
exclude: ^docs/_data/schema-config\.yaml$
28+
- id: yamale-schedule
29+
name: Validate schedule YAML against schema
30+
entry: bash -c 'for f in "$@"; do yamale -s docs/_data/schema-schedule.yaml "$f" || exit 1; done' --
31+
language: system
32+
files: ^docs/_data/.*-schedule\.(yml|yaml)$
33+
exclude: ^docs/_data/schema-schedule\.yaml$
34+
- id: yamale-sessions
35+
name: Validate sessions YAML against schema
36+
entry: bash -c 'for f in "$@"; do yamale -s docs/_data/schema-sessions.yaml "$f" || exit 1; done' --
37+
language: system
38+
files: ^docs/_data/.*-sessions\.(yml|yaml)$
39+
exclude: ^docs/_data/schema-sessions\.yaml$

docs/_data/2017.na.speakers.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1151,6 +1151,6 @@
11511151
slug: andrea-longo
11521152
twitter: feorlen
11531153
title: Do you know a runbook from a flip book? How sysadmins use documentation
1154-
1154+
11551155
year: 2017
11561156
youtubeId: QDxoqWpyzo8

docs/_data/atlantic-2023-schedule.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ talks_day1:
4646
- duration: '0:20'
4747
title: '🍲 Snack break'
4848
- duration: '0:30'
49-
title: ⚡️ Lightning Talks
49+
title: ⚡️ Lightning Talks
5050
- duration: '0:05'
5151
title: '⏲ 5 minute break'
5252
- duration: '0:30'
@@ -113,4 +113,3 @@ talks_day2:
113113
title: Hallway track - Chat with other attendees
114114
- duration: '0:00'
115115
title: '<b>Conference ends 😔</b>'
116-

docs/_data/atlantic-2023-sessions.yaml

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
speakers:
77
- name: Ian Cowley
88
slug: ian-cowley
9-
twitter:
10-
website:
9+
twitter:
10+
website:
1111
abstract: '<p>Simple glossaries are relatively easy to set up for individual projects,
1212
but they become difficult to manage when you try to scale them - especially when
1313
trying to scale the management of terms and definitions across multiple platforms,
@@ -50,12 +50,12 @@
5050
speakers:
5151
- name: Josh Peacock
5252
slug: josh-peacock
53-
twitter:
54-
website:
53+
twitter:
54+
website:
5555
- name: Dennis Mortensen
5656
slug: dennis-mortensen
57-
twitter:
58-
website:
57+
twitter:
58+
website:
5959
abstract: '<p>Your customer’s desire for self-service support options, and the importance
6060
of delivering superior self-service Support, is well documented. Today’s customers
6161
are savvy, self-reliant and more than comfortable finding answers to their questions
@@ -104,8 +104,8 @@
104104
speakers:
105105
- name: Fabrizio Ferri-Benedetti
106106
slug: fabrizio-ferri-benedetti
107-
twitter:
108-
website:
107+
twitter:
108+
website:
109109
abstract: '<p>A year and a half ago, I had a crazy idea: I''d write <a href="https://www.splunk.com/en_us/resources/amir-and-the-magical-lens.html">a
110110
children''s book on OpenTelemetry</a>. My goal was to learn the essentials of
111111
the technology that I document every day at work while having fun along the way.
@@ -131,12 +131,12 @@
131131
speakers:
132132
- name: Adam Trujillo
133133
slug: adam-trujillo
134-
twitter:
135-
website:
134+
twitter:
135+
website:
136136
- name: Jeffrey Boruszak
137137
slug: jeffrey-boruszak
138-
twitter:
139-
website:
138+
twitter:
139+
website:
140140
abstract: '<p>Until recently, our product’s software engineers were primarily responsible
141141
for writing, updating, and organizing the product’s documentation. But years of
142142
rapid growth and product evolution resulted in sprawling docs that are a hodge-podge
@@ -176,8 +176,8 @@
176176
speakers:
177177
- name: Kristine Sihto
178178
slug: kristine-sihto
179-
twitter:
180-
website:
179+
twitter:
180+
website:
181181
abstract: '<p>Documentation is inherent to every organisation, and a lot of that
182182
documentation is bound for external clients. Unfortunately, there are a lot of
183183
places, both in the architecture of your documents, as well as in the content
@@ -194,8 +194,8 @@
194194
speakers:
195195
- name: Katie Riker
196196
slug: katie-riker
197-
twitter:
198-
website:
197+
twitter:
198+
website:
199199
abstract: '<p>Documentation and user experience (UX) design teams may not seem like
200200
they go together on the surface - isn’t one concerned with words and the other
201201
with pictures?
@@ -232,12 +232,12 @@
232232
speakers:
233233
- name: Chris Noonan
234234
slug: chris-noonan
235-
twitter:
236-
website:
235+
twitter:
236+
website:
237237
- name: John Hannagan
238238
slug: john-hannagan
239-
twitter:
240-
website:
239+
twitter:
240+
website:
241241
abstract: '<p>It''s difficult to determine how easy it is to read the content that
242242
you create. This is especially true for technical documentation, where complex
243243
concepts and terms that are specific to your product and industry are described.
@@ -268,8 +268,8 @@
268268
speakers:
269269
- name: Matt Dodson
270270
slug: matt-dodson
271-
twitter:
272-
website:
271+
twitter:
272+
website:
273273
abstract: '<p>In this proposal, I argue for a reader-centered, bottom-up approach
274274
to doc restructuring. To make my case, I draw parallels from the worlds of urban
275275
design and architecture, citing examples of how top-down approaches often ignore
@@ -325,8 +325,8 @@
325325
speakers:
326326
- name: Stephan Delbos
327327
slug: stephan-delbos
328-
twitter:
329-
website:
328+
twitter:
329+
website:
330330
abstract: '<p>Throughout my career in content, including digital marketing, content
331331
strategy and product content in the fast-paced world of tech startups, most strategic
332332
decisions have been based on the goal of getting as many users to look at my content
@@ -368,12 +368,12 @@
368368
speakers:
369369
- name: Alexander Schwartz
370370
slug: alexander-schwartz
371-
twitter:
372-
website:
371+
twitter:
372+
website:
373373
- name: Fabrice Flore-Thebault
374374
slug: fabrice-flore-thebault
375-
twitter:
376-
website:
375+
twitter:
376+
website:
377377
abstract: "<p>For a project of a reasonable size, there's usually more than one
378378
source for the website that needs to be published. \nThis talk presents how the
379379
Eclipse Che project leveraged Antra and Antora extensions to create a fully automated
@@ -394,8 +394,8 @@
394394
speakers:
395395
- name: Chris Meyns
396396
slug: chris-meyns
397-
twitter:
398-
website:
397+
twitter:
398+
website:
399399
abstract: '<p>Generative AI tools, especially those using large language models
400400
(LLMs) such as Bing, Bard, and ChatGPT, or text-to-image models such as Stable
401401
Diffusion or DALL·E 2, have been taking the technical writing space by storm over
@@ -437,8 +437,8 @@
437437
speakers:
438438
- name: Lorna Mitchell
439439
slug: lorna-mitchell
440-
twitter:
441-
website:
440+
twitter:
441+
website:
442442
abstract: <p>OpenAPI descriptions are an excellent way of having all information
443443
about an API in one place, and making that available to many different tools.
444444
As a standard, it can be difficult to get started with, and the resulting files

docs/_data/australia-2022-sessions.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
- name: Lana Novikova
4040
slug: lana
4141
twitter: '@_Unsolved_'
42-
website:
42+
website:
4343
abstract: <p>Lately, there was a discussion in the tech writing community about
4444
a scientific basis for technical writing. </p><p>For instance, developers have
4545
computer science which includes algorithms, theory of computation, information
@@ -62,7 +62,7 @@
6262
speakers:
6363
- name: Ishara Ilangasinghe
6464
slug: ishara-ilangasinghe
65-
twitter:
65+
twitter:
6666
website: https://isharailanga.medium.com/
6767
abstract: <p>Ever since I joined the Tech Industry I have always and always been
6868
on the other side of the interviews; interviewee. For the first time in my career,
@@ -82,7 +82,7 @@
8282
- name: Claire Mahoney
8383
slug: claire-mahoney
8484
twitter: '@wordofanerd'
85-
website:
85+
website:
8686
abstract: <p>Some content roles are straightforward and let us hit the ground running.
8787
Other jobs are like arriving on a planet that has never heard of content or docs.
8888
This is the story of how - as the first tech writer in the business - I brought
@@ -118,8 +118,8 @@
118118
speakers:
119119
- name: Alex Fiedler
120120
slug: alex-fiedler
121-
twitter:
122-
website:
121+
twitter:
122+
website:
123123
abstract: <p>Product-led Growth (PLG) is a go-to-market strategy being adopted by
124124
a growing number of SaaS companies. PLG is based on generating sales from customers
125125
using the product and succeeding with as little interaction with sales and field
@@ -136,7 +136,7 @@
136136
- name: Hari Priya
137137
slug: hari-priya
138138
twitter: '@hari_priya21'
139-
website:
139+
website:
140140
abstract: '<p>As a college student, I focused more on learning and writing code.
141141
I never imagined I would land three internships as a Technical Writer. Everything
142142
happened naturally when I began my journey with the Fedora organisation as an

docs/_data/australia-2023-sessions.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,4 +300,4 @@
300300
301301
<p>By the end of this talk, you''ll have a handy list of metrics which may prove
302302
beneficial for your team, and a strengthened intuition for when a metric is simply
303-
noise to tune out - and what may be worth tuning into.</p>'
303+
noise to tune out - and what may be worth tuning into.</p>'

docs/_data/australia-2024-schedule.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ talks_day2:
7272
- duration: '0:20'
7373
title: '☕ Coffee break'
7474
- duration: '0:00'
75-
title: "<b>Unconference Starts</b>"
75+
title: "<b>Unconference Starts</b>"
7676
- duration: '0:30'
7777
slug: where-journalism-and-advertising-writing-skills-overlap-with-technical-writing-justine-stewart
7878
- duration: '0:10'
@@ -84,7 +84,7 @@ talks_day2:
8484
- duration: '0:10'
8585
title: '✋ 10 min Q&A'
8686
- duration: '0:00'
87-
title: "<b>Unconference Ends</b>"
87+
title: "<b>Unconference Ends</b>"
8888
- duration: '1:00'
8989
title: '🍽️ Lunch Break (60 mins)'
9090
- duration: '0:00'

0 commit comments

Comments
 (0)