twitter-bootstrap 如何使用 Bootstrap config.json 文件?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/25938565/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to use the Bootstrap config.json file?
提问by justharshal
i saw you mentioning that you use the Bootstrap config.json file here: Use the Bootstrap config.json file with Bower
我看到你提到你在这里使用 Bootstrap config.json 文件:Use the Bootstrap config.json file with Bower
I would like to know how i can use that file to furthur tweak my already customized version?
我想知道如何使用该文件来进一步调整我已经定制的版本?
I'm just getting started with programming so please be forgiving if this is basic. Thanks
我刚刚开始编程,所以如果这是基本的,请原谅。谢谢
回答by db0
- Go to http://getbootstrap.com/customize/and fill the form with your custom settings.
- At the bottom of the page, click on "Compile and Download". You will get a bootstrap.zip file containing all the customized files and a
config.jsonfile. - Insert the files you need in your project
- If you need to regenerate the customized files, go to https://gist.github.com/and create a new gist containing the content of the
config.jsonfile - Get the unique id of the gist in its URL
- Go to http://getbootstrap.com/customize/?id=GISTID(replace GISTID with the id of the gist you just created)
- The form will be pre-filled with your previous settings. Don't forget to update your gist with the new
config.jsonfile for future use.
- 转到http://getbootstrap.com/customize/并使用您的自定义设置填写表单。
- 在页面底部,单击“编译和下载”。您将获得一个 bootstrap.zip 文件,其中包含所有自定义文件和一个
config.json文件。 - 在你的项目中插入你需要的文件
- 如果您需要重新生成自定义文件,请转到https://gist.github.com/并创建一个包含
config.json文件内容的新 gist - 在其 URL 中获取要点的唯一 ID
- 转到http://getbootstrap.com/customize/?id=GISTID(将 GISTID 替换为您刚刚创建的 gist 的 id)
- 该表格将预先填写您之前的设置。不要忘记用新
config.json文件更新您的要点以备将来使用。

