如何解决如何部署文档页面
我创建了一个带有演示页面的库,我使用 Netlify 部署了它(网址类似于 my-lib.netflify.app),并且它与 "build": "parcel build demo/index.html --out-dir demo-build",
相关联。
然后我使用 documentationjs 添加到我的图书馆一个文档页面,使用命令 yarn docs
:
"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?
非常感谢!
解决方法
您可以在 Netlify 上设置一个新站点,指向同一个 git 存储库,并为其提供您在问题中列出的构建和输出目录设置,并将输出指向您的子域。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。