Bootstrap 4 如何正确编译引导文档并在本地打开?

Bootstrap 4 如何正确编译引导文档并在本地打开?,bootstrap-4,bootstrap-5,Bootstrap 4,Bootstrap 5,我下载了源代码,并按照广告中的npm-run-docs编译了文档。我可以看到,该流程会编译文档并将其保存到: ./bootstrap-5.0.0-alpha1/_gh_pages/docs/5.0/... 此目录在子目录中包含两个index.html文件。但是,如果我打开其中一个,它们都包含指向https://v5.getbootstrap.com/docs/5.0/getting-started/introduction因此我无法打开本地文件 <meta http-equiv=&quo

我下载了源代码,并按照广告中的
npm-run-docs
编译了文档。我可以看到,该流程会编译文档并将其保存到:

./bootstrap-5.0.0-alpha1/_gh_pages/docs/5.0/...
此目录在子目录中包含两个
index.html
文件。但是,如果我打开其中一个,它们都包含指向
https://v5.getbootstrap.com/docs/5.0/getting-started/introduction
因此我无法打开本地文件

<meta http-equiv="refresh" content="0; url=https://v5.getbootstrap.com/docs/5.0/getting-started/introduction/">

我想将引导文档系统用于我自己的文档,有人知道我这里缺少什么吗?

首先下载源代码

然后,您可以通过以下方式在本地运行文档:

npm run docs-serve
如果一切进展顺利,您应该看到如下内容

Web服务器位于http://localhost:9001/

当您从localhost浏览该本地URL时,文档将起作用。要在计算机上查找文档,它们将作为标记文件存储在
/bootstrap-5.0.0-alpha1/site/content/docs/5.0

npm run docs-serve