webdoc-labs / webdoc

Documentation generator for the web
https://www.webdoclabs.com
Other
79 stars 9 forks source link

[bug]: Building docs on windows results in a bad paths #99

Closed Zekfad closed 3 years ago

Zekfad commented 3 years ago
Linux build log: ```shell D:\Users\vorob\Desktop\Projects\nhentai>bash -c "yarn build:docs && tree docs" yarn run v1.22.10 $ webdoc --config .webdocrc.json --site-root / --verbose [Assembly]: Assembling the symbol-metadata tree: [Assembly]: {@assembly-mod resolve-assigned-members} [Assembly]: {@assembly-mod resolve-links} [DocParser]: Failed to parse doc for (@Unnamed){@src/api.js<1, 0>} Catharsis failed to parse: import("./options").nHentaiOptions [Parser]: Parsing stage finished! [CLI]: Executing template @webdoc took 663ms to run! Done in 3.12s. docs ├── Class-Index.html ├── explorer │   └── reference.json ├── icons │   ├── chevron-down.svg │   ├── chevron-up.svg │   ├── link.svg │   └── search.svg ├── index.html ├── nhentai-api │   ├── API.html │   ├── APIArgs.html │   ├── APIBook.html │   ├── APIImage.html │   ├── APIPath.html │   ├── APISearch.html │   ├── APITag.html │   ├── Book.html │   ├── BookTitle.html │   ├── Image.html │   ├── ImageType.html │   ├── ImageTypes.html │   ├── Search.html │   ├── Tag.html │   ├── TagType.html │   ├── TagTypes.html │   ├── UnknownBook.html │   ├── UnknownImageType.html │   ├── UnknownTagType.html │   ├── httpAgent.html │   ├── nHentaiHosts.html │   ├── nHentaiOptions.html │   └── processOptions.html ├── nhentai-api.html ├── scripts │   ├── default-template.js │   ├── lang-css.js │   ├── linenumber.js │   └── prettify.js └── styles ├── algolia.css └── index.css 5 directories, 37 files ```
Windows build log: ```shell D:\Users\vorob\Desktop\Projects\nhentai>yarn build:docs && bash -c "tree docs" yarn run v1.22.10 $ webdoc --config .webdocrc.json --site-root / --verbose [Assembly]: Assembling the symbol-metadata tree: [Assembly]: {@assembly-mod resolve-assigned-members} [Assembly]: {@assembly-mod resolve-links} [DocParser]: Failed to parse doc for (@Unnamed){@src/api.js<1, 0>} Catharsis failed to parse: import("./options").nHentaiOptions [Parser]: Parsing stage finished! [CLI]: Executing template @webdoc took 446ms to run! Done in 1.81s. docs ├── %5C%3CsiteRoot%3E%5C%255C%253CsiteRoot%253E%255Cnhentai-api%5CAPI.html ├── %5C%3CsiteRoot%3E%5C%255C%253CsiteRoot%253E%255Cnhentai-api%5CAPIArgs.html ├── %5C%3CsiteRoot%3E%5C%255C%253CsiteRoot%253E%255Cnhentai-api%5CAPIBook.html ├── %5C%3CsiteRoot%3E%5C%255C%253CsiteRoot%253E%255Cnhentai-api%5CAPIImage.html ├── %5C%3CsiteRoot%3E%5C%255C%253CsiteRoot%253E%255Cnhentai-api%5CAPIPath.html ├── %5C%3CsiteRoot%3E%5C%255C%253CsiteRoot%253E%255Cnhentai-api%5CAPISearch.html ├── %5C%3CsiteRoot%3E%5C%255C%253CsiteRoot%253E%255Cnhentai-api%5CAPITag.html ├── %5C%3CsiteRoot%3E%5C%255C%253CsiteRoot%253E%255Cnhentai-api%5CBook.html ├── %5C%3CsiteRoot%3E%5C%255C%253CsiteRoot%253E%255Cnhentai-api%5CBookTitle.html ├── %5C%3CsiteRoot%3E%5C%255C%253CsiteRoot%253E%255Cnhentai-api%5CImage.html ├── %5C%3CsiteRoot%3E%5C%255C%253CsiteRoot%253E%255Cnhentai-api%5CImageType.html ├── %5C%3CsiteRoot%3E%5C%255C%253CsiteRoot%253E%255Cnhentai-api%5CImageTypes.html ├── %5C%3CsiteRoot%3E%5C%255C%253CsiteRoot%253E%255Cnhentai-api%5CSearch.html ├── %5C%3CsiteRoot%3E%5C%255C%253CsiteRoot%253E%255Cnhentai-api%5CTag.html ├── %5C%3CsiteRoot%3E%5C%255C%253CsiteRoot%253E%255Cnhentai-api%5CTagType.html ├── %5C%3CsiteRoot%3E%5C%255C%253CsiteRoot%253E%255Cnhentai-api%5CTagTypes.html ├── %5C%3CsiteRoot%3E%5C%255C%253CsiteRoot%253E%255Cnhentai-api%5CUnknownBook.html ├── %5C%3CsiteRoot%3E%5C%255C%253CsiteRoot%253E%255Cnhentai-api%5CUnknownImageType.html ├── %5C%3CsiteRoot%3E%5C%255C%253CsiteRoot%253E%255Cnhentai-api%5CUnknownTagType.html ├── %5C%3CsiteRoot%3E%5C%255C%253CsiteRoot%253E%255Cnhentai-api%5ChttpAgent.html ├── %5C%3CsiteRoot%3E%5C%255C%253CsiteRoot%253E%255Cnhentai-api%5CnHentaiHosts.html ├── %5C%3CsiteRoot%3E%5C%255C%253CsiteRoot%253E%255Cnhentai-api%5CnHentaiOptions.html ├── %5C%3CsiteRoot%3E%5C%255C%253CsiteRoot%253E%255Cnhentai-api%5CprocessOptions.html ├── %5C%3CsiteRoot%3E%5CClass-Index.html ├── %5C%3CsiteRoot%3E%5Cnhentai-api.html ├── %5C%5Cindex.html ├── explorer │   └── reference.json ├── icons │   ├── chevron-down.svg │   ├── chevron-up.svg │   ├── link.svg │   └── search.svg ├── scripts │   ├── default-template.js │   ├── lang-css.js │   ├── linenumber.js │   └── prettify.js └── styles ├── algolia.css └── index.css 4 directories, 37 files ```
ShukantPal commented 3 years ago

Glad you’re back. It would be cool if you can solve this one since I don’t use Windows/Linux. Perhaps we can then add it to the CI.

Sent from my iPhone

Zekfad commented 3 years ago

I'll try to solve this in a near future, could you tell me where the pieces responsible for FS path generation and actually writing to the FS?