news: create an individual file for each news entry (#6747)
The current way to define a news entry in Home-Manager is error prone (since you need to type the date manually) and also it is common cause of conflicts after merges because all entries are defined in the same file. This commit fixes this: we can now create individual news entries for each new entry. A script `create-news-entry.sh` also helps to create it in the correct format (with the correct filenames and structure).
This commit is contained in:
parent
b5e2956513
commit
d094c6763c
5 changed files with 53 additions and 16 deletions
|
|
@ -6,8 +6,8 @@
|
|||
|
||||
let
|
||||
inherit (builtins)
|
||||
concatStringsSep filter hasAttr isString length optionalString readFile
|
||||
replaceStrings sort split;
|
||||
concatStringsSep filter hasAttr isString length readFile replaceStrings sort
|
||||
split;
|
||||
|
||||
newsJson = builtins.fromJSON (builtins.readFile newsJsonFile);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue