Skip to content

Fetch an up-to-date Bootstrap automatically #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "bootstrap"]
path = bootstrap
url = git://github.com/twitter/bootstrap.git
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.PHONY: build

build:
(cd bootstrap; npm install; make bootstrap)
rm -rf sphinx-bootstrap/static/bootstrap-*
cp -r bootstrap/bootstrap/css/* sphinx-bootstrap/static
20 changes: 9 additions & 11 deletions README.rst
Original file line number Diff line number Diff line change
@@ -33,23 +33,21 @@ Install
'disqus_shortname': 'scotchmedia',
}

3. Choose your theme. Edit `sphinx-bootstrap.css`. At the top of the file you will see this::
Building Instructions
---------------------

Uncomment the theme you would like to use.
When you first clone the repo, run:

@import "bootstrap-engineauth.min.css";
/*@import "bootstrap-default.min.css";*/
/*@import "bootstrap-sapling.css";*/
.. code::

Themes
------
git submodule init
git submodule update

New themes can be created using the `bootstrap customizer <http://twitter.github.com/bootstrap/customize.html>`_
Then, to update the CSS files:

Once you have created a custom theme include it in that static
directory and change the @import link to include your file. If you think the
themes is one that others will like. Send a pull request.
.. code::

make build


License
1 change: 1 addition & 0 deletions bootstrap
Submodule bootstrap added at 8c7f9c
Loading