[web-doc] master: add edit link for tutorial pages

From: Date: Tue, 27 Jul 2021 13:37:37 +0000
Subject: [web-doc] master: add edit link for tutorial pages
Groups: php.doc.web 
Request: Send a blank email to doc-web+get-2483@lists.php.net to get a copy of this message
Author: Peter Cowburn (salathe) Date: 2021-07-27T14:35:26+01:00 Commit: https://github.com/php/web-doc/commit/69bec549fceeaa80d29748b8824039915cf15886 Raw diff: https://github.com/php/web-doc/commit/69bec549fceeaa80d29748b8824039915cf15886.diff add edit link for tutorial pages Changed paths: M www/tutorial.php Diff: diff --git a/www/tutorial.php b/www/tutorial.php index 0b17685..13ec952 100644 --- a/www/tutorial.php +++ b/www/tutorial.php @@ -18,8 +18,12 @@ die; } +$edit_url = "https://github.com/php/web-doc/edit/master/tutorial/{$chapter}.md"; + site_header(); +echo '<p style="text-align: right; font-size: 85%"><a href="' . $edit_url . '">Edit this page</a></p>'; + echo $parsedown->text($content); site_footer();

« previous php.doc.web (#2483) next »