jxnblk / mdx-deck

♠️ React MDX-based presentation decks
https://mdx-deck.jxnblk.com
MIT License
11.33k stars 603 forks source link

Serving presentation from subfolder #379

Closed andtos90 closed 5 years ago

andtos90 commented 5 years ago

I've built my last presentation with mdx-deck 2.3.2 and I just tried to serve it from my website on a subfolder: https://tosat.to/ha-slides/

As you can see when you load the presentation everything is black, if you change the slide using the arrow keys it loads as expected but the url is wrong:

Expected:

Something like https://tosat.to/ha-slides/0

Current behaviour:

https://tosat.to/0

Presentation source code: https://github.com/andtos90/domotics/tree/docs/slides

This isssue is similar to https://github.com/jxnblk/mdx-deck/issues/36.

globophobe commented 5 years ago

Try the —basepath flag. https://github.com/jxnblk/mdx-deck/issues/291

Sent with GitHawk

andtos90 commented 5 years ago

Thanks @globophobe, with --basepath everything works as expected