Skip to content

Docsify g command generate unwanted structure #173

Description

@yzqdev

it's on windows

My file struct is:

└─doctest
.nojekyll
index.html
markdown.md
more-pages.md
my404.md
plugins.md
pwa.md
quickstart.md
README.md
ssr.md
SUMMARY.md
themes.md
vue.md
write-a-plugin.md
_sidebar.md

after i run docsify g docstest, it generates absolute path.
the generated sidebar is :

- E:
-[markdown](E:\tmp\docs\doctest\markdown.md)-[more-pages](E:\tmp\docs\doctest\more-pages.md)-[my404](E:\tmp\docs\doctest\my404.md)-[plugins](E:\tmp\docs\doctest\plugins.md)-[pwa](E:\tmp\docs\doctest\pwa.md)-[quickstart](E:\tmp\docs\doctest\quickstart.md)-[README](E:\tmp\docs\doctest\README.md)-[ssr](E:\tmp\docs\doctest\ssr.md)-[SUMMARY](E:\tmp\docs\doctest\SUMMARY.md)-[themes](E:\tmp\docs\doctest\themes.md)-[vue](E:\tmp\docs\doctest\vue.md)-[write-a-plugin](E:\tmp\docs\doctest\write-a-plugin.md)

what i want is relative path like this:

- E:
- [markdown](./markdown.md)
- [more-pages](./more-pages.md)
- [my404](./my404.md)
- [plugins](./plugins.md)
- [pwa](./pwa.md)
- [quickstart](./quickstart.md)
- [README](./README.md)
- [ssr](./ssr.md)
- [SUMMARY](./SUMMARY.md)
- [themes](./themes.md)
- [vue](./vue.md)
- [write-a-plugin](./write-a-plugin.md)

so how should i config ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions