Tell us about your environment
Windows 10
- MarkBind Version:
latest master branch
What did you do? Please include the actual source code causing the issue.
Steps to reproduce:
- create a new site in
/docs by markbind init docs
- copy the default
site.json and put it in a new folder custom within /docs, e.g. file is /docs/custom/site2.json
- try to serve the site with the new site config, within the
docs directory
I am in C:\Users\User\Documents\GitHub\test-md\docs>
I tried: markbind serve -s ./custom/site2.json
error: Failed to read the site config file './custom/site2.json' atC:\Users\User\Documents\GitHub\test-md\docs\custom:
C:\Users\User\Documents\GitHub\test-md\docs\custom\custom\site2.json: ENOENT: no such file or directory,
open 'C:\Users\User\Documents\GitHub\test-md\docs\custom\custom\site2.json'
Please ensure the file exist or is valid
markbind serve -s custom/site2.json
error: Failed to read the site config file 'custom/site2.json' atC:\Users\User\Documents\GitHub\test-md\docs\custom:
C:\Users\User\Documents\GitHub\test-md\docs\custom\custom\site2.json: ENOENT: no such file or directory,
open 'C:\Users\User\Documents\GitHub\test-md\docs\custom\custom\site2.json'
Please ensure the file exist or is valid
markbind serve -s site2.json
error: No config file found in parent directories of C:\Users\User\Documents\GitHub\test-md\docs
error: uncaughtException: The "path" argument must be of type string. Received undefined date=Sun Mar 13
2022 10:16:32 GMT+0800 (Singapore Standard Time), pid=3528, uid=null, gid=null, cwd=C:\Users\User\Documents\GitHub\test-md\docs, execPath=C:\Program Files\nodejs\node.exe, version=v14.15.1, argv=[C:\Program Files\nodejs\node.exe, C:\Users\User\AppData\Roaming\npm\node_modules\markbind-cli\index.js, serve, -s, site2.json], rss=79585280, heapTotal=63401984, heapUsed=37812224, external=1890620, arrayBuffers=367242, loadavg=[0, 0, 0], uptime=132146
markbind serve -s /custom/site2.json
error: No config file found in parent directories of C:\Users\User\Documents\GitHub\test-md\docs
error: uncaughtException: The "path" argument must be of type string. Received undefined date=Sun Mar 13
2022 10:18:40 GMT+0800 (Singapore Standard Time), pid=9180, uid=null, gid=null, cwd=C:\Users\User\Documents\GitHub\test-md\docs, execPath=C:\Program Files\nodejs\node.exe, version=v14.15.1, argv=[C:\Program Files\nodejs\node.exe, C:\Users\User\AppData\Roaming\npm\node_modules\markbind-cli\index.js, serve, -s, /custom/site2.json], rss=79994880, heapTotal=63664128, heapUsed=38139656, external=1915359, arrayBuffers=391981, loadavg=[0, 0, 0], uptime=132275
What did you expect to happen?
Be able to serve from a site-config file from another folder
What actually happened? Please include the actual, raw output.
Errors as above.
Tell us about your environment
Windows 10
latest master branch
What did you do? Please include the actual source code causing the issue.
Steps to reproduce:
/docsbymarkbind init docssite.jsonand put it in a new foldercustomwithin/docs, e.g. file is/docs/custom/site2.jsondocsdirectoryI am in
C:\Users\User\Documents\GitHub\test-md\docs>I tried:
markbind serve -s ./custom/site2.jsonmarkbind serve -s custom/site2.jsonmarkbind serve -s site2.jsonmarkbind serve -s /custom/site2.jsonWhat did you expect to happen?
Be able to serve from a site-config file from another folder
What actually happened? Please include the actual, raw output.
Errors as above.