46 Commits
Author SHA1 Message Date
delliottandDarragh Elliott b9caf021a4 fix/paragraphs (#5431)
continuous-integration/drone/push Build is passing
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>
2025-10-30 12:34:42 +00:00
delliottandDarragh Elliott 1315a7d481 build/xslt (#5299)
continuous-integration/drone/push Build is passing
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>
2025-09-15 06:23:57 +00:00
delliottandDarragh Elliott 1a05dee2f6 build: use lefthook for pre-commit (#5248)
continuous-integration/drone/push Build is passing
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>
2025-08-27 15:22:06 +00:00
Darragh Elliott 5a6a3f27b0 build: set xsl output types more consistently
continuous-integration/drone/pr Build is passing
disbale indenting for smaller output
2025-08-26 16:30:44 +01:00
delliottandDarragh Elliott f08d5ef925 feat/lxml (#5181)
continuous-integration/drone/push Build is passing
#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>
2025-07-29 08:17:53 +00:00
sofiaritz 63e70f1eb1 Revert "refactor: use lxml instead of string templating in process_file. (#5146)"
continuous-integration/drone/pr Build is passing
This reverts commit c4b7f0f33c.
2025-07-28 18:00:47 +02:00
delliottandDarragh Elliott c4b7f0f33c refactor: use lxml instead of string templating in process_file. (#5146)
continuous-integration/drone/push Build is passing
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>
2025-07-28 13:06:30 +00:00
Darragh Elliott 36a75d09b4 fix: remove unneeded css and font files from pdfreaders.org and drm.info
continuous-integration/drone/pr Build is passing
2024-09-14 14:25:35 +01:00
Darragh Elliott 233f95cd22 fix: allow less compilation on newer less versions 2024-09-14 14:25:02 +01:00
delliott 4839a84d5e Put fonts in subpage folders to reduce cross contamination 2024-08-26 09:48:06 +02:00
delliott b57f1cb355 Add css to drm.info and pdfreaders 2024-08-26 09:48:06 +02:00
bonnie 358d3536c1 Fixing broken mailing list links
continuous-integration/drone/pr Build is passing
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.
2024-06-20 22:07:50 +02:00
fbn_bmnsandbonnie 5d757e7151 Exclud old naming: RM absolute links to fsfe.org
continuous-integration/drone/push Build is passing
Follow up of #2812

Co-authored-by: Bonnie <bonnie@fsfe.org>
2022-11-02 09:23:20 +00:00
mskf1383 247f8731e8 Add right to left reading (Fix #2800) (#2805)
continuous-integration/drone/push Build is passing
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>
2022-10-21 10:38:46 +00:00
mskf1383 d040260b67 Translate title of DRM.info privacy page (#2799)
continuous-integration/drone/push Build is passing
Excuse me, I forgot it.
Please merge this patch.
Thanks!

Reviewed-on: #2799
Co-authored-by: mskf1383 <mskf1383@fsfe.org>
Co-committed-by: mskf1383 <mskf1383@fsfe.org>
2022-09-23 09:58:50 +00:00
mskf1383 74aff574e0 Add Persian translation for drm.info pages (#2766)
continuous-integration/drone/push Build is passing
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>
2022-09-12 09:10:32 +00:00
criadoperez 268e8f9733 ES Typos and new ES pages (#2087)
continuous-integration/drone/push Build is passing
Co-authored-by: criadoperez <alejandro@criadoperez.com>
Co-authored-by: Alejandro Criado-Pérez <alejandro@criadoperez.com>
Reviewed-on: #2087
Co-authored-by: Alejandro Criado-Pérez <criadoperez@fsfe.org>
Co-committed-by: Alejandro Criado-Pérez <criadoperez@fsfe.org>
2021-09-01 11:47:08 +00:00
olatusrooc a31f718094 broken link fixing & https fix (#1624)
continuous-integration/drone/push Build is passing
2020-09-29 12:46:19 +02:00
max.mehl 9d7fb8cdbd replace links from /about/basics 2020-07-27 14:09:32 +02:00
Nico Rikken a835ebf44a chore: unify FSFE URLs in drm.info and pdfreaders
continuous-integration/drone/pr Build is passing
2020-06-01 08:52:58 +02:00
reinhard a0170822f8 Fix links from pdfreaders.org to fsfe.org
continuous-integration/drone/push Build is passing
2020-05-18 22:08:26 +02:00
reinhard dd9cef523e Reformat and occasionally fix <html> tag
continuous-integration/drone/push Build is passing
This happens in preparation for potentially upcoming global changes to
this tag.
2020-05-16 23:51:53 +02:00
reinhard dfc13f9039 Remove timestamp at the bottom of each page
continuous-integration/drone/push Build is passing
Fixes #837
2020-05-04 00:49:28 +02:00
max.mehl 885b6f573a Delete unused files, and outdated folders + links of some people 2020-04-30 16:16:50 +02:00
reinhard 377fcde82e Clean up formatting of XSL files, no code change 2020-04-27 21:53:42 +02:00
reinhard a4b01194f0 Move all our own XSL scripts to the same directory
The directory tools/xlstsl is reserved for the XSLT standard library
(http://xsltsl.sourceforge.net/).
2020-04-27 21:19:06 +02:00
reinhard c4cb7aeef4 Introduce content version in source files
continuous-integration/drone/push Build is passing
Fixes #2
2020-04-15 14:07:46 +02:00
floriansnow 0cd53ce9c8 Add news about the Day Against DRM (#1110)
continuous-integration/drone/push Build is passing
2019-10-11 21:37:46 +02:00
max.mehl 499f41a9c4 fix links
the build was successful
2018-12-19 16:01:30 +01:00
olatusrooc bca1630bdb Completed Italian translation of drm.info
the build was successful
2018-08-21 20:59:12 +02:00
olatusrooc a7afbe42cb Added privacy.it 2018-07-20 10:56:37 +02:00
olatusrooc 2862d02841 DRM.info: started ITA translation 2018-07-19 12:54:45 +02:00
repentinus 3a7dfe5dcc Thanks, Fernando!
svn path=/trunk/; revision=35029
2017-02-11 07:39:32 +00:00
zeh 34f4df6690 added 8 new pt translations
svn path=/trunk/; revision=34583
2016-11-23 15:15:27 +00:00
mjammes ca37bbf5e9 Adding index french translation
svn path=/trunk/; revision=31047
2015-04-23 10:06:48 +00:00
paul a1c08fb29f merge simpler gettext from test
svn path=/trunk/; revision=30930
2015-03-27 17:56:12 +00:00
paul 78ea515b2e externalise gettext functions, remove unnessesary import rules
svn path=/branches/test/; revision=30913
2015-03-26 16:48:20 +00:00
nico.rikken 4a5005b0af Translation by Nathan.
svn path=/trunk/; revision=30693
2015-02-25 21:04:57 +00:00
pavi 4d597c16ab Renamed drm-info to drm.info
svn path=/branches/test/; revision=29733
2014-10-24 15:12:18 +00:00
pavi 6a831fc199 moved drm.info to drm-info
svn path=/branches/test/; revision=29282
2014-09-19 13:25:42 +00:00
mk ae367413ba testing
svn path=/branches/test/; revision=29281
2014-09-19 13:12:32 +00:00
pavi be19679b95 small update for sample testing file
svn path=/branches/test/; revision=29280
2014-09-19 12:51:01 +00:00
pavi 38f391b7ea typo corrections for sample testing file
svn path=/branches/test/; revision=29279
2014-09-19 12:49:42 +00:00
pavi a7e89cc278 sample file for testing purposes
svn path=/branches/test/; revision=29278
2014-09-19 12:46:30 +00:00
pavi 114716e9da Added logos
svn path=/branches/test/; revision=29277
2014-09-19 12:34:05 +00:00
pavi 572ea85f03 Added drm.info for testing. very raw version , mightnot even work
svn path=/branches/test/; revision=29264
2014-09-17 03:43:08 +00:00