doc: align module capitalization (#1115)

Closes: https://github.com/danth/stylix/issues/1084
Link: https://github.com/danth/stylix/pull/1115

Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: Daniel Thwaites <danth@danth.me>
Reviewed-by: awwpotato <153149335+awwpotato@users.noreply.github.com>
This commit is contained in:
Flameopathic 2025-04-10 02:45:51 -04:00 committed by GitHub
parent 31fdf60634
commit 82f67a36eb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
90 changed files with 127 additions and 20 deletions

View file

@ -134,18 +134,34 @@ let
path = "${inputs.self}/modules/${module}/README.md";
# This doesn't count as IFD because ${inputs.self} is a flake input
#
# In addition, this checks that the README.md starts with an
# appropriate title
mainText =
let
name = lib.throwIfNot (
metadata ? ${module}.name
) "stylix: ${module} is missing `meta.name`" metadata.${module}.name;
in
if builtins.pathExists path then
builtins.readFile path
let
text = builtins.readFile path;
in
lib.throwIfNot (
(builtins.head (lib.splitString "\n" text)) == "# ${name}"
) "README.md of ${name} must have a title which matches its `meta.name`" text
else
''
# ${module}
# ${name}
> [!NOTE]
> This module doesn't include any additional documentation.
> You can browse the options it provides below.
'';
inherit (metadata.${module}) maintainers;
maintainers =
lib.throwIfNot (metadata ? ${module}.maintainers)
"stylix: ${module} is missing `meta.maintainers`"
metadata.${module}.maintainers;
# Render a maintainer's name and a link to the best contact
# information we have for them.

View file

@ -145,10 +145,17 @@ slow and should be avoided.
For everything else, like fonts and wallpapers, you can just take option values
directly from `config`. See the reference pages for a list of options.
## Maintainers
## Metadata
New modules must have at least one maintainer defined in
`/modules/«module»/meta.nix`.
Metadata is stored in `/modules/«module»/meta.nix`. The following attributes are
available under `meta`:
- `maintainers`: required list of maintainers. See [Maintainers](#maintainers) section.
- `name`: required human-readable string name.
### Maintainers
New modules must have at least one maintainer.
If you are not already listed in the Nixpkgs `/maintainers/maintainer-list.nix`
maintainer list, add yourself to `/stylix/maintainers.nix`.

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "Alacritty";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "Avizo";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "bat";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "bemenu";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "bspwm";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "btop";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "Cava";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "Cavalier";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "Chromium";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "kernel console";
}

View file

@ -1,4 +1,5 @@
{ lib, ... }:
{
maintainers = [ lib.maintainers.Flameopathic ];
name = "Discord";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "Dunst";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "Emacs";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "Eye of GNOME";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "Fcitx 5";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "feh";
}

View file

@ -1,4 +1,5 @@
{ lib, ... }:
{
maintainers = [ lib.maintainers.Flameopathic ];
name = "Firefox and its derivatives";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "fish";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "Fnott";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "foot";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "Forge";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "Fuzzel";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "fzf";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "gedit";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "Ghostty";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "GitUI";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "Glance";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "GNOME Text Editor";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "GNOME";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "GRUB";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "GTK";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "Halloy";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "Helix";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "Hyprland";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "hyprlock";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "hyprpaper";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "i3";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "i3status-rust";
}

View file

@ -1,4 +1,5 @@
{ lib, ... }:
{
maintainers = [ lib.maintainers.cluther ];
name = "K9s";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "KDE";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "kitty";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "Kmscon";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "Kubecolor";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "Lazygit";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "LightDM";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "mako";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "MangoHud";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "micro";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "mpv";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "ncspot";
}

View file

@ -8,8 +8,8 @@ This module themes [Neovim] using the standard Home Manager options.
- [Vim](vim.md): themes Vim using the standard Home Manager options.
- [Nixvim](nixvim.md): themes Neovim using the options provided by [Nixvim].
- [NVF](nvf.md): themes Neovim using the options provided by [NVF].
- [nvf](nvf.md): themes Neovim using the options provided by [nvf].
[Neovim]: https://neovim.io
[Nixvim]: https://github.com/nix-community/nixvim#readme
[NVF]: https://github.com/NotAShelf/nvf#readme
[nvf]: https://github.com/NotAShelf/nvf#readme

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "Neovim";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "NixOS Icons";
}

View file

@ -1,6 +1,6 @@
# Nixvim
# NixVim
This module themes [Neovim] using the options provided by [Nixvim].
This module themes [Neovim] using the options provided by [NixVim].
> [!IMPORTANT]
> This module will have no effect unless the desired Nixvim module is properly
@ -18,8 +18,8 @@ This module themes [Neovim] using the options provided by [Nixvim].
- [Vim](vim.md): themes Vim using the standard Home Manager options.
- [Neovim](neovim.md): themes Neovim using the standard Home Manager options.
- [NVF](nvf.md): themes Neovim using the options provided by [NVF].
- [nvf](nvf.md): themes Neovim using the options provided by [nvf].
[Neovim]: https://neovim.io
[Nixvim]: https://github.com/nix-community/nixvim#readme
[NVF]: https://github.com/NotAShelf/nvf#readme
[NixVim]: https://github.com/nix-community/nixvim#readme
[nvf]: https://github.com/NotAShelf/nvf#readme

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "NixVim";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "Nushell";
}

View file

@ -1,16 +1,16 @@
# NVF
# nvf
This module themes [Neovim] using the options provided by [NVF].
This module themes [Neovim] using the options provided by [nvf].
> [!IMPORTANT]
> This module will have no effect unless the desired NVF module is properly
> This module will have no effect unless the desired nvf module is properly
> [installed](https://notashelf.github.io/nvf/index.xhtml#ch-installation)
> and
> [imported](https://notashelf.github.io/nvf/index.xhtml#ch-module-installation)
> into your configuration.
>
> Ensure you are configuring this module on the same platform (NixOS, Home
> Manager, Darwin) as where you installed NVF.
> Manager, Darwin) as where you installed nvf.
## Related modules
@ -22,4 +22,4 @@ This module themes [Neovim] using the options provided by [NVF].
[Neovim]: https://neovim.io
[Nixvim]: https://github.com/nix-community/nixvim#readme
[NVF]: https://github.com/NotAShelf/nvf#readme
[nvf]: https://github.com/NotAShelf/nvf#readme

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "nvf";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "Plymouth";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "Qt";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "qutebrowser";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "ReGreet";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "Rio";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "river";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "Rofi";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "Spicetify";
}

View file

@ -1,4 +1,5 @@
{ lib, ... }:
{
maintainers = [ lib.maintainers.cluther ];
name = "starship";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "Sway";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "swaylock";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "SwayNotificationCenter";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "sxiv";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "tmux";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "Tofi";
}

View file

@ -8,8 +8,8 @@ This module themes [Vim] using the standard Home Manager options.
- [Neovim](neovim.md): themes Neovim using the standard Home Manager options.
- [Nixvim](nixvim.md): themes Neovim using the options provided by [Nixvim].
- [NVF](nvf.md): themes Neovim using the options provided by [NVF].
- [nvf](nvf.md): themes Neovim using the options provided by [nvf].
[Vim]: https://www.vim.org
[Nixvim]: https://github.com/nix-community/nixvim#readme
[NVF]: https://github.com/NotAShelf/nvf#readme
[nvf]: https://github.com/NotAShelf/nvf#readme

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "Vim";
}

View file

@ -1,4 +1,5 @@
{ lib, ... }:
{
maintainers = [ lib.maintainers.Flameopathic ];
name = "VSCode";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "Waybar";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "Wayfire";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "WezTerm";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "wob";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "Wofi";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "wpaperd";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "Xfce";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "Xresources file";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "Yazi";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "zathura";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "Zed";
}

View file

@ -1,3 +1,4 @@
{
maintainers = [ ];
name = "Zellij";
}