Skip to content

Commit

Permalink
Merge pull request #1033 from dotKom/wiki-bootstrap
Browse files Browse the repository at this point in the history
Fix wiki-bootstrap messing up our own bootstrap css.
  • Loading branch information
hernil committed Jan 21, 2015
2 parents 8ad1fcd + 6cb9c06 commit bf5c4ae
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions files/static/less/wiki.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#wiki {
@import "wiki/bootstrap/less/wiki/wiki-bootstrap.less";
// Hardcoded for now
// Note: change to @fa-font-path when upgrading to Font Awesome 4
@FontAwesomePath: "/static/wiki/font-awesome/font";

padding: 87px 0 0;
.page-header {
margin-top: 0px;
Expand Down
6 changes: 5 additions & 1 deletion onlineweb4/settings/base.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import sys
import wiki
from django.contrib.messages import constants as messages

# Directory that contains this file.
Expand Down Expand Up @@ -82,10 +83,13 @@
'compressor.finders.CompressorFinder',
)

# Including django-wiki static files so we can import the less files.
DJANGO_WIKI_STATIC = os.path.join(os.path.dirname(wiki.__file__), 'static')

COMPRESS_FILES = True
COMPRESS_OUTPUT_DIR = 'cache'
COMPRESS_PRECOMPILERS = (
('text/less', 'lessc {infile} {outfile}'),
('text/less', 'lessc --include-path=%s {infile} {outfile}' % DJANGO_WIKI_STATIC),
)

COMPRESS_CSS_FILTERS = [
Expand Down
1 change: 0 additions & 1 deletion templates/wiki/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
{% endblock %}

{% block styles %}
<link href="{{ STATIC_URL }}wiki/bootstrap/css/wiki-bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" media="all" href="/static/wiki/markitup/skins/simple/style.css" />
<link rel="stylesheet" media="all" href="/static/wiki/markitup/sets/frontend/style.css" />
{{ block.super }}
Expand Down

0 comments on commit bf5c4ae

Please sign in to comment.