Skip to content

Commit ac9a4be

Browse files
committed
Add theme, stuff
1 parent 90db623 commit ac9a4be

36 files changed

+1579
-9
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22
bin
33
lib
44
include
5-
themes
65
output
76
*~

cache/ArticlesGenerator-Readers

8.22 KB
Binary file not shown.

cache/PagesGenerator-Readers

0 Bytes
Binary file not shown.

content/2014-11-10-this-week-in-rust.markdown

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ email!](mailto:[email protected]?subject=This%20Week%20in%20Rust%20Suggestion)
1010
Want to get involved? [We love
1111
contributions](https://github.com/mozilla/rust/wiki/Note-guide-for-new-contributors).
1212

13+
This issue brought to you by the fantastic [Brian
14+
Anderson](https://github.com/brson/) and [Alexis Beingessner](https://github.com/Gankro/)!
15+
1316
# What's cooking on master?
1417

1518
101 pull requests were [merged in the last week][1]. Woo!
@@ -88,7 +91,7 @@ contributions](https://github.com/mozilla/rust/wiki/Note-guide-for-new-contribut
8891
* impls can now be [defined on trait objects][impltrait].
8992
* P1start has been [converting][help] compiler messages that provide
9093
suggestions from 'notes' to 'help' messages.
91-
* The ['exceeding_bitshifts'][bitshift] lint catches overlong shifts
94+
* The [`exceeding_bitshifts`][bitshift] lint catches overlong shifts
9295
(which are currently undefined behavior) of static size. Due to
9396
[bugs][bitshift-bugs] it is set to 'allow' be default.
9497
* Ariel [removed][unsafe-rustc] a bunch of unsafe code from the
@@ -137,19 +140,19 @@ contributions](https://github.com/mozilla/rust/wiki/Note-guide-for-new-contribut
137140

138141
# New RFC's
139142
* [Macro reform](https://github.com/rust-lang/rfcs/pull/453): Prepares macros for 1.0 stabilization. Renames `macro_rules!` to `macro!`, and introduces more robust support for module importing and exporting.
140-
* [Change integer fallback RFC to suggest `i32` instead of `int` as the fallback](https://github.com/rust-lang/rfcs/pull/452): Changes the fallback for performance and portability.
143+
* [Change integer fallback RFC to suggest `i32` instead of `int` as the fallback](https://github.com/rust-lang/rfcs/pull/452): Changes the fallback for performance and portability.
141144
* [Un-feature-gate if let and tuple indexing](https://github.com/rust-lang/rfcs/pull/450): The features are well-behaved and used by many projects; ship 'em!
142145
* [Prohibit unused type parameters in impls](https://github.com/rust-lang/rfcs/pull/453): Require that every impl type parameter appears textually within the input type parameters of the trait reference or the impl self type.
143146
* [ES6-style unicode string escaping](https://github.com/rust-lang/rfcs/pull/446): Remove `\u203D` and `\U0001F4A9` unicode string escapes, and add ECMAScript 6-style `\u{1F4A9}` escapes instead. Strong positive feedback, some concern with how it interacts with format strings.
144-
* [extension trait conventions](https://github.com/rust-lang/rfcs/pull/445): Establishes a definition and naming convention for extension traits: traits which aren't intended for generic programing, but instead extending existing types. If extending a `Foo`, use `FooExt`. If Extending a `Foo` when it impls another trait like `Add`, use `FooAddExt`.
147+
* [extension trait conventions](https://github.com/rust-lang/rfcs/pull/445): Establishes a definition and naming convention for extension traits: traits which aren't intended for generic programing, but instead extending existing types. If extending a `Foo`, use `FooExt`. If Extending a `Foo` when it impls another trait like `Add`, use `FooAddExt`.
145148
* [cmp and ops reform](https://github.com/rust-lang/rfcs/pull/439): Refactors `Cmp` and the operator overloading traits. Generally positive feedback. Highlights include:
146149
* Make basic unary and binary operators work by value and use associated types.
147150
* Generalize comparison operators to work across different types; drop Equiv.
148151
* Refactor slice notation in favor of range notation so that special traits are no longer needed.
149152
* Add IndexSet to better support maps.
150153
* Clarify ownership semantics throughout.
151154
* [Change precedence of `+` in type grammar](https://github.com/rust-lang/rfcs/pull/438): Update type grammar to make `+` have lower precedence, consistent with the expression grammar, resolving a grammatical ambiguity.
152-
* [Relocate and improve c_str](https://github.com/rust-lang/rfcs/pull/435):
155+
* [Relocate and improve c_str](https://github.com/rust-lang/rfcs/pull/435):
153156
* Move the c_str module out of std to rid the latter of type dependencies on libc.
154157
* Split the current CString into a low-level type CStrBuf and a length-aware CString to make computation costs explicit.
155158
* Provide custom destructors and purpose-specific, mnemonically named constructors.
@@ -205,7 +208,7 @@ contributions](https://github.com/mozilla/rust/wiki/Note-guide-for-new-contribut
205208
(rather than temporary storage on the stack and then copying the
206209
datum from the stack into the backing storage).
207210
* [Forbid -(unsigned integer)](http://discuss.rust-lang.org/t/forbid-unsigned-integer/752): the eternal struggle continues. It's super handy when you want it, but also a common error to make.
208-
* [Moving all built-in macros to plugins](http://discuss.rust-lang.org/t/moving-all-built-in-macros-to-plugins/737): Another proposal to handle some of the issues with macros for 1.0. May make it easier to bootstrap changes to the compiler.
211+
* [Moving all built-in macros to plugins](http://discuss.rust-lang.org/t/moving-all-built-in-macros-to-plugins/737): Another proposal to handle some of the issues with macros for 1.0. May make it easier to bootstrap changes to the compiler.
209212
* [Lifetime Notation](http://discuss.rust-lang.org/t/lifetime-notation/751): `&'a` -> `a&`. Some discussion of tradeoffs and details.
210213
* [Poll: `Foo::new()` vs `Foo()` as the default constructor](http://discuss.rust-lang.org/t/poll-foo-new-vs-foo-as-the-default-constructor/758/29)
211214

@@ -218,7 +221,7 @@ contributions](https://github.com/mozilla/rust/wiki/Note-guide-for-new-contribut
218221
* [Error interoperation now available in the nightlies](https://www.reddit.com/r/rust/comments/2l98pn/error_interoperation_now_available_in_the/)
219222
* [Trait-based Exception handling RFC postponed until after 1.0](http://www.reddit.com/r/rust/comments/2l8x2a/traitbased_exception_handling_rfc_postponed_till/)
220223
* [Cargo now supports build-scripts!](http://www.reddit.com/r/rust/comments/2lgyne/cargo_now_support_build_scripts_xpost_rrust/)
221-
* [What libraries would you like to see implemented in Rust?](https://www.reddit.com/r/rust/comments/2lmt99/what_libraries_would_you_like_to_see_implemented/)
224+
* [What libraries would you like to see implemented in Rust?](https://www.reddit.com/r/rust/comments/2lmt99/what_libraries_would_you_like_to_see_implemented/)
222225
* [How good do you think the market for Rust developers will be 5 years from now, and in what area of programming?](http://www.reddit.com/r/rust/comments/2l3l07/rust_is_undoubtedly_one_of_the_upandcoming_big/)
223226
* [I think Rust and I were made for each other](http://www.reddit.com/r/rust/comments/2ljrp2/i_think_rust_and_i_were_meant_for_each_other/)
224227
* [How does the Rust community feel about FFI?](https://www.reddit.com/r/rust/comments/2lmkjw/how_does_the_rust_community_feel_about_ffi/)
@@ -233,7 +236,7 @@ contributions](https://github.com/mozilla/rust/wiki/Note-guide-for-new-contribut
233236
* [this-week-in-rust](https://github.com/cmr/this-week-in-rust): This Week in Rust's content is now publicly hosted in a Github repo! If you find any errors, just submit a PR to the relevant markdown file in `/content`! If you'd like to help out, please contact cmr, brson, or Gankro on Github/Reddit/IRC.
234237
* [rustaceans.org](http://rustaceans.org/): *This website is for finding Rustaceans. Wondering who is behind that GitHub username or IRC nick? Here is where to find out.*
235238
* [rust-modifier](https://github.com/reem/rust-modifier): *Convenient chaining APIs for free*
236-
* [dockerfiles](https://github.com/schickling/dockerfiles): *Collection of lightweight and ready-to-use docker images*
239+
* [dockerfiles](https://github.com/schickling/dockerfiles): *Collection of lightweight and ready-to-use docker images*
237240
* [Window Tiling For The Win](https://github.com/Kintaro/wtftw): *A tiling window manager written in Rust*
238241
* [cxx2rs](https://github.com/manuels/cxx2rs): *A rust-binding generator for C/C++ files*
239242
* [sorting-rs](https://github.com/wackywendell/sorting-rs): *This is a set of sorting algorithms, written in Rust.*

run.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/bin/sh
22
. ./bin/activate
33
./bin/pelican content -s pelicanconf.py -t themes/pelican-elegant-1.3
4-
rsync -razvP --delete-after output/ [email protected]:twir
4+
if [ "$REALLY_DEPLOY" = "1" ]; then
5+
rsync -razvP --delete-after output/ [email protected]:twir
6+
fi

themes/pelican-elegant-1.3/.gitignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Generated by http://gitignore.io
2+
3+
### OSX ###
4+
.DS_Store
5+
.AppleDouble
6+
.LSOverride
7+
Icon
8+
9+
10+
# Thumbnails
11+
._*
12+
13+
# Files that might appear on external disk
14+
.Spotlight-V100
15+
.Trashes
16+
17+
### vim ###
18+
.*.s[a-w][a-z]
19+
*.un~
20+
Session.vim
21+
.netrwhist
22+
*~

themes/pelican-elegant-1.3/LICENSE.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
The license requires that you give credit to me, Talha Mansoor, as the author of the Elegant theme on every site that uses this theme. I have placed the attribution in the footer of every page. Do not remove it. If you need to remove or change the style of the attribution, please get in [touch with me](http://oncrashreboot.com/#about-me) first.
2+
3+
Along with this attribution clause, Elegant theme is licensed under The MIT License.
4+
5+
If you use my theme, I would love to hear from you. [Get in touch](http://oncrashreboot.com/#about-me) and let me know about it. I may link to your site too.
6+
7+
Please visit License section of [Elegant - a theme for Pelican](http://oncrashreboot.com/pelican-elegant) at my blog for updated licensing details.

themes/pelican-elegant-1.3/README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Please visit [Elegant - a theme for Pelican](http://oncrashreboot.com/pelican-elegant) at my blog for detailed features and documentation.
2+
3+
Elegant offers several unique features including search, live filter, collapsible comments, Mailchimp, custom 404 page, etc. It is a minimal, and stylish theme that looks amazing across all screen resolutions and devices.
4+
5+
Here is an example search result
6+
7+
![Search result screenshot](https://raw.github.com/talha131/pelican-elegant/master/search-result-screenshot.png)
8+
9+
Here is how the home page looks like
10+
11+
![Home page screenshot](https://raw.github.com/talha131/pelican-elegant/master/home-page-screenshot.png)
12+
13+
This is how a generated article looks like
14+
15+
![Article screenshot](https://raw.github.com/talha131/pelican-elegant/master/article-screenshot.png)
16+
17+
[![githalytics.com alpha](https://cruel-carlota.pagodabox.com/c71132a529c1c5d7eb8dc5ea4825a851 "githalytics.com")](http://githalytics.com/talha131/pelican-elegant)
18+
19+
[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/talha131/pelican-elegant/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
Version 1.3
2+
===========
3+
4+
* Next and previous article navigation is placed below comments section so that article's content and comments appear together
5+
* Article title and site name in `<title>` tag is separated by ` · ` which is cleaner and more subtle than ` - `
6+
* Subtitle of articles and pages is added in `<title>` tag along with main title
7+
* Description meta tag on Home Page uses `SITE_DESCRIPTION`
8+
* Bug fix: Expand comments section if URL points to a comment
9+
* Bug fix: CSS style of links in an unordered list inside article content is different from article links
10+
11+
Version 1.2
12+
===========
13+
14+
* RSS and Atom feed links
15+
* CSS style for permanent links added. It is visible only user hovers over the heading
16+
* Block quote is indented towards left
17+
* Bug fix: Hyperlink dashed underline is not visible on Chrome
18+
* Bug fix: Text in list goes beyond list marker when text is long and overflows to next line
19+
* Bug fix: Disqus comment count is always 0
20+
21+
Version 1.1
22+
===========
23+
24+
* Add template for pages. Pages do not have tags, category and Disqus comments
25+
* Keep style of a hyperlink in `modified` meta data consisted with the theme
26+
* Add `keywords` meta tag that uses keywords, tags and category attribute of articles and pages
27+
* Validate search form for empty strings
28+
* If `RECENT_ARTICLES_COUNT` is undefined, set it to 10. So that Pelican does not throw critical error
29+
* Bug fix: Path of search.html in search form action should always be absolute
30+
* Bug fix: Copyright meta tag should be set to the author, instead of the license
31+
* Bug fix: Close meta tags
32+
* Bug fix: ID of search form in 404 page should be different from the ID of search form in main navigation
33+
* Bug fix: Links in ordered list in an article do not conform to the link style in rest of the article
34+
35+
Version 1.0
36+
===========
37+
38+
* Initial release

themes/pelican-elegant-1.3/THANKS.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
Thanks to
2+
=========
3+
4+
[tshepang](https://github.com/tshepang)
5+
---------------------------------------
6+
7+
### Oct 4, 2013
8+
9+
1. He [reported](https://github.com/talha131/pelican-elegant/issues/10) an issue with CSS style of links in an unordered lists.
10+
11+
### Oct 1, 2013
12+
13+
1. He [reported](https://github.com/talha131/pelican-elegant/issues/6) that it is not possible to link to a Disqus comment.
14+
15+
### Sep 29, 2013
16+
17+
1. He [reported](https://github.com/talha131/pelican-elegant/issues/5) hyperlink style compatibility issue on Chrome.
18+
1. He [reported](https://github.com/talha131/pelican-elegant/issues/3) an issue with link style.
19+
1. He [reported](https://github.com/talha131/pelican-elegant/issues/4) the bug that Disqus comment count is always zero.
20+
21+
[yuex](https://github.com/yuex)
22+
-------------------------------
23+
24+
### Sep 15, 2013
25+
26+
1. He submitted a [patch](https://github.com/talha131/pelican-elegant/pull/2) to the project.
27+
28+
[Melissa](https://github.com/meli-lewis)
29+
----------------------------------------
30+
### Sep 3, 2013
31+
32+
1. She reported a [critical bug](https://github.com/talha131/pelican-elegant/issues/1).
33+
34+
[John](http://twitter.com/BostonEnginerd)
35+
-----------------------------------------
36+
37+
### Sep 2, 2013
38+
39+
1. He suggested [an improvement](https://twitter.com/BostonEnginerd/status/374555593589002241) to the [Elegant project description](http://oncrashreboot.com/elegant-a-clean-theme-for-pelican-with-search-feature).
40+
41+
[if1live](https://github.com/if1live)
42+
-------------------------------------
43+
44+
### Aug 31, 2013
45+
46+
1. His [pull request](https://github.com/getpelican/pelican-plugins/pull/68) reminded me that I have forgotten to add template for Pages
47+
1. His [commit](https://github.com/if1live/pelican-elegant/commit/3da52903e94051fa771212149a10a271adc78264#commitcomment-3988674) in the fork brought bug in the path of search.html to my notice
48+
49+
[Jérémie Astori](https://github.com/astorije)
50+
---------------------------------------------
51+
52+
### Aug 30, 2013
53+
54+
1. He reported a [bug](https://botbot.me/freenode/pelican/msg/5577967/) in search form.
Loading
Loading
Loading
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
.hll { background-color: #ffffcc }
2+
.c { color: #93a1a1; font-style: italic } /* Comment */
3+
.err { color: #dc322f } /* Error */
4+
.g { color: #657b83 } /* Generic */
5+
.k { color: #859900 } /* Keyword */
6+
.l { color: #657b83 } /* Literal */
7+
.n { color: #586e75 } /* Name */
8+
.o { color: #657b83 } /* Operator */
9+
.x { color: #657b83 } /* Other */
10+
.p { color: #657b83 } /* Punctuation */
11+
.cm { color: #93a1a1; font-style: italic } /* Comment.Multiline */
12+
.cp { color: #93a1a1; font-style: italic } /* Comment.Preproc */
13+
.c1 { color: #93a1a1; font-style: italic } /* Comment.Single */
14+
.cs { color: #93a1a1; font-style: italic } /* Comment.Special */
15+
.gd { color: #657b83 } /* Generic.Deleted */
16+
.ge { color: #657b83 } /* Generic.Emph */
17+
.gr { color: #657b83 } /* Generic.Error */
18+
.gh { color: #657b83 } /* Generic.Heading */
19+
.gi { color: #657b83 } /* Generic.Inserted */
20+
.go { color: #657b83 } /* Generic.Output */
21+
.gp { color: #657b83 } /* Generic.Prompt */
22+
.gs { color: #657b83 } /* Generic.Strong */
23+
.gu { color: #657b83 } /* Generic.Subheading */
24+
.gt { color: #657b83 } /* Generic.Traceback */
25+
.kc { color: #859900 } /* Keyword.Constant */
26+
.kd { color: #859900 } /* Keyword.Declaration */
27+
.kn { color: #cb4b16 } /* Keyword.Namespace */
28+
.kp { color: #cb4b16 } /* Keyword.Pseudo */
29+
.kr { color: #859900 } /* Keyword.Reserved */
30+
.kt { color: #859900 } /* Keyword.Type */
31+
.ld { color: #657b83 } /* Literal.Date */
32+
.m { color: #2aa198 } /* Literal.Number */
33+
.s { color: #2aa198 } /* Literal.String */
34+
.na { color: #657b83 } /* Name.Attribute */
35+
.nb { color: #268bd2 } /* Name.Builtin */
36+
.nc { color: #268bd2 } /* Name.Class */
37+
.no { color: #b58900 } /* Name.Constant */
38+
.nd { color: #cb4b16 } /* Name.Decorator */
39+
.ni { color: #cb4b16 } /* Name.Entity */
40+
.ne { color: #cb4b16 } /* Name.Exception */
41+
.nf { color: #268bd2 } /* Name.Function */
42+
.nl { color: #657b83 } /* Name.Label */
43+
.nn { color: #b58900 } /* Name.Namespace */
44+
.nx { color: #657b83 } /* Name.Other */
45+
.py { color: #268bd2 } /* Name.Property */
46+
.nt { color: #859900 } /* Name.Tag */
47+
.nv { color: #cd4b16 } /* Name.Variable */
48+
.ow { color: #859900 } /* Operator.Word */
49+
.w { color: #fdf6e3 } /* Text.Whitespace */
50+
.mf { color: #2aa198 } /* Literal.Number.Float */
51+
.mh { color: #2aa198 } /* Literal.Number.Hex */
52+
.mi { color: #2aa198 } /* Literal.Number.Integer */
53+
.mo { color: #2aa198 } /* Literal.Number.Oct */
54+
.sb { color: #2aa198 } /* Literal.String.Backtick */
55+
.sc { color: #2aa198 } /* Literal.String.Char */
56+
.sd { color: #2aa198 } /* Literal.String.Doc */
57+
.s2 { color: #2aa198 } /* Literal.String.Double */
58+
.se { color: #cb4b16 } /* Literal.String.Escape */
59+
.sh { color: #2aa198 } /* Literal.String.Heredoc */
60+
.si { color: #cb4b16 } /* Literal.String.Interpol */
61+
.sx { color: #2aa198 } /* Literal.String.Other */
62+
.sr { color: #2aa198 } /* Literal.String.Regex */
63+
.s1 { color: #2aa198 } /* Literal.String.Single */
64+
.ss { color: #2aa198 } /* Literal.String.Symbol */
65+
.bp { color: #268bd2; font-weight: bold } /* Name.Builtin.Pseudo */
66+
.vc { color: #268bd2 } /* Name.Variable.Class */
67+
.vg { color: #268bd2 } /* Name.Variable.Global */
68+
.vi { color: #268bd2 } /* Name.Variable.Instance */
69+
.il { color: #2aa198 } /* Literal.Number.Integer.Long */

0 commit comments

Comments
 (0)