Skip to content

Commit 1dcb8cc

Browse files
committedMay 28, 2015
bundles not done
1 parent d155c22 commit 1dcb8cc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎stories/creating-a-theme.txt

+5
Original file line numberDiff line numberDiff line change
@@ -739,6 +739,11 @@ And then we can put the options in conf.py's ``GLOBAL_CONTEXT``:
739739

740740
Doing the same for layout-reverse, sidebar-overlay and the rest is left as an excercise for the reader.
741741

742+
Bundles
743+
-------
744+
745+
I promised to get to bundles. Sadly I ran out of steam. To be done soon.
746+
742747
The End
743748
-------
744749

2 commit comments

Comments
 (2)

Kwpolska commented on May 28, 2015

@Kwpolska
Member

Bundles are used by Nikola to speed things up by putting all JS and CSS in big files that encompass everything. In order to use them, you need to install webassets from PyPI and USE_BUNDLES needs to be set to True (which is the default setting).

In order to create bundles, you need a themes/lanyon/bundles text file. Its format is output.filename=input,files,separated,by,commas. A sample file for lanyon is:

all.css=rst.css,lanyon.rss,poole.rss,code.css,custom.css
all-nocdn.css=rst.css,lanyon.rss,poole.rss,code.css,custom.css

ralsina commented on May 28, 2015

@ralsina
MemberAuthor

Feel free to add that to the doc :-)

Please sign in to comment.