Update docs
This commit is contained in:
parent
5ebad91300
commit
e3a2c720ef
@ -60,9 +60,9 @@ foreach ($orderedfiles as $key => $filename) {
|
|||||||
if (isset($orderedfiles[$key + 1])) {
|
if (isset($orderedfiles[$key + 1])) {
|
||||||
$nextfile = 'https://docs.madelineproto.xyz/docs/'.basename($orderedfiles[$key + 1], '.md').'.html';
|
$nextfile = 'https://docs.madelineproto.xyz/docs/'.basename($orderedfiles[$key + 1], '.md').'.html';
|
||||||
$prevfile = $key === 0 ? 'https://docs.madelineproto.xyz' : 'https://docs.madelineproto.xyz/docs/'.basename($orderedfiles[$key - 1], '.md').'.html';
|
$prevfile = $key === 0 ? 'https://docs.madelineproto.xyz' : 'https://docs.madelineproto.xyz/docs/'.basename($orderedfiles[$key - 1], '.md').'.html';
|
||||||
$lines[count($lines)] = "\n<amp-form method=\"GET\" target=\"_top\" action=\"$prevfile\"><input type=\"submit\" value=\"Previous section\" /></amp-form><amp-form action=\"$nextfile\" method=\"GET\" target=\"_top\"><input type=\"submit\" value=\"Next section\" /></amp-form>";
|
$lines[count($lines)] = "\n<a href=\"$nextfile\">Next section</a>";
|
||||||
} else {
|
} else {
|
||||||
$lines[count($lines)] = "\n<amp-form method=\"GET\" target=\"_top\" action=\"https://docs.madelineproto.xyz/#very-complex-and-complete-examples\"><input type=\"submit\" value=\"Next section\" /></amp-form>";
|
$lines[count($lines)] = "\n<a href=\"https://docs.madelineproto.xyz/#very-complex-and-complete-examples\">Next section</a>";
|
||||||
}
|
}
|
||||||
file_put_contents($filename, implode("\n", $lines));
|
file_put_contents($filename, implode("\n", $lines));
|
||||||
|
|
||||||
|
2
docs
2
docs
@ -1 +1 @@
|
|||||||
Subproject commit 852d83a2b2583c937b380d7158950ca17c142a9c
|
Subproject commit 4f9438b1c1b270d36a89862c398f932230d4b6a5
|
Loading…
Reference in New Issue
Block a user