Compare commits

...

2 commits

Author SHA1 Message Date
Octavia Togami
af57efaef1 Change his/her & his to their in licensing.md (#801)
This is consistent with the rest of the document and is more inclusive.

Reviewed-on: https://codeberg.org/Codeberg/Documentation/pulls/801
Reviewed-by: Robert Wolff <mahlzahn@posteo.de>
2026-06-07 20:46:44 +02:00
0ko
d7889e5ad6 fix: serve halfmoon css through addPassthroughCopy (#799)
Serve halfmoon CSS files through eleventry's addPassthroughCopy instead of template file, avoiding serving additional HTML bloat.

Network usage wise, this changes from one 423 KiB uncompressed response to two responses 380 KiB total

Followup to https://codeberg.org/Codeberg/Documentation/pulls/655
Solves https://codeberg.org/Codeberg/Documentation/pulls/655#issuecomment-7361962

Reviewed-on: https://codeberg.org/Codeberg/Documentation/pulls/799
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
2026-05-31 14:50:19 +02:00
4 changed files with 5 additions and 8 deletions

View file

@ -20,7 +20,8 @@
<link rel="preload" href="https://fonts.codeberg.org/dist/inter/Inter%20Web/inter.css" as="style" />
<link rel="preload" href="https://fonts.codeberg.org/dist/fontawesome6/css/svg-with-js.css" as="style" />
<link rel="stylesheet" type="text/css" href="/halfmoon.css">
<link rel="stylesheet" type="text/css" href="/assets/css/halfmoon/halfmoon.min.css">
<link rel="stylesheet" type="text/css" href="/assets/css/halfmoon/cores/halfmoon.modern.css">
<link rel="stylesheet" type="text/css" href="/assets/css/codeberg-docs.css" />
<!-- Syntax highlighting -->

View file

@ -23,8 +23,8 @@ Unfortunately, however, copyright law does not protect hardware objects.
[Copyright law is extremely powerful](https://www.gnu.org/philosophy/enforcing-gpl.en.html).
In fact, it grants the author of a work exclusive rights to use or distribute their work.
An author can grant permission to use his/her work under arbitrary conditions. Just for illustration, an author could
invent for example a "coffee license" and impose that whoever uses his work has to offer the author a coffee.
An author can grant permission to use their work under arbitrary conditions. Just for illustration, an author could
invent for example a "coffee license" and impose that whoever uses their work has to offer the author a coffee.
Similarly, forever-open licenses grant users the right to use the work provided that they will redistribute any
derivative work using the same license again (copyleft).

View file

@ -1,5 +0,0 @@
---
permalink: halfmoon.css
---
{% include "../node_modules/halfmoon/css/halfmoon.min.css" %}
{% include "../node_modules/halfmoon/css/cores/halfmoon.modern.css" %}

View file

@ -23,6 +23,7 @@ export default function (eleventyConfig) {
});
eleventyConfig.addPassthroughCopy('assets');
eleventyConfig.addPassthroughCopy({ 'node_modules/halfmoon/css': '/assets/css/halfmoon' });
eleventyConfig.addPassthroughCopy('fonts');
// Font Awesome Icons