Skip to content

Commit 2b9ef09

Browse files
committed
chore: add markdownlint / prettier
in much the same was as in the 'program' repo
1 parent c591f32 commit 2b9ef09

23 files changed

Lines changed: 1852 additions & 315 deletions

.gitbook/assets/education-career-journey.json

Lines changed: 60 additions & 213 deletions
Large diffs are not rendered by default.

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.DS_Store
2+
.idea
3+
.vscode
4+
node_modules/

.markdownlint.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
$schema: https://raw.githubusercontent.com/DavidAnson/markdownlint/v0.38.0/schema/markdownlint-config-schema.json
3+
extends: markdownlint/style/prettier
4+
no-trailing-punctuation:
5+
punctuation: .,;:。,;:!
6+
no-inline-html: false
7+
code-block-style:
8+
style: fenced
9+
search-replace:
10+
rules:
11+
- name: plain-spaces
12+
message: "hard spaces are not allowed"
13+
searchPattern: "/(?![ \\n])\\s/g"
14+
replace: " "

.prettierrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"endOfLine": "lf"
3+
}

.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodejs 24.10.0

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ You can find all the information you'll need to become a great HackYourFuture me
1414

1515
## Why join the HackYourFuture Community?
1616

17-
* You will contribute to improving the lives of others through tech training 🚀
18-
* You will become a better expert of your own craft by teaching your knowledge 🤓
19-
* You will be exposed to different cultures and different ways of thinking & working 👐
20-
* You will become a part of HackYourFuture’s professional network (nearly 1k members!) 🌐
17+
- You will contribute to improving the lives of others through tech training 🚀
18+
- You will become a better expert of your own craft by teaching your knowledge 🤓
19+
- You will be exposed to different cultures and different ways of thinking & working 👐
20+
- You will become a part of HackYourFuture’s professional network (nearly 1k members!) 🌐
2121

2222
## What do we stand for at HackYourFuture?
2323

24-
* Together, we speak the same language: English 💬.
25-
* We work together on Sundays 🌤. We're adapted to our trainees realities, facing other challenges during the weekdays.
26-
* We breathe openness 👐. We're fully transparent and happy to share our methods and progress.
27-
* We help you let your future define you, not your past 💪. We train asylum seekers, refugees and others facing barriers to the Danish job educational system and job market.
28-
* We work to get our trainees into their tech job, not to just graduate our program. 💼
29-
* We are like a family 🧡. Our format is based on a grassroots community with volunteer coaches and mentors.
30-
* We advocate for diversity 🧕. We strongly encourage women to participate. Over 50% of our trainees are women.
24+
- Together, we speak the same language: English 💬.
25+
- We work together on Sundays 🌤. We're adapted to our trainees realities, facing other challenges during the weekdays.
26+
- We breathe openness 👐. We're fully transparent and happy to share our methods and progress.
27+
- We help you let your future define you, not your past 💪. We train asylum seekers, refugees and others facing barriers to the Danish job educational system and job market.
28+
- We work to get our trainees into their tech job, not to just graduate our program. 💼
29+
- We are like a family 🧡. Our format is based on a grassroots community with volunteer coaches and mentors.
30+
- We advocate for diversity 🧕. We strongly encourage women to participate. Over 50% of our trainees are women.

SUMMARY.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
# Table of contents
22

3-
* [Mentor's Guide](README.md)
4-
* [🎯 Getting Started](master/getting-started.md)
5-
* [📕 Glossary](master/glossary.md)
3+
- [Mentor's Guide](README.md)
4+
- [🎯 Getting Started](master/getting-started.md)
5+
- [📕 Glossary](master/glossary.md)
66

77
## Roles
88

9-
* [💻 Technical Mentors](roles/technical-mentors/README.md)
10-
* [Assignment Reviewer](roles/technical-mentors/homework-reviewer.md)
11-
* [Session Assistant](roles/technical-mentors/teaching-assistant.md)
12-
* [Session Lead](roles/technical-mentors/lead-teacher.md)
13-
* [Flexible tasks](roles/technical-mentors/flexible-tasks.md)
14-
* [📈 Career Mentors](roles/career-mentors/README.md)
15-
* [Jobseeker Toolkit](roles/career-mentors/jobseeker-toolkit.md)
16-
* [Interview Training](roles/career-mentors/interview-training/README.md)
17-
* [Mock-HR Interview](roles/career-mentors/interview-training/mock-hr-interview.md)
18-
* [Mock-Technical Interview](roles/career-mentors/interview-training/mock-technical-interview.md)
19-
* [Live-coding Interview](roles/career-mentors/interview-training/live-coding-interview.md)
20-
* [1:1 Career Coach](roles/career-mentors/1-1-career-coach.md)
9+
- [💻 Technical Mentors](roles/technical-mentors/README.md)
10+
- [Assignment Reviewer](roles/technical-mentors/homework-reviewer.md)
11+
- [Session Assistant](roles/technical-mentors/teaching-assistant.md)
12+
- [Session Lead](roles/technical-mentors/lead-teacher.md)
13+
- [Flexible tasks](roles/technical-mentors/flexible-tasks.md)
14+
- [📈 Career Mentors](roles/career-mentors/README.md)
15+
- [Jobseeker Toolkit](roles/career-mentors/jobseeker-toolkit.md)
16+
- [Interview Training](roles/career-mentors/interview-training/README.md)
17+
- [Mock-HR Interview](roles/career-mentors/interview-training/mock-hr-interview.md)
18+
- [Mock-Technical Interview](roles/career-mentors/interview-training/mock-technical-interview.md)
19+
- [Live-coding Interview](roles/career-mentors/interview-training/live-coding-interview.md)
20+
- [1:1 Career Coach](roles/career-mentors/1-1-career-coach.md)
2121

2222
## Practicalities
2323

24-
* [📍 Location: Copenhagen](practicalities/location.md)
25-
* [📍 Location: Aarhus](practicalities/location-aarhus.md)
24+
- [📍 Location: Copenhagen](practicalities/location.md)
25+
- [📍 Location: Aarhus](practicalities/location-aarhus.md)

lint

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
#!/bin/bash
2+
3+
set -eu
4+
5+
markdownlint() {
6+
echo "markdownlint: RUN"
7+
if npm exec -- markdownlint --ignore 'node_modules/' --rules markdownlint-rule-search-replace '**/*.md' ; then
8+
echo "markdownlint: PASS"
9+
else
10+
echo "markdownlint: FAIL"
11+
return 1
12+
fi
13+
}
14+
15+
prettier() {
16+
echo "prettier: RUN"
17+
if npm exec -- prettier --check . ; then
18+
echo "prettier: PASS"
19+
else
20+
echo "prettier: FAIL"
21+
return 1
22+
fi
23+
}
24+
25+
lint-git-tree() {
26+
echo "lint-git-tree: RUN"
27+
if npx @blaahaj/lint-git-tree ; then
28+
echo "lint-git-tree: PASS"
29+
else
30+
echo "lint-git-tree: FAIL"
31+
return 1
32+
fi
33+
}
34+
35+
all() {
36+
local rc=0
37+
echo "lint: RUN"
38+
markdownlint || rc=1
39+
prettier || rc=1
40+
lint-git-tree || rc=1
41+
42+
if [ $rc -eq 0 ] ; then
43+
echo "lint: PASS"
44+
else
45+
echo "lint: FAIL"
46+
echo "Try './lint --fix' to see if any automatic fixes are possible"
47+
fi
48+
49+
return $rc
50+
}
51+
52+
if [ "${1:-}" == "--fix" ] ; then
53+
npm exec -- markdownlint --ignore 'node_modules/' --rules markdownlint-rule-search-replace --fix '**/*.md' || :
54+
npm exec -- prettier --write --list-different . || :
55+
else
56+
all
57+
fi

master/getting-started.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ Our Slack workplace is the **main communication tool we use**. The workspace has
1010

1111
## FAQ
1212

13-
* Q: **How long do I have to commit as a volunteer?**\
13+
- Q: **How long do I have to commit as a volunteer?**\
1414
A: The duration of the module you are helping out with. ([see below](https://mentor.hackyourfuture.dk/getting-started#so-how-is-the-curriculum-structured)) However, there is no limitation to how many modules you want to be part of. 
15-
* Q: **How much time does mentoring require per week?**\
15+
- Q: **How much time does mentoring require per week?**\
1616
A: It depends on the role, but aim at about 7-8 hours per week.
17-
* Q: **Do I need to be a working professional to teach?**\
17+
- Q: **Do I need to be a working professional to teach?**\
1818
A: No, you don't need to be a working professional, but it is a big plus. We want our trainees to learn from people who work with the technologies in our curriculum on a daily basis and know the challenges of the market.
19-
* Q: **Will I be leading the workshops all by myself?**\
19+
- Q: **Will I be leading the workshops all by myself?**\
2020
A: No, the sessions are always run by a small group of volunteers. This allows for less pressure on the individual, split responsibility, and a broader perspective for our trainees.
21-
* Q: **Do I have to teach exactly like it says in the curriculum?**\
21+
- Q: **Do I have to teach exactly like it says in the curriculum?**\
2222
A: Not strictly. We have a clear curriculum with set learning goals and examples. The learning goals are the most important outcomes that you must help trainees reach by the end of the module. However, how you approach teaching those, specific materials you introduce or new ideas for exercises are always welcomed. Our curriculum is open-source, so you are welcome (and strongly encouraged!) to contribute to it with your own ideas. Check out our [Contributing guide](https://github.com/HackYourFuture-CPH/programme/tree/main/contributing), if you're interested.
23-
* Q: **When do the workshops take place?**\
23+
- Q: **When do the workshops take place?**\
2424
A: Sundays 12:00 - 16:00
2525

2626
## So how is the program structured?
@@ -37,11 +37,11 @@ As a mentor you can book a specific module where you are responsible for the tea
3737

3838
## Modules
3939

40-
* All modules have their own directory in the [Program repo](https://github.com/HackYourFuture-CPH/programme).
41-
* Check out the overview Readme under each course to see more details about the modules and content covered. Start [here](https://github.com/HackYourFuture-CPH/programme/tree/main/courses) if you want to look around.
42-
* We divided everyone in our organization into GitHub teams, we have one for mentors, one for each trainee team etc. which all have different permissions.
43-
* We have a private repository where fellow mentors share their [**teaching-tips-and-tricks**](https://github.com/HackYourFuture/teaching_tips_tricks), if you are new to teaching or are just curious on what they think works well in team, take a look.
44-
* Please contribute and help improve the curriculum. Just make a Pull Request or share your feedback in slack ([#curriculum-crew](https://hackyourfuture-cph.slack.com/archives/C070USK1UET) is a good place to start).
40+
- All modules have their own directory in the [Program repo](https://github.com/HackYourFuture-CPH/programme).
41+
- Check out the overview Readme under each course to see more details about the modules and content covered. Start with [Courses](https://github.com/HackYourFuture-CPH/programme/tree/main/courses) if you want to look around.
42+
- We divided everyone in our organization into GitHub teams, we have one for mentors, one for each trainee team etc. which all have different permissions.
43+
- We have a private repository where fellow mentors share their [**teaching-tips-and-tricks**](https://github.com/HackYourFuture/teaching_tips_tricks), if you are new to teaching or are just curious on what they think works well in team, take a look.
44+
- Please contribute and help improve the curriculum. Just make a Pull Request or share your feedback in slack ([#curriculum-crew](https://hackyourfuture-cph.slack.com/archives/C070USK1UET) is a good place to start).
4545

4646
## Workshops/Master Classes
4747

master/glossary.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ You may still find traces of the outdated terms. How you can help the transition
1111

1212
1. Please update outdated terms if you spot them anywhere, or raise them to a staff member.
1313
2. If you hear people use any outdated terms, feel free to kindly nudge them towards the new terms (or point them to this page for clarification).
14-
{% endhint %}
14+
{% endhint %}
1515

1616
## Definitions
1717

18+
<!-- markdownlint-disable no-emphasis-as-heading -->
19+
1820
### Assignments
1921

2022
_(Previously "Homework")_
@@ -78,3 +80,5 @@ _See_ [_Curriculum (GitHub)_](https://github.com/HackYourFuture-CPH/curriculum)
7880
### Module
7981

8082
A unit of the Curriculum that focuses on a specific theme e.g. "JavaScript".
83+
84+
<!-- markdownlint-enable no-emphasis-as-heading -->

0 commit comments

Comments
 (0)