docsifyjs/docsify-cli

Does not support routerMode: 'history'

utybo opened this issue Β· 9 comments

utybo commented

When using docsify serve when routerMode is enabled, navigating directly to /Something does not work and instead throws a 404 error

Is there any way to work around this?

It would also be nice to have a way to "whitelist" some paths, e.g. so that /Hi actually refers to some Hi.html

utybo commented

The issue you linked is about hosting, my issue is about the dev side of things. I use docsify serve to serve my docs locally when I'm writing them, and that doesn't support the history router mode.

Is there any way to work around this?

Fixed by #166

hxsf commented

@sy-records
so we need a new release to make it can be used as npx docsify-cli.
BTW, docsify-cli@next is alias to 4.0.2, maybe we can make a github action to auto build master branch to npm next label.

@sy-records when is this feature going to be released? I see last publish was a year ago.

I will release as soon as possible

hxsf commented