Closed boboidream closed 4 years ago
@boboidream sorry for late answer. Github didn't sent me notifications for this repo.
First of all thanks for this PR. I could not pass all tests. Because lots of time passed since you posted, I did not bother you again, and I implemented some of the details by myself.
Please see latest version.
-
)Failing tests of this PR are related to sort feature. Your implementation sorts files directly by their name, but it cannot be applied here, because files may be sorted based on order
attribute in meta data in markdown file (see line 96 in index.js). So, I added mixDirectoriesAndFilesAlphabetically
option which puts directories in alphabetical positions.
setHomepage
option is added, it breaks backward compatibility. Instead of hiding root README, it is possible to delete it. Isn't it?const getConfig = require("vuepress-bar");
const barConfig = getConfig(`${__dirName}/..`)
module.exports = {
themeConfig: {
nav: [{ text: 'External', link: 'https://google.com' }, ...barConfig.nav]
sidebar: barConfig.sidebar,
}
};
Regarding #5, where is related changes, so I could fix it too.
Many thanks again.
Due to inactivity for a long time I'm closing this PR. Please feel free to reopen another case.