我创建了一个带有演示页面的库,并使用Netlify ( url类似于my-lib.netflify.app)进行了部署,并且它与"build": "parcel build demo/index.html --out-dir demo-build",相关联。然后,我使用yarn docs命令使用documentationjs将文档页面添加到我的库中
"docs:html": "documentation build --config documentation.yml src/lib/**/*.ts --parse-extension ts --format html --output docs --favicon ../public/peacock-64.png",
"docs:md": "documentation build --config documentation.yml src/lib/**/*.ts --parse-extension ts --format md --output docs/docs.md",
"docs": "yarn docs:html && yarn docs:md"创建此docs文件夹:

所以我想部署的是index.html页面,例如使用像my-lib-docs.netflify.app这样的url,这并不重要。我该怎么做呢?我必须使用哪个命令,如何配置Netlify和/或documentationjs?
非常感谢!
发布于 2021-01-19 00:42:48
您可以在Netlify上设置一个新站点,指向相同的git存储库,并为其提供您在问题中列出的构建和输出目录设置,然后将输出指向您的子域。
https://stackoverflow.com/questions/65770218
复制相似问题