Skip to content

Commit 4044f00

Browse files
committed
ci: add markdownlint
1 parent b81bd27 commit 4044f00

5 files changed

Lines changed: 47 additions & 34 deletions

File tree

.github/workflows/Markdownlint.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: Markdownlint
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
jobs:
9+
tsc:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v5
13+
with:
14+
fetch-depth: 0
15+
16+
- name: Markdownlint
17+
uses: reviewdog/action-markdownlint@3667398db9118d7e78f7a63d10e26ce454ba5f58 # v0.26.2
18+
with:
19+
fail_level: any
20+
markdownlint_flags: '-s .mdl_style.rb'
21+
reporter: github-pr-review

.mdl_style.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
all
2+
rule 'MD029', style: :ordered
3+
4+
exclude_rule 'MD002' # This conflicts with the way we generate HTML from markdown.
5+
exclude_rule 'MD013' # Line length limits hold you back.
6+
exclude_rule 'MD026' # Trailing punctuation in headers can be grammatically useful.
7+
exclude_rule 'MD032' # This conflicts with the way we generate HTML from markdown if we have multiple authors.
8+
exclude_rule 'MD034' # Sometimes a bare URL is exactly what you want.
9+
exclude_rule 'MD036' # We purposefully use emphases instead of headers sometimes.
10+
exclude_rule 'MD041' # This conflicts with the way we generate HTML from markdown.

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
# wiki
22

3-
welcome to the linux society wiki repo!
3+
welcome to the linux society wiki repo!
44

55
## contributing
66

77
if you would like to contribute to the wiki, make a pull request with the edits you would like to make.
88

99
### new articles
10+
1011
please place any new articles inside of the `content/` directory.
1112

1213
### attributions
14+
1315
to be attributed for your work, add your github username into the `authors` section of the markdown file's frontmatter.
1416
an example:
1517

@@ -20,4 +22,4 @@ authors:
2022
- username3 # <- editor
2123
```
2224
23-
these authors should be ordered by the amount they have contributed to the article.
25+
these authors should be ordered by the amount they have contributed to the article.

content/eduroam.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
id: eduroam
3-
title: "how do i connect to eduroam on <distro>?"
3+
title: "how do i connect to eduroam on $distro?"
44
aliases: []
55
tags: []
66
authors:
@@ -14,7 +14,7 @@ layout: base.njk
1414

1515
**tldr: try [arubaquickconnect4all](https://github.com/alzer89/ArubaQuickConnect4All)**
1616

17-
eduroam at unsw is an aruba-managed wireless network, meaning that it only officially supports ubuntu. if you are looking to connect on a distro other than ubuntu, an option is [arubaquickconnect4all](https://github.com/alzer89/ArubaQuickConnect4All).
17+
eduroam at unsw is an aruba-managed wireless network, meaning that it only officially supports ubuntu. if you are looking to connect on a distro other than ubuntu, an option is [arubaquickconnect4all](https://github.com/alzer89/ArubaQuickConnect4All).
1818
by doing so, you will get higher speeds compared to using unsw-iot :)
1919

2020
all the following steps assume you have cloned the repo already (see steps on github).
@@ -61,9 +61,9 @@ please note that the below is a temporary solution which may stop working at any
6161
```sh
6262
nmcli connection edit
6363
# type wifi in to make a new wifi connection
64-
64+
6565
set connection.id yourConnectionName
66-
66+
6767
set wifi.ssid eduroam
6868

6969
set 802-1x.eap peap

content/iot.md

Lines changed: 8 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,12 @@ layout: base.njk
1313

1414
If you don't want to use eduroam, UNSW-IoT is another option. You may want to do this if you are not interested in `aqc4all`, or don't want to use the deprecated method of connecting to eduroam.
1515

16-
The issues with iot that you may have patchy reception in some buildings (e.g. Keith Burrows), and that iot isn't officially supported for personal devices.
16+
The issues with iot that you may have patchy reception in some buildings (e.g. Keith Burrows), and that iot isn't officially supported for personal devices.
1717

1818
![Connction to UNSW-IoT on i3status bar](/assets/UNSW-IoT-connection.png)
1919

2020
The way UNSW-IoT works is that you put down your MAC address in an online portal and they provide you a password to connect with. **This will not work with setups and operating systems that randomise your MAC address, so ensure you disable these settings :)**
2121

22-
<div>
23-
24-
---
25-
26-
---
27-
28-
</div>
29-
3022
See the bottom of the document at [#acquire-your-macv4-address](#acquire-your-macv4-address) to get your MACv4 address, it should look like the string `XX:XX:XX:XX:XX:XX` where each `XX` are hex bytes.
3123

3224
1. **Go here** [https://www.unsw.edu.au/myit/services/wifi-network/connecting-to-the-unsw-network/get-online/internet-of-things-device](https://www.unsw.edu.au/myit/services/wifi-network/connecting-to-the-unsw-network/get-online/internet-of-things-device) - Click **Get online →**
@@ -39,19 +31,6 @@ See the bottom of the document at [#acquire-your-macv4-address](#acquire-your-ma
3931

4032
![Create new UNSW-IoT device portal](/assets/UNSW-IoT-create-new-device.png)
4133

42-
43-
44-
45-
<div>
46-
47-
---
48-
49-
---
50-
51-
52-
</div>
53-
54-
5534
## Acquire your MACv4 address
5635

5736
### Use ip addr or /proc
@@ -69,7 +48,7 @@ and extract out the `XX:XX:XX:XX:XX:XX` for the thing that isn't the loopback, s
6948
Otherwise, you can use proc filesystem
7049

7150
```sh
72-
cat /sys/class/net/wlan0/address
51+
cat /sys/class/net/wlan0/address
7352
# XX:XX:XX:XX:XX:XX
7453
```
7554

@@ -81,9 +60,10 @@ cat /sys/class/net/wlan0/address
8160
iwctl station wlan0 show
8261
#
8362
# ....
84-
# Connected network ???
85-
# IPv4 address ??.??.??.??
63+
# Connected network ???
64+
# IPv4 address ??.??.??.??
8665
# ConnectedBss XX:XX:XX:XX:XX:XX
87-
# ....
88-
# ....
89-
# ....
66+
# ....
67+
# ....
68+
# ....
69+
```

0 commit comments

Comments
 (0)