Skip to content

Commit 5c753e5

Browse files
flynnduismslack
authored andcommitted
docs(styles): update the theme to match deis.com
1 parent cda073c commit 5c753e5

453 files changed

Lines changed: 69840 additions & 865 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ develop-eggs
1313
.installed.cfg
1414
lib
1515
lib64
16+
.sass-cache
1617

1718
# python virtual environments for testing
1819
venv/

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ MKDOCS = mkdocs
77
MKDOCSBUILDOPTS = --clean --strict --verbose
88
MKDOCSBUILD = $(MKDOCS) build $(MKDOCSBUILDOPTS)
99
MKDOCSSERVE = $(MKDOCS) serve -a 0.0.0.0:8000
10+
SASS = themes/deis/static/scss/app.scss:themes/deis/static/css/styles.css --style compressed
1011

1112
SHORT_NAME ?= workflow
1213
VERSION ?= git-$(shell git rev-parse --short HEAD)
@@ -31,6 +32,9 @@ build:
3132
serve:
3233
$(MKDOCSSERVE)
3334

35+
watch:
36+
sass --watch $(SASS)
37+
3438
clean:
3539
rm -rf $(BUILDDIR)/*
3640

themes/.DS_Store

6 KB
Binary file not shown.

themes/deis/base.html

Lines changed: 142 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -3,94 +3,152 @@
33
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
44
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
55
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
6+
67
<head>
7-
<title>{% if page_title %}{{ page_title }} - {% endif %}{{ site_name }}</title>
8-
<link rel="shortcut icon" href="{{ base_url }}/static/favicon.ico">
9-
<meta charset="utf-8" />
10-
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
11-
<meta name="description" content="{{ page_description if page_description }}" />
12-
<meta name="keywords" content="{{ meta['keywords'] if meta }}" />
13-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
14-
<meta name="msvalidate.01" content="079E754911917142D42AB2A3694F9267" />
15-
<meta name="msvalidate.01" content="08598E7D936D9217891AE6C1665A645D" />
16-
<link rel="stylesheet" href="{{ base_url }}/static/css/bootstrap.min.css" type="text/css">
17-
<link rel="stylesheet" href="{{ base_url }}/static/css/bootstrap-responsive.min.css" type="text/css">
18-
<link rel="stylesheet" href="{{ base_url }}/static/css/main.css" type="text/css">
19-
<link rel="stylesheet" href="{{ base_url }}/static/css/deis-docs.css" type="text/css">
20-
<script type="text/javascript">var documentationBaseURL = "{{ base_url}}"</script>
21-
<script src="{{ base_url }}/static/js/modernizr-2.6.2-respond-1.1.0.min.js"></script>
22-
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
23-
<script>window.jQuery || document.write('<script src="{{ base_url }}/static/js/jquery-1.10.2.min.js"><\/script>')</script>
8+
<meta charset="utf-8" />
9+
<meta http-equiv="x-ua-compatible" content="ie=edge">
10+
<meta name="keywords" content="{{ meta['keywords'] if meta }}" />
11+
<meta name="viewport" content="width=device-width, initial-scale=1">
12+
<meta name="description" content="{{ page_description if page_description }}" />
13+
14+
<meta name="msvalidate.01" content="079E754911917142D42AB2A3694F9267" />
15+
<meta name="msvalidate.01" content="08598E7D936D9217891AE6C1665A645D" />
16+
17+
<title>{% if page_title %}{{ page_title }} - {% endif %}{{ site_name }}</title>
18+
<!-- <base href="https://deis.com/docs"> -->
19+
20+
<link rel="icon" href="{{ base_url }}/static/img/favicon/favicon.png" type="image/png">
21+
22+
<!-- styles -->
23+
<link rel="stylesheet" href="{{ base_url }}/static/css/styles.css" type="text/css">
2424
</head>
25-
<body style="zoom: 1;">
26-
<!--[if lt IE 7]>
27-
<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
28-
<![endif]-->
29-
<div class="container">
25+
26+
<body>
27+
<!--[if lt IE 7]>
28+
<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
29+
<![endif]-->
30+
31+
{%- include "topbar.html" %}
32+
33+
<!-- banner at the top of the page for temporary announcements-->
34+
<div data-alert class="alert-box alert banner text-center">
35+
You're viewing docs for the latest release of <strong>Deis Workflow</strong>. For docs <a href="https://deis.io/">relating to Deis 1.0 click here</a>.
36+
</div>
37+
38+
<div class="content-wrap">
39+
40+
<div class="content-inner">
41+
<div class="container">
3042
<div class="row">
31-
<div class="span9 column_calc contents">
32-
<div class="doc-content">
33-
{{ content }}
34-
</div>
35-
</div>
36-
37-
38-
<div class="span3 docs-sidebar column_calc">
39-
<a class="fork" href="http://github.com/deis/workflow"><div class="forkImage"></div></a>
40-
<div class="docs-border"></div>
41-
<div class="navigation">
42-
<ul class="current">
43-
{%- include "nav.html" %}
44-
<li class="toctree-l1">
45-
{% if READTHEDOCS %}
46-
<a class="reference internal" href="../" state="open">Versions</a>
47-
<ul class="current">
48-
{% for slug, url in versions %}
49-
<li class="toctree-l2"><a href="{{ url }}{%- for word in pagename.split('/') -%}
50-
{%- if word != 'index' -%}
51-
{%- if word != '' -%}
52-
{{ word }}/
53-
{%- endif -%}
54-
{%- endif -%}
55-
{%- endfor -%}"
56-
title="Switch to {{ slug }}">{{ slug }}</a></li>
57-
{% endfor %}
58-
</ul>
59-
{% endif %}
60-
</li>
61-
</ul>
62-
<div class="clearfix"></div>
63-
</div>
64-
</div>
43+
<div class="small-12">
44+
{{ content }}
45+
</div>
6546
</div>
47+
</div>
6648
</div>
6749

68-
<!--
69-
extra_javascript contains paths to JavaScript files in the
70-
users documentation directory or a list of JavaScript files
71-
defined in their mkdocs.yml.
72-
73-
http://www.mkdocs.org/user-guide/configuration/#extra_javascript
74-
-->
75-
{% for path in extra_javascript %}
76-
<script src="{{ path }}"></script>
77-
{% endfor %}
78-
79-
<!--
80-
Include Google Analytics tracking code.
81-
82-
http://www.mkdocs.org/user-guide/configuration/#google_analytics
83-
-->
84-
{% if google_analytics %}
85-
<script>
86-
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
87-
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
88-
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
89-
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
90-
91-
ga('create', '{{ google_analytics[0] }}', '{{ google_analytics[1] }}');
92-
ga('send', 'pageview');
93-
</script>
94-
{% endif %}
50+
<nav class="sidebar">
51+
<div class="sidebar-inner">
52+
<ul class="current">
53+
{%- include "nav.html" %}
54+
<li class="toctree-l1">
55+
{% if READTHEDOCS %}
56+
<a class="reference internal" href="../" state="open">Versions</a>
57+
<ul class="current">
58+
{% for slug, url in versions %}
59+
<li class="toctree-l2"><a href="{{ url }}{%- for word in pagename.split('/') -%}
60+
{%- if word != 'index' -%}
61+
{%- if word != '' -%}
62+
{{ word }}/
63+
{%- endif -%}
64+
{%- endif -%}
65+
{%- endfor -%}"
66+
title="Switch to {{ slug }}">{{ slug }}</a></li>
67+
{% endfor %}
68+
</ul>
69+
{% endif %}
70+
</li>
71+
</ul>
72+
</div>
73+
74+
<div class="sidebar-bg"></div>
75+
</nav>
76+
77+
</div>
78+
79+
<!-- div class="row">
80+
<div class="small-9 column_calc contents">
81+
<div class="doc-content">
82+
{{ content }}
83+
</div>
84+
</div>
85+
86+
<div class="small-3 docs-sidebar column_calc">
87+
<a class="fork" href="http://github.com/deis/workflow"><div class="forkImage"></div></a>
88+
<div class="docs-border"></div>
89+
<div class="navigation">
90+
<ul class="current">
91+
{%- include "nav.html" %}
92+
<li class="toctree-l1">
93+
{% if READTHEDOCS %}
94+
<a class="reference internal" href="../" state="open">Versions</a>
95+
<ul class="current">
96+
{% for slug, url in versions %}
97+
<li class="toctree-l2"><a href="{{ url }}{%- for word in pagename.split('/') -%}
98+
{%- if word != 'index' -%}
99+
{%- if word != '' -%}
100+
{{ word }}/
101+
{%- endif -%}
102+
{%- endif -%}
103+
{%- endfor -%}"
104+
title="Switch to {{ slug }}">{{ slug }}</a></li>
105+
{% endfor %}
106+
</ul>
107+
{% endif %}
108+
</li>
109+
</ul>
110+
111+
<div class="clearfix"></div>
112+
</div>
113+
</div>
114+
</div>
115+
</div> -->
116+
117+
{%- include "footer.html" %}
118+
119+
<!-- scripts -->
120+
<script type="text/javascript">var documentationBaseURL = "{{ base_url}}"</script>
121+
<script src="{{ base_url }}/static/js/modernizr-2.6.2-respond-1.1.0.min.js"></script>
122+
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
123+
<script>window.jQuery || document.write('<script src="{{ base_url }}/static/js/jquery-1.10.2.min.js"><\/script>')</script>
124+
125+
<!--
126+
extra_javascript contains paths to JavaScript files in the
127+
users documentation directory or a list of JavaScript files
128+
defined in their mkdocs.yml.
129+
130+
http://www.mkdocs.org/user-guide/configuration/#extra_javascript
131+
-->
132+
{% for path in extra_javascript %}
133+
<script src="{{ path }}"></script>
134+
{% endfor %}
135+
136+
<!--
137+
Include Google Analytics tracking code.
138+
139+
http://www.mkdocs.org/user-guide/configuration/#google_analytics
140+
-->
141+
{% if google_analytics %}
142+
<script>
143+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
144+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
145+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
146+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
147+
148+
ga('create', '{{ google_analytics[0] }}', '{{ google_analytics[1] }}');
149+
ga('send', 'pageview');
150+
</script>
151+
{% endif %}
152+
95153
</body>
96-
</html>
154+
</html>

themes/deis/bower.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "deis workflow docs",
3+
"dependencies": {
4+
"headroom.js": "^0.9.3",
5+
"font-awesome": "^4.6.3",
6+
"foundation": "^5.5.3"
7+
}
8+
}
6 KB
Binary file not shown.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "fastclick",
3+
"main": "lib/fastclick.js",
4+
"ignore": [
5+
"**/.*",
6+
"component.json",
7+
"package.json",
8+
"Makefile",
9+
"tests",
10+
"examples"
11+
],
12+
"homepage": "https://github.com/ftlabs/fastclick",
13+
"version": "1.0.6",
14+
"_release": "1.0.6",
15+
"_resolution": {
16+
"type": "version",
17+
"tag": "v1.0.6",
18+
"commit": "2ac7258407619398005ca720596f0d36ce66a6c8"
19+
},
20+
"_source": "https://github.com/ftlabs/fastclick.git",
21+
"_target": ">=0.6.11",
22+
"_originalSource": "fastclick"
23+
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Copyright (c) 2014 The Financial Times Ltd.
2+
3+
Permission is hereby granted, free of charge, to any person
4+
obtaining a copy of this software and associated documentation
5+
files (the "Software"), to deal in the Software without
6+
restriction, including without limitation the rights to use,
7+
copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
copies of the Software, and to permit persons to whom the
9+
Software is furnished to do so, subject to the following
10+
conditions:
11+
12+
The above copyright notice and this permission notice shall be
13+
included in all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22+
OTHER DEALINGS IN THE SOFTWARE.

0 commit comments

Comments
 (0)