@@ -128,6 +128,31 @@ public function buildDocs()
128128 $ this ->changelog ();
129129 }
130130
131+ public function buildDocsGuides () {
132+ $ guides = Finder::create ()
133+ ->ignoreVCS (true )
134+ ->depth ('== 0 ' )
135+ ->name ('*.md ' )
136+ ->sortByName ()
137+ ->in ('guides ' );
138+
139+ $ guidesLinks = [];
140+
141+ foreach ($ guides as $ file ) {
142+ $ name = substr ($ file ->getBasename (), 0 , -3 );
143+ $ title = preg_replace ("(\d+-) " , '' , $ name );
144+ $ this ->_copy ($ file ->getPathname (), 'docs ' . DIRECTORY_SEPARATOR . $ file ->getBasename ());
145+ $ this ->_copy ($ file ->getPathname (), 'docs ' . DIRECTORY_SEPARATOR . $ title . '.md ' );
146+
147+ $ link = "/docs/ $ title " ;
148+ $ title = preg_replace ('/([A-Z]+)([A-Z][a-z])/ ' , '\\1 \\2 ' , $ title );
149+ $ title = preg_replace ('/([a-z\d])([A-Z])/ ' , '\\1 \\2 ' , $ title );
150+
151+ $ guidesLinks [] = "<li><a href= \"$ link \"> $ title</a></li> " ;
152+ }
153+ file_put_contents ('_includes/guides.html ' , implode ("\n" , $ guidesLinks ));
154+ }
155+
131156 public function buildDocsModules ()
132157 {
133158 $ this ->taskCleanDir ('docs/modules ' )->run ();
@@ -648,8 +673,8 @@ public function processChangelog()
648673 date_format (date_create ($ release ['published_at ' ]),"Y/m/d H:i:s " )
649674 );
650675
651- $ changelog .= " / [🦑 Repository](https://github.com/Codeception/ $ repo) " ;
652- $ changelog .= " / [📦 Releases](https://github.com/Codeception/ $ repo/releases) \n\n" ;
676+ $ changelog .= " / [Repository](https://github.com/Codeception/ $ repo) " ;
677+ $ changelog .= " / [Releases](https://github.com/Codeception/ $ repo/releases) \n\n" ;
653678
654679 $ body = $ release ['body ' ];
655680 //user
0 commit comments