Skip to content

Commit 89f9f61

Browse files
authored
Merge pull request #15 from practical-python-org/chores-and-bugfixes
Chores and bugfixes: domain references, CI trigger, docs nits
2 parents e6b78e2 + 6a24e10 commit 89f9f61

11 files changed

Lines changed: 19 additions & 25 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: CI
22

33
on:
44
pull_request:
5-
branches: [main]
65
push:
76
branches: [main]
87

‎CONTRIBUTING.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ Values that appear on more than one page live in `[project.extra]` in `zensical.
9393
Join us at {{ discord_invite }}.
9494
```
9595

96-
Available: `discord_invite`, `eos_repo`, `site_repo`. Add more there rather than pasting a URL into
97-
six pages.
96+
Available: `discord_invite`, `eos_repo`, `site_repo`, `member_count`. Add more there rather than
97+
pasting a URL into six pages.
9898

9999
### What not to add
100100

‎Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: run, strict, pre-commit
1+
.PHONY: run strict pre-commit
22

33
all: run
44

‎README.md‎

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# practical-python.org
1+
# practicalpython.org
22

33
The website and documentation space for the Practical Python Discord community.
44

@@ -44,12 +44,15 @@ docs/
4444
├── index.md landing page
4545
├── CNAME custom domain, copied to the site root on build
4646
├── stylesheets/ colour, font and hero overrides
47+
├── static/ logo and images
4748
├── getting-started/ the entry point for new members
49+
├── python-tutorial/ the beginner tutorial
4850
├── rules/ server rules, code of conduct, moderation
4951
├── resources/ learning material and setup guides
50-
└── projects/
51-
├── our-projects/ software the community maintains
52-
└── build-something/ project challenges for members
52+
├── projects/
53+
│ ├── our-projects/ software the community maintains
54+
│ └── build-something/ project challenges for members
55+
└── code-adventure/ landing page for the Code Adventure puzzles!
5356
scripts/
5457
└── refresh_member_count.py updates the Discord member count before a deploy build
5558
zensical.toml all site configuration, including the nav
@@ -75,11 +78,4 @@ Pull requests run `.github/workflows/ci.yml` — the same pre-commit checks you
7578

7679
## Dependencies
7780

78-
One direct dependency, `zensical`, pinned through `uv.lock`. `requirements.txt` is generated from
79-
the lockfile for anyone who wants to read the tree without uv:
80-
81-
```bash
82-
uv export --no-dev --no-hashes --no-emit-project -o requirements.txt
83-
```
84-
85-
CI installs from the lockfile, not from `requirements.txt`.
81+
One direct dependency, `zensical`, pinned through `uv.lock`.

‎docs/CNAME‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
practical-python.org
1+
practicalpython.org

‎docs/code-adventure/index.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Do you love solving puzzles and learning something new? __Join us on a Code Adve
7979

8080
: __Corporate sponsorship opportunities are also available__.
8181

82-
[:simple-github:{ .lg .middle } __Github__](https://github.com/JefeThePug/Practical-Python-Code-Adventure)
82+
[:simple-github:{ .lg .middle } __GitHub__](https://github.com/JefeThePug/Practical-Python-Code-Adventure)
8383

8484
: Curious about how the adventure was made? __Check out the project on GitHub__.
8585
If you like what you see, feel free to give it a :material-star:{ .lg .bottom }.

‎docs/rules/channels.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ Commands work in most channels, but check before filling a help channel with bot
4747
/ticket
4848
```
4949

50-
!!! tip "It's a long list..."
50+
!!! tip "It's a long list..."
5151

52-
The full list, with permissions and arguments, is in the
53-
[Eos documentation](../projects/our-projects/eos.md).
52+
The full list, with permissions and arguments, is in the
53+
[Eos documentation](../projects/our-projects/eos.md).
5454

5555
=== "Run code in the chat!"
5656

‎docs/rules/index.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Harassment, slurs and bigotry get you removed without a warning ladder. See
3030
## 2. Stay on topic
3131

3232
Stick to the subject of the channel you're posting in. If your question doesn't fit anywhere
33-
obvious, ask anyway — we'd rather help you find your way then you not ask because you didn't know
33+
obvious, ask anyway — we'd rather help you find your way than you not ask because you didn't know
3434
where to ask.
3535

3636
[Channels](channels.md) says what goes where.

‎docs/rules/moderation.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ What happens when a rule gets broken
1212
|------|---------------------------|------------------------------------------------------------|
1313
| 1 | Informal nudge in channel | First minor slip, you'll get notified |
1414
| 2 | Formal warning, logged | Repeat of the same slip, or ignoring a moderator |
15-
| 3 | Timeout, minutes to hours | Heated argument or overexcitment that won't cool down |
15+
| 3 | Timeout, minutes to hours | Heated argument or overexcitement that won't cool down |
1616
| 4 | Quarantine | Spam, suspected compromised account. Step into our office. |
1717
| 5 | Kick | Pattern of warnings with no change |
1818
| 6 | Ban | Code of conduct breach, scams, ban evasion |

‎scripts/refresh_member_count.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
TIMEOUT = 10
2323

2424
USER_AGENT = (
25-
"practical-python-dot-org/1.0 (+https://practical-python.org; deploy script)"
25+
"practical-python-dot-org/1.0 (+https://practicalpython.org; deploy script)"
2626
)
2727
MEMBER_COUNT_LINE = re.compile(r'^(member_count\s*=\s*)"[^"]*"', re.MULTILINE)
2828

0 commit comments

Comments
 (0)