Skip to content
This repository has been archived by the owner on Jan 22, 2024. It is now read-only.

Commit

Permalink
Adds combination step for CSS files
Browse files Browse the repository at this point in the history
  • Loading branch information
paullewis committed Nov 17, 2013
1 parent 820c709 commit be8fa79
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 1,870 deletions.
4 changes: 2 additions & 2 deletions main.py
Expand Up @@ -318,7 +318,7 @@ def get(self, relpath):
permanent=True)

if (relpath == ''):
css_file = 'v2'
css_file = 'v2-base'

path = os.path.join('content', relpath, 'index.html')
else:
Expand Down Expand Up @@ -384,7 +384,7 @@ def get(self, relpath):
if tut.description:
tut.description = _(tut.description)

css_file = 'v2'
css_file = 'v2-combined'
page_class = 'article'

# Gather list of localizations by globbing matching directories, then
Expand Down
5 changes: 3 additions & 2 deletions scripts/update_site_oauth.sh
Expand Up @@ -2,7 +2,7 @@
#
# Compresses the site's JS/CSS and cache busts links before uploading the app
# to App Engine.
#
#
# Note: This script should be used in place of using appcfg.py update directly
# to update the application on App Engine.
#
Expand All @@ -12,7 +12,7 @@ for arg in $@
do
if [ $arg = "--release" ] ; then
versionStr=v`date +%Y%m%d`

git checkout -b $versionStr

if [ $? -ne 0 ] ; then
Expand All @@ -34,6 +34,7 @@ do
fi
done

./combine_css_files.sh
./compress_js_css.sh
# Cache busting is handled by the GAE PageSpeed feature generating unique URLs.
#./cachebust.py
Expand Down

0 comments on commit be8fa79

Please sign in to comment.