Generating banners to include in source code


There are cute banners to separate sections of code in the Gitea sources, such as this one:

They can be generated as follows:

$ sudo apt-get install figlet xclip
$ git clone
$ figlet -f $(pwd)/figlet-fonts/Graffiti -w 300 ForeignReference | sed  -e's+^+// +' - | xclip -sel clip -in

This information should be added somewhere near the code formatting recommendations in the documentation.


1 Like

fixed that.