Correct links to README files ot index.html

The summary uses the right path for those files, but not the mardown
files link like [bla](./bla/README.md).
The cause of the problem was that IndexPreprocessor renamed README.md
files to index.md without replacing in the links.

TODO: use a case-insensitive replace instead.
This commit is contained in:
Raphaël Duchaîne 2020-09-04 16:05:17 -04:00
parent f6768b816c
commit 4f3bfd1977
1 changed files with 1 additions and 0 deletions

View File

@ -39,6 +39,7 @@ impl Preprocessor for IndexPreprocessor {
path.set_file_name("index.md");
}
}
ch.content = ch.content.replace("README.md", "index.md");
}
});