File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 443443 json/generate-string
444444 (spit " awesome.json" )))
445445
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+
446459(defn- output-awesome-md []
447460 (->> (for [[_ {:strs [name url description ]}]
448461 (sort-by #(get (second %) " name" ) @awesome)]
449462 (let [desc (or (not-empty (get-in description [" fr" " shortDescription" ]))
450463 (not-empty (get-in description [" en" " shortDescription" ]))
451464 " N/A" )]
452- (format " - [%s](%s) - %s" name url desc)))
465+ (format " - [%s](%s) - %s" name url ( str/trim desc) )))
453466 (str/join " \n " )
467+ (format awesome-codegouvfr-md-format-string)
454468 (spit " awesome-codegouvfr.md" )))
455469
456470(defn- output-owners-json [& [full?]]
You can’t perform that action at this time.
0 commit comments