Commit graph

37 commits

Author SHA1 Message Date
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
Gusted
f564ca6cd2 Use Halfmoon v2 (#655)
Refresh Codeberg documentatation looks by using Halfmoon v2.

Mobile UI also got a overhaul.

Reviewed-on: https://codeberg.org/Codeberg/Documentation/pulls/655
Reviewed-by: Bastian Greshake Tzovaras <gedankenstuecke@noreply.codeberg.org>
Reviewed-by: Otto <otto@codeberg.org>
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2025-08-12 17:53:32 +02:00
Gusted
03342e98ec feat: use Eleventy's image plugin for image transformation (#488)
Use https://www.11ty.dev/docs/plugins/image/ to transform images on build time to avif, webp and jpeg.

Images are moved to `/content/images`.

`<picture>` is no longer needed, the plugin does this automatically.

Remove webp images from the source.

Resolves #152
Resolves #368

Reviewed-on: https://codeberg.org/Codeberg/Documentation/pulls/488
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2024-11-29 06:12:05 +00:00
crapStone
da1b77aa6a Add woodpecker ci & many linters (and their required fixes) (#377)
closes #238

Co-authored-by: pat-s <patrick.schratz@gmail.com>
Co-authored-by: Patrick Schratz <pat-s@noreply.codeberg.org>
Reviewed-on: https://codeberg.org/Codeberg/Documentation/pulls/377
Co-authored-by: crapStone <crapstone01@gmail.com>
Co-committed-by: crapStone <crapstone01@gmail.com>
2024-06-11 07:51:22 +00:00
Andrew Kvalheim
0b3c45ce4b Detect slash key by value, not physical position (#415)
The solution is trivial; read the [property](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent#instance_properties) for actual meaning instead of physical position.

Reviewed-on: https://codeberg.org/Codeberg/Documentation/pulls/415
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: Andrew Kvalheim <andrew@kvalhe.im>
Co-committed-by: Andrew Kvalheim <andrew@kvalhe.im>
2024-04-03 12:12:54 +00:00
Mohamed Wageh
ca4290e697 Automatically generate Table of Contents for each page (#376)
Closes #24.

Reviewed-on: https://codeberg.org/Codeberg/Documentation/pulls/376
Co-authored-by: Mohamed Wageh <oatbiscuits@proton.me>
Co-committed-by: Mohamed Wageh <oatbiscuits@proton.me>
2023-12-11 17:32:09 +00:00
oatbiscuits
55a504e33a Add search functionality (#370)
This should solve #23.

This is a fully static search implementation powered by [Pagefind](https://pagefind.app/).

In terms of UI, I found and implemented a section in the sidebar for searching the documentation. It was hidden presumably waiting for implementation. It mentioned using the slash (/) key for searching, so I implemented the hotkey as well.

I made the indexing command required by Pagefind run after Eleventy finishes building using the `.after` hook.

Reviewed-on: https://codeberg.org/Codeberg/Documentation/pulls/370
Co-authored-by: oatbiscuits <oatbiscuits@noreply.codeberg.org>
Co-committed-by: oatbiscuits <oatbiscuits@noreply.codeberg.org>
2023-11-30 21:33:22 +00:00
Jeremy
0483a1ff6d Fix contribution_invitation.njk 2022-07-26 21:46:39 +02:00
n
1ace475965 Switch Font Awesome to use SVG icons and update to v6 (#243)
This PR switches the Font Awesome icons to use SVG instead of a font, and updates it to v6.

~~Depends on Codeberg-Infrastructure/codeberg-fonts#13 getting deployed.~~ Now deployed.

Reviewed-on: https://codeberg.org/Codeberg/Documentation/pulls/243
Co-authored-by: n <n@noreply.codeberg.org>
Co-committed-by: n <n@noreply.codeberg.org>
2022-07-09 12:52:21 +02:00
Otto Richter
2bda61e74d Diverse changes (#189)
a bunch of (typo) fixes, additions, rewordings

Update references

- remove mentions of the master branch, as it's removed for many repos
and might change in the future for others (fixes some dead links)
- remove mentions of moved repos with our official examples
- some on-the-fly additions or rewordings

Close #186 foobar->examples

Co-authored-by: fnetx <git@fralix.ovh>
Co-authored-by: fnetX <git@fralix.ovh>
Reviewed-on: https://codeberg.org/Codeberg/Documentation/pulls/189
Co-authored-by: Otto Richter <fnetx@noreply.codeberg.org>
Co-committed-by: Otto Richter <fnetx@noreply.codeberg.org>
2022-01-21 11:36:38 +01:00
n
17cc1bfc96 Close open quote 2021-12-24 23:18:35 +09:00
n
ec5228bbf5 Some HTML template fixes 2021-12-23 18:18:20 +09:00
n
9a211dc2d2 Add metadata for CC license 2021-08-20 00:40:47 +09:00
n
03a5886fad Point navbar docs link to / 2021-07-27 16:14:09 +09:00
n
2f9c5bbbf1 Remove dark mode toggle because it doesn't persist 2021-07-26 21:25:47 +09:00
n
681a5f6d2a Only load sidebar scroll script when necessary 2021-07-26 21:25:47 +09:00
n
ae684fbad4 Migrate to Codeberg Design Kit (#132) (#149)
TODO:
- [x] Hide navbar items on small screens
- [x] Fix `<blockquote>` rendering
- [x] Fix `<code>` rendering
- [ ] LibreJS Compatibility

Reviewed-on: https://codeberg.org/Codeberg/Documentation/pulls/149
Co-authored-by: n <n@noreply.codeberg.org>
Co-committed-by: n <n@noreply.codeberg.org>
2021-07-26 12:07:23 +02:00
n
79463b300e Add redirect mechanism 2021-06-16 21:04:45 +09:00
Lucas Hinderberger
84378a22ea Implemented collapsing sub-menus - closes #93 2020-10-17 19:32:06 +02:00
Lucas Hinderberger
17121e0a1b Missing close tag 2020-10-05 00:43:55 +02:00
Lucas Hinderberger
7668e109a7 Contributor FAQ 2020-10-05 00:42:23 +02:00
Lucas Hinderberger
807f55eb3b Closes #70 - Added overlay when menu is open 2020-09-20 14:19:20 +02:00
Martijn de Boer
0745e09f7d add async properties to assets to specify loading/render strategy for browsers like chromium/firefox that implement other strategies when not specified 2020-09-07 16:15:29 +02:00
Lucas Hinderberger
f7a267c14d Swapping heading font with Inter 2020-08-31 17:11:36 +02:00
Lucas Hinderberger
15a9ec4531 Dropping "Prototype" from title 2020-08-31 16:48:17 +02:00
Lucas Hinderberger
3aa05d5642 Mobile Menu fixes 2020-08-31 16:46:52 +02:00
Lucas Hinderberger
9d11ec939f View History button 2020-08-31 16:29:53 +02:00
Lucas Hinderberger
8f4c286ae6 Fixed elements exceeding article width 2020-08-31 16:10:14 +02:00
Lucas Hinderberger
a0071b676b Removed text-align justify, added auto hypens instead 2020-08-31 15:26:06 +02:00
Lucas Hinderberger
fbbac5f91d Merge pull request 'Switched to Inter' (#33) from lhinderberger/codeberg-docs:new-house-font into master
Reviewed-on: https://codeberg.org/Codeberg/Documentation/pulls/33
2020-08-31 01:11:00 +02:00
Lucas Hinderberger
c6623760f1 Moved fonts to Codeberg Fonts 2020-08-27 18:51:02 +02:00
Lucas Hinderberger
a352313f3a Added a Contribution Invitation 2020-08-22 21:02:04 +02:00
Lucas Hinderberger
e09e006f90 Added links to commit history and notice in LICENSE.md 2020-08-22 21:01:46 +02:00
Lucas Hinderberger
5159f3a1ec Switched to variable-width house font derived from Inter 2020-08-20 13:24:27 +02:00
Lucas Hinderberger
ec19e18f32 Styling fixes 2020-08-14 09:41:35 +02:00
Lucas Hinderberger
ade798fef4 Adapted source URL and footer 2020-08-13 12:35:04 +02:00
Lucas Hinderberger
cfa9cbbbf5 Blending together codeberg-docs-prototype and original Codeberg/Documentation 2020-08-13 12:31:45 +02:00