File tree 1 file changed +15
-1
lines changed 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 443
443
json/generate-string
444
444
(spit " awesome.json" )))
445
445
446
+ (defonce awesome-codegouvfr-md-format-string
447
+ " # Awesome code.gouv.fr
448
+
449
+ A list of [awesome code.gouv.fr projects](https://code.gouv.fr/fr/awesome) funded by French public organizations.
450
+
451
+ %s
452
+
453
+ # License
454
+
455
+ DINUM, Bastien Guerry.
456
+
457
+ This list is published under Licence Ouverte 2.0 and CC BY." )
458
+
446
459
(defn- output-awesome-md []
447
460
(->> (for [[_ {:strs [name url description ]}]
448
461
(sort-by #(get (second %) " name" ) @awesome)]
449
462
(let [desc (or (not-empty (get-in description [" fr" " shortDescription" ]))
450
463
(not-empty (get-in description [" en" " shortDescription" ]))
451
464
" N/A" )]
452
- (format " - [%s](%s) - %s" name url desc)))
465
+ (format " - [%s](%s) - %s" name url ( str/trim desc) )))
453
466
(str/join " \n " )
467
+ (format awesome-codegouvfr-md-format-string)
454
468
(spit " awesome-codegouvfr.md" )))
455
469
456
470
(defn- output-owners-json [& [full?]]
You can’t perform that action at this time.
0 commit comments