Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
bundles not done
  • Loading branch information
ralsina committed May 28, 2015
1 parent d155c22 commit 1dcb8cc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions stories/creating-a-theme.txt
Expand Up @@ -739,6 +739,11 @@ And then we can put the options in conf.py's ``GLOBAL_CONTEXT``:

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

Bundles
-------

I promised to get to bundles. Sadly I ran out of steam. To be done soon.

The End
-------

Expand Down

2 comments on commit 1dcb8cc

@Kwpolska
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to add that to the doc :-)

Please sign in to comment.