mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
docs/mdbook: move description to bottom
Long descriptions for plugins will shove the plugin's source link and maintainer information far down the page. Since those are fairly short and the description is a variable size. Moving below to maintain consistent placement.
This commit is contained in:
parent
9033f1cf2d
commit
052ee66dbb
1 changed files with 7 additions and 1 deletions
|
@ -66,11 +66,17 @@ let
|
|||
# Make sure this path has a valid info attrset
|
||||
if info ? file && info ? description && info ? url then
|
||||
"# ${lib.last path}\n\n"
|
||||
+ (lib.optionalString (info.description != null) "${info.description}\n\n")
|
||||
+ (lib.optionalString (info.url != null) "**URL:** [${info.url}](${info.url})\n\n")
|
||||
+ (lib.optionalString (
|
||||
maintainers != [ ]
|
||||
) "**Maintainers:** ${lib.concatStringsSep ", " maintainersNames}\n\n")
|
||||
+ lib.optionalString (info.description != null) ''
|
||||
|
||||
---
|
||||
|
||||
${info.description}
|
||||
|
||||
''
|
||||
else
|
||||
null;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue