egoist / docute

📚 Effortless documentation, done right.
https://docute.egoist.dev
MIT License
3.8k stars 427 forks source link

Adding option `basePath` #245

Open egoist opened 5 years ago

egoist commented 5 years ago

basePath defines where your app is located, it defaults to / since most apps are hosted at root path, you can set it to /docs if your app is hosted at https://example.com/docs, when sourcePath is a relative path, it should also be resolved from basePath.

tiptronic commented 5 years ago

Would that make it possible to run the files from a relative path (e.g. file://). So, if basePath would be something like .?