Currently implements both a format hook to remove white-space paragraphs, and a check to make their existence a critical failure.
In the end may implement only one or none of these, subject to major design changes.
Solves #5409
Co-authored-by: Darragh Elliott <me@delliott.net>
Reviewed-on: #5431
Co-authored-by: delliott <delliott@fsfe.org>
Co-committed-by: delliott <delliott@fsfe.org>
This properly separtes out the python build process (theoretically portable and useable for different sites) and the xslt (custom to the fsfe sites, not really portable as a whole)
It also moves some thirdparty tooling around to make it clearer its thirdparty and unify xslt sources.
Co-authored-by: Darragh Elliott <me@delliott.net>
Reviewed-on: #5299
Reviewed-by: tobiasd <tobiasd@fsfe.org>
Co-authored-by: delliott <delliott@fsfe.org>
Co-committed-by: delliott <delliott@fsfe.org>
update docs
update nix-shell to auto install
rework custom pre-commit hooks to integrate better
add dockerfile for lefthook and integrate into drone
add some more hooks for formatting and linting some files
Co-authored-by: Darragh Elliott <me@delliott.net>
Reviewed-on: #5248
Co-authored-by: delliott <delliott@fsfe.org>
Co-committed-by: delliott <delliott@fsfe.org>
#5146 attempt 2, texts and topbanner issue resolved.
After the issues I have deployed this to https://test.fsfe.org, so we can see if there are further issues there.
It seems not though.
Co-authored-by: Darragh Elliott <me@delliott.xyz>
Reviewed-on: #5181
Co-authored-by: delliott <delliott@fsfe.org>
Co-committed-by: delliott <delliott@fsfe.org>
Code looks much cleaner and easier to read, as well as being more performant.
Also prevents the construction of invalid xml.
Some benchmarks:
```
❯ hyperfine --runs 3 "uv run build --full "; git checkout master; hyperfine --runs 3 "uv run build --full "
Benchmark 1: uv run build --full
Time (mean ± σ): 287.612 s ± 4.557 s [User: 1613.681 s, System: 151.556 s]
Range (min … max): 283.550 s … 292.539 s 3 runs
Switched to branch 'master'
Your branch is up to date with 'origin/master'.
Benchmark 1: uv run build --full
Time (mean ± σ): 357.248 s ± 5.578 s [User: 2052.506 s, System: 163.057 s]
Range (min … max): 350.810 s … 360.609 s 3 runs
```
So this reduces build times by about a minute, getting us down to just under 5 minutes for a full build on my machine.
Co-authored-by: Darragh Elliott <me@delliott.xyz>
Reviewed-on: #5146
Co-authored-by: delliott <delliott@fsfe.org>
Co-committed-by: delliott <delliott@fsfe.org>
sed -i 's/https:\/\/lists.fsfe.org\/mailman\/listinfo\/\([a-z0-9-]*\)/https:\/\/lists.fsfe.org\/postorius\/lists\/\1.lists.fsfe.org/g' $(git ls-files)
It took quite a while to cover all mailing list names and cases.
I think this will fix #2800
The header is become force-LTR, because it is not translatable and it is alwayes English.
And some changes on CSS to make it usable for both LTR and RTL languages.
Reviewed-on: #2805
Reviewed-by: bonnie <bonnie@fsfe.org>
Co-authored-by: mskf1383 <mskf1383@fsfe.org>
Co-committed-by: mskf1383 <mskf1383@fsfe.org>
This is Persian translation of drm.info pages.
Please merge it.
Thanks!
Reviewed-on: #2766
Co-authored-by: mskf1383 <mskf1383@fsfe.org>
Co-committed-by: mskf1383 <mskf1383@fsfe.org>