Revert "Generate Index Page from first Doc when missing index.md"
This reverts commit 194e77196c
.
This commit is contained in:
parent
eaa399a0d3
commit
3cfefb9331
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
// Generate Static Documentation
|
// Generate Static Documentation
|
||||||
function generate_static($out_dir) {
|
function generate_static($out_dir) {
|
||||||
global $tree, $base, $base_doc, $docs_path, $output_path, $options, $mode, $multilanguage, $output_language;
|
global $tree, $base, $docs_path, $output_path, $options, $mode, $multilanguage, $output_language;
|
||||||
$mode = 'Static';
|
$mode = 'Static';
|
||||||
if ($out_dir === '') $output_path = $base . '/static';
|
if ($out_dir === '') $output_path = $base . '/static';
|
||||||
else {
|
else {
|
||||||
@ -18,15 +18,10 @@
|
|||||||
generate_static_branch($tree[$languageKey], $languageKey);
|
generate_static_branch($tree[$languageKey], $languageKey);
|
||||||
}
|
}
|
||||||
$index = $docs_path . '/index.md';
|
$index = $docs_path . '/index.md';
|
||||||
if (!is_file($index)) {
|
if (is_file($index)) {
|
||||||
if (empty($options['languages'])) $index = $base_doc;
|
$index = generate_page($index);
|
||||||
else {
|
file_put_contents($output_path . '/index.html', $index);
|
||||||
$t = array_keys($base_doc);
|
|
||||||
$index = $base_doc[$t[0]];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
$index = generate_page($index);
|
|
||||||
file_put_contents($output_path . '/index.html', $index);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Generate Static Content For Given Directory
|
// Generate Static Content For Given Directory
|
||||||
|
Loading…
Reference in New Issue
Block a user