Skip to content

Commit dbe2b71

Browse files
committed
More updates
1 parent 8f5d676 commit dbe2b71

File tree

7 files changed

+93
-29
lines changed

7 files changed

+93
-29
lines changed

_config.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ JB :
7070
# These paths are to the main pages Jekyll-Bootstrap ships with.
7171
# Some JB helpers refer to these paths; change theme here if needed.
7272
#
73-
archive_path: /archive.html
74-
categories_path : /categories.html
75-
tags_path : /tags.html
73+
# archive_path: /archive.html
74+
# categories_path : /categories.html
75+
# tags_path : /tags.html
7676

7777
# Settings for comments helper
7878
# Set 'provider' to the comment provider you want to use.
@@ -96,14 +96,14 @@ JB :
9696
# Set 'provider' to the analytics provider you want to use.
9797
# Set 'provider' to false to turn analytics off globally.
9898
#
99-
analytics :
100-
provider : google
101-
google :
102-
tracking_id : 'UA-123-12'
103-
getclicky :
104-
site_id :
105-
mixpanel :
106-
token : '_MIXPANEL_TOKEN_'
99+
# analytics :
100+
# provider : google
101+
# google :
102+
# tracking_id : 'UA-123-12'
103+
# getclicky :
104+
# site_id :
105+
# mixpanel :
106+
# token : '_MIXPANEL_TOKEN_'
107107

108108
# Settings for sharing helper.
109109
# Sharing is for things like tweet, plusone, like, reddit buttons etc.

_includes/themes/mongoengine/default.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,13 @@
4646
<div class="content">
4747
{{ content }}
4848
</div>
49+
</div> <!-- /container -->
4950

50-
<footer>
51+
<footer class=" footer">
5152
<p>&copy; mongoengine
5253
</p>
5354
</footer>
5455

55-
</div> <!-- /container -->
56-
5756
<script src="{{ ASSET_PATH }}/js/jquery.js"></script>
5857
<script src="{{ ASSET_PATH }}/bootstrap/js/bootstrap-tabs.js"></script>
5958
<script src="{{ ASSET_PATH }}/js/github.commits.widget.js"></script>

_includes/themes/mongoengine/frontpage.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ <h1 class="logo">MongoEngine</h1>
44

55
<div class="row">
66
<div class="span12 strapline">
7-
<p>A object-document mapper to connect Python and MongoDB</p>
7+
<p>The object-document mapper to connect Python and MongoDB</p>
88
</div>
99
</div>
1010

@@ -63,7 +63,7 @@ <h3>Roadmap released</h3>
6363
<li>Raw method for pyMongo</li>
6464
</ul>
6565
For more information see:
66-
<a href="https://groups.google.com/d/topic/mongoengine-users/Or_LkpB5WYQ/discussion">Roadmap</a>
66+
<a href="/roadmap.html">Roadmap</a>
6767
</p>
6868
<h3>MongoEngine v0.6 Released</h3>
6969
<p>Just to let you know 0.6 has been released!
@@ -115,7 +115,7 @@ <h2><a name="getting-started"></a>Getting Started</h2>
115115
</p>
116116
</div>
117117
<div class="span5">
118-
<h3>Dependancies</h3>
118+
<h3 class="first">Dependancies</h3>
119119
<ul class="decorated">
120120
<li><a href="http://api.mongodb.org/python/">pymongo 1.1+</a></li>
121121
<li><a href="http://sphinx.pocoo.org/">sphinx</a> (optional, for documentation
@@ -138,7 +138,7 @@ <h2><a name="source"></a>Source</h2>
138138
<p><code>git clone git://github.com/mongoengine/mongoengine.git</code></p>
139139
</div>
140140
<div class="span5">
141-
<h3>Contributing</h3>
141+
<h3 class="first">Contributing</h3>
142142
<p>To contribute to the project, fork it on GitHub and
143143
send a pull request, all contributions and suggestions are
144144
welcome!</p>
@@ -187,6 +187,5 @@ <h3>Github</h3>
187187
}).render().start();
188188
</script>
189189
</div>
190-
</div>
191190
</div>
192191
</div>

_includes/themes/mongoengine/page.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
<div class="page-header">
2-
<h1>{{ page.title }} <small>{{ page.tagline }}</small></h1>
2+
<h1 class="logo">MongoEngine</h1>
3+
</div>
4+
5+
<div class="page-header-secondary">
6+
<h2>{{ page.title }} <small>{{ page.tagline }}</small></h2>
37
</div>
48

59
<div class="row">

assets/themes/mongoengine/css/style.css

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ h3 {
6565
margin-bottom: 0.6em;
6666
}
6767

68+
h3.first {
69+
margin-top: -1em;
70+
}
71+
6872
/* nav bar ================ */
6973
.navbar {
7074
border-top: 1px solid #e4e4e4;
@@ -126,7 +130,7 @@ h3 {
126130
font-size: 1.70em;
127131
line-height: 2.25em;
128132
text-align: center;
129-
color: #291902;
133+
color: #fff;
130134
text-shadow: 0 1px 1px #957e62;
131135
margin: 0;
132136
}
@@ -162,10 +166,14 @@ h3 {
162166
}
163167

164168

165-
.container > footer {
169+
footer {
166170
margin-top: 20px;
171+
background-color: #F7F7F9;
172+
border: 1px solid #E1E1E8;
173+
padding: 10px 0;
174+
color: #444;
167175
}
168-
.container > footer p {
176+
footer p {
169177
text-align: center; /* center align it with the container */
170178
}
171179

assets/themes/mongoengine/js/github.commits.widget.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,17 +1114,18 @@ function bit_rol(num, cnt)
11141114
if (differenceInDays == 0) {
11151115
var differenceInHours = Math.floor(((todayTime - commitTime)/(3600*1000)));
11161116
if (differenceInHours == 0) {
1117-
var differenceInMinutes = Math.floor(((todayTime - commitTime)/(600*1000)));
1117+
var differenceInMinutes = Math.floor(((todayTime - commitTime)/(60*1000)));
11181118
if (differenceInMinutes == 0) {
1119-
11201119
return 'just now';
11211120
}
1122-
1123-
return 'about ' + differenceInMinutes + ' minutes ago';
1121+
console.log(todayTime, commitTime, (todayTime - commitTime))
1122+
var plural = differenceInMinutes > 1 ? 's' : ''
1123+
return 'about ' + differenceInMinutes + ' minute' + plural + ' ago';
11241124
}
11251125

1126-
return 'about ' + differenceInHours + ' hours ago';
1127-
}else if (differenceInDays == 1) {
1126+
var plural = differenceInHours > 1 ? 's' : ''
1127+
return 'about ' + differenceInHours + ' hour' + plural + ' ago';
1128+
} else if (differenceInDays == 1) {
11281129
return 'yesterday';
11291130
}
11301131
return differenceInDays + ' days ago';

roadmap.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
layout: page
3+
title: "Roadmap"
4+
tagline: "upcoming and new"
5+
---
6+
{% include JB/setup %}
7+
8+
Initially published on the [mongoengine-users](https://groups.google.com/d/topic/mongoengine-users/Or_LkpB5WYQ/discussion) usergroup.
9+
10+
### 0.7
11+
12+
- Performance - Dirty data tracking
13+
- Allow inheritance default to off
14+
- Chainable QuerySet slice
15+
- Serialization / deserialization
16+
- Raw method for pyMongo
17+
18+
See [github](https://github.com/hmarr/mongoengine/issues?milestone=4&state=open) for all the issues assigned to the 0.7 (not all will make it).
19+
20+
### 0.8
21+
22+
- Performance - Configurable lazy references
23+
- Transparent pymongo connections - lazy ones at that :)
24+
- Bug fixes
25+
- Code quality
26+
27+
### 0.9
28+
29+
- Python 3 support
30+
- Test refactor
31+
- Polish and clean
32+
- Website
33+
34+
### 1.0 - Party! :)
35+
36+
Anything missing or you would like in - let me know!
37+
38+
## MongoEngine framework support
39+
40+
MongoEngine is used with various different frameworks and there are numerous projects out there for integration in varying states of completeness. I would like to bring framework support into the project - so that we can provide similar levels of functionality to whichever framework you are using.
41+
42+
At the weekend I did a quick review and found:
43+
44+
* Django has 6 projects on Github providing Forms, Views, Admin and debug toolbar support.
45+
* Flask has 2 projects providing Generic Views, Forms and Debug toolbar support
46+
* Pyramid has a project providing project scaffolding.
47+
* Bottle has a project / example for integration
48+
49+
I will need help from the community with this and I will be reaching out to people who have already published code on github. If you are interested let me know!
50+
51+
To help with this I have added a new organisation in Github: http://github.com/mongoengine - this will host the code going forward (don't worry any changes to the core will be pushed upstream to http://github.com/hmarr/mongoengine/) I'm hoping that all the new framework libraries will be hosted under this organisation so that they are easy to find and cross repository issues can be tracked.
52+
53+
I'm really excited about pushing towards getting MongoEngine to 1.0 and with your help we'll get there soon, I would also love some feedback - anything you think MongoEngine could do better / shouldn't be doing let me know!

0 commit comments

Comments
 (0)