codesite2git: README.md: add 'Written in' shields.io badge
This commit is contained in:
parent
d9d0451313
commit
64c5d52afe
@ -28,8 +28,14 @@ class CProjectGitExporter extends CProject {
|
||||
$this->longdesc = str_replace("\xEF\xBB\xBF", "", $this->longdesc); // Remove interior UTF-8 BOM markers
|
||||
$this->longdesc = str_replace("\r", "", $this->longdesc); // dos2unix
|
||||
|
||||
// Add main header and "written in" badge
|
||||
$lines = explode("\n", $this->longdesc);
|
||||
$lines = array_merge(["# ".$this->projname, ""], $lines);
|
||||
$header = ["# ".$this->projname, ""];
|
||||
if (strlen($this->subtag) > 0) {
|
||||
$header[] = "![](https://img.shields.io/badge/written%20in-" . rawurlencode($this->subtag) . "-blue)";
|
||||
$header[] = "";
|
||||
}
|
||||
$lines = array_merge($header, $lines);
|
||||
|
||||
// Modify some lines to standard markdown format:
|
||||
foreach($lines as $i => $line) {
|
||||
|
Reference in New Issue
Block a user