mplscorwin / libera-chat.github.io

The website of Libera Chat, providing documentation and news

Home Page:https://libera.chat

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Libera Chat's website

Style guide

Content

  • Use British English. Exceptions apply to content:
    • copied verbatim from external sources (notably the LICENSE files); or
    • that must comply with technical standards
  • Channel names, nicknames, channel modes, user modes, IRC verbs, and IRC commands should be escaped (as code), for example: /join #libera
  • Filenames will be the URL slug; use lowercase alphanumeric characters and no underscores
  • In examples, mark required arguments with <>, and optional arguments with []
  • Lines should be no longer than 78 characters, so that people in 80-column terminals can edit the text without their editor "paging over" horizontally when their cursor reaches the end of the line
  • Internal links must be root-relative

Code

  • Use 2 spaces of indentation in code
  • Be mindful about making the site accessible to all users, including those with screen readers or text-only web browsers
  • For CSS
    • Prefer logical properties (for example, margin-inline-start rather than margin-left)
    • In general, lengths should be defined in rem units
    • CSS that is absolutely necessary to generate the layout should go in the appropriate inlined CSS; other CSS should be loaded separately
  • For JS
    • You probably don't need JavaScript
    • Format JS with standard.js
  • For HTML
    • Prefer elements with semantic meaning (for example, <main>, <article>)

Licensing

The content of this project itself is licensed under the CC BY-NC-SA 4.0 International Public License, and the underlying source code used to format and display that content is licensed under the MIT license.

About

The website of Libera Chat, providing documentation and news

https://libera.chat

License:MIT License


Languages

Language:CSS 45.5%Language:JavaScript 24.5%Language:HTML 23.2%Language:Ruby 6.8%