Commit graph

37 commits

Author SHA1 Message Date
banaanihillo
1d7e5f1415 feature: Add "Skip to main content" anchor (#421)
Add a skip navigation link as the first tabbable element;
announced by screen readers and initially hidden visually,
and visually shown only on focus

The `license` fragment will also be moved further down the order,
since it previously conflicted with the keyboard navigation

I am not too familiar with the various design colors yet,
so feel free to fix them for me,
or point me to some further resources regarding the design;
I merely addressed the contrast on the dark mode,
and made the best educated guess about light mode I could :D

Reviewed-on: https://codeberg.org/Codeberg/Documentation/pulls/421
Reviewed-by: Otto <otto@codeberg.org>
Reviewed-by: Patrick Schratz <pat-s@noreply.codeberg.org>
Co-authored-by: banaanihillo <banaanihillo@noreply.codeberg.org>
Co-committed-by: banaanihillo <banaanihillo@noreply.codeberg.org>
2024-06-24 20:41: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
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
Gusted
1925a19f11 Better placeholder contrast for search input (#375)
Increase the contrast of the placeholder text in the search input, so it's actually readable.

Reviewed-on: https://codeberg.org/Codeberg/Documentation/pulls/375
Co-authored-by: Gusted <postmaster@gusted.xyz>
Co-committed-by: Gusted <postmaster@gusted.xyz>
2023-12-01 22:26:53 +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
Andre601
b234b71bb7 Create new admonition boxes (#337)
Related issue: https://codeberg.org/Codeberg/Documentation/issues/330

This is my attempt at adding admonition-like boxes to the documentation. The goal is to make important stuff stand out more (especially warnings and alike).

The system uses a custom `<admonition>` box which allows classes for further customization. I.e. `<admonition class="warning">` to display a warning box.

I first wanted to make individual boxes (`<warning>`, `<note>`, ...) but decided against it, as it would've created a lot of duplicate CSS.

The CSS is designed in such a way that the first paragraph of the box is made bold (font-weight 700) while any subsequent ones are not.

The following forms of admonitions are included:
- Info (default)
- Note
- Tip
- Warning

Reviewed-on: https://codeberg.org/Codeberg/Documentation/pulls/337
Co-authored-by: Andre601 <github@andre601.ch>
Co-committed-by: Andre601 <github@andre601.ch>
2023-09-18 15:17:17 +00:00
fnetx
619aa91f52
Alignment in footer 2022-01-27 15:30:23 +01:00
lukaskluge
155db25dd0 reduce line width of content (#184)
Reduces line width in main text area to increase readability

fixes #183

Reviewed-on: https://codeberg.org/Codeberg/Documentation/pulls/184
Co-authored-by: lukaskluge <lukaskluge@noreply.codeberg.org>
Co-committed-by: lukaskluge <lukaskluge@noreply.codeberg.org>
2022-01-27 14:55:58 +01:00
n
f77fc97525 Add margin-top to lists 2021-11-21 20:49:52 +09:00
n
4fcfcfdc8d Fix wide margins in code blocks 2021-08-12 18:30:07 +09:00
n
170914185d Add anchor links to headings (#159)
This PR adds anchor links to any markdown headings. It also replaces any hacky workarounds used previously.

Closes #83.

Reviewed-on: https://codeberg.org/Codeberg/Documentation/pulls/159
Co-authored-by: n <n@noreply.codeberg.org>
Co-committed-by: n <n@noreply.codeberg.org>
2021-08-09 11:59:36 +02:00
n
190be05ba4 Update style for ul for consistency 2021-07-27 01:49:04 +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
unknown
f4a983d307 add dark section (#121)
It is a dark css theme that almost match the dark arc-theme of Codeberg.
https://codeberg.org/unknown/dark_theme_codeberg_documentation

Co-authored-by: unknown <code@zaclys.net>
Reviewed-on: https://codeberg.org/Codeberg/Documentation/pulls/121
Co-authored-by: unknown <unknown@noreply.codeberg.org>
Co-committed-by: unknown <unknown@noreply.codeberg.org>
2021-05-13 14:57:34 +02:00
tastytea
c0e7c4f0ae
Add default colors for background, text and hyperlinks.
Colors for hyperlinks are taken from
<https://html.spec.whatwg.org/multipage/rendering.html#phrasing-content-3>.

Fixes: #104
2020-10-28 20:43:12 +01:00
Lucas Hinderberger
84378a22ea Implemented collapsing sub-menus - closes #93 2020-10-17 19:32:06 +02:00
Lucas Hinderberger
915bad8125 Fixes #89 2020-10-03 00:16:17 +02:00
Lucas Hinderberger
fc572cc326 Smaller font size for mobile second-level menu 2020-09-20 14:21:02 +02:00
Lucas Hinderberger
807f55eb3b Closes #70 - Added overlay when menu is open 2020-09-20 14:19:20 +02:00
Lucas Hinderberger
81225e6b2a Fixes #72 2020-09-20 13:17:42 +02:00
Lucas Hinderberger
c8736dfeb6 Conditionally adapting wording on home page to device size 2020-09-16 20:25:56 +02:00
Martijn de Boer
931cd1cbb7 Remove left margin on logo to align the icon so it doesn't float in a weird position 2020-09-07 15:58:55 +02:00
Lucas Hinderberger
f7a267c14d Swapping heading font with Inter 2020-08-31 17:11:36 +02:00
Lucas Hinderberger
d0a094981f Sidebar font weight 2020-08-31 16:54:27 +02:00
Lucas Hinderberger
0043f3c7f3 Mobile styling and font sizes 2020-08-31 16:52:51 +02:00
Lucas Hinderberger
3aa05d5642 Mobile Menu fixes 2020-08-31 16:46:52 +02:00
Lucas Hinderberger
624f95f558 Added margin to header logo (desktop only) 2020-08-31 16:14:37 +02:00
Lucas Hinderberger
d5939f7cc5 Removing redundant class for FontAwesome icons 2020-08-31 16:10:42 +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
5159f3a1ec Switched to variable-width house font derived from Inter 2020-08-20 13:24:27 +02:00
Lucas Hinderberger
18d78c22a1 text-align on mobile set to left 2020-08-14 10:29:56 +02:00
Lucas Hinderberger
ec19e18f32 Styling fixes 2020-08-14 09:41:35 +02:00
Lucas Hinderberger
cfa9cbbbf5 Blending together codeberg-docs-prototype and original Codeberg/Documentation 2020-08-13 12:31:45 +02:00