Commit Graph

188 Commits

Author SHA1 Message Date
Brandon Mathis
d0e59172f3 Updated error message for gist syntax 2013-03-10 00:17:55 -06:00
Brandon Mathis
bfeeecea71 Improved error formatting and valid syntax directions. 2013-03-10 00:03:30 -06:00
Parker Moore
b456865c8c #highlight_failed now accepts tag name, and proper syntax 2013-03-10 02:06:02 +01:00
Parker Moore
6c58529532 Rescuing errors issued by Pygments and raising our own with helpful info 2013-03-10 01:45:05 +01:00
Parker Moore
66e7fb0bfb #highlight_failed in PygmentsCode 2013-03-10 01:44:32 +01:00
Parker Moore
8f7106c39b Colorizing fail message in Pygments code highlighting. 2013-03-10 00:24:52 +01:00
Parker Moore
1306ad83b9 Fail loudly when a pygments highlight fails. #990. 2013-03-10 00:17:43 +01:00
Brandon Mathis
81ea4ae9bb Merge pull request #1101 from imathis/bye-twitter
Bye, Twitter Timeline
2013-03-09 15:05:11 -08:00
Parker Moore
22fb2f2652 Actually bringing in the meat of the change from #629. 2013-03-06 00:05:59 +01:00
Leonardo Saraiva
b0dec8235e Merge change from @vyper in #629. 2013-03-06 00:02:42 +01:00
Parker Moore
38623c57d5 Remove references to Twitter from non-theme files. 2013-03-05 22:52:43 +01:00
Brandon Mathis
7bdab0e65c Added javascript asset management and improved Rakefiles and configuration for themes and plugins.
- Added Guard for file watching
- Configs can be automatically reloaded
- Static asset changes do not trigger Jekyll build
- CommonJS modular js support proved by stich-rb
- Javascript is concatenated and uglified
- Environment variables toggle uglify and fingerprinting
- New Jekyll plugin config_tag
- New Jekyll plugin javascript_assets_tag
- Added theme specific configurations
- Custome Jekyll Guard to the rescue
- Install, Generate, Watch, and Preview work with Guard now.
- Now configs are no longer tracked by Octopress, only theme defauts are.
- Console messages can be colorized.
- misc config reorganization and improvements
2013-03-04 01:12:10 -06:00
Parker Moore
517efa204d Merge pull request #1056 from MrJoy/dead_code_removal
Removal of apparently unreferenced, dangling method.
2013-02-22 05:07:47 -08:00
Parker Moore
b849ee56a3 Merge pull request #1058 from MrJoy/grand_whitespace_cleanup
Grand whitespace cleanup.
2013-02-22 04:55:38 -08:00
Parker Moore
4f4af96e8a Merge pull request #1055 from MrJoy/allow_short_markdown_extension_redux
Allow .md for markdown files.
2013-02-22 04:50:10 -08:00
Jon Frisby
7893d88dcf Removal of apparently unreferenced, dangling method.
(A search of the code reveals no reference to 'parse_category'...)
2013-02-21 21:54:02 -08:00
Jon Frisby
ffa9118e9c Grand whitespace cleanup. 2013-02-21 21:53:04 -08:00
Jon Frisby
b555d00fb5 Allow .md for markdown files. 2013-02-21 20:37:58 -08:00
Jon Frisby
27578e1498 Bring over a couple little things from master... 2013-02-21 12:28:51 -08:00
Eric Guo
6bd6d572e5 fix typo 2013-01-27 14:33:00 +08:00
Brandon Mathis
9994770225 Made it easy to optionally use RubyPython for pygments, closes #923 2013-01-13 23:03:55 -06:00
Brandon Mathis
ef9119089d Video tag plugin now supports mp4,ogv,webm formats, closes #931 2013-01-12 19:23:59 -06:00
Sean Kerr
cfcbd7261a Fixed blockquote plugin (author alone would not show up without title)
Conflicts:
	plugins/blockquote.rb
2013-01-12 16:40:26 -06:00
Brandon Mathis
1d5b9f803f Improved error message for category_generator plugin. Addresses #116 2013-01-12 16:21:50 -06:00
Brandon Mathis
a25787a204 Fixes for Redcarpet
- Removed unnecessary content filtering for escaping markdown
- Escaping codeblocks defaults to false and can be enabled by passing escape:true
- Backtick codeblocks are automatically escaped when using Textile
- Scoped styling of .highlight divs to figure elements
2013-01-03 11:36:51 -06:00
Brandon Mathis
277dc6a558 Merge pull request #916 from Keithbsmiley/2.1
Fix nil path when not using gist cache
2013-01-03 08:18:15 -08:00
Brandon Mathis
8c0aa043fe Added safe_wrap (escaping markdown and textile) to cached gists. Closes #917 2013-01-03 09:45:16 -06:00
Keith Smiley
fb27cae6be fix nil path when not using gist cache 2013-01-03 08:45:59 -05:00
Keith Smiley
5442c90e48 Fix crash with nil passes 2013-01-02 14:42:18 -05:00
Brandon Mathis
234e92852f Category Archive now supports category slugs and titles
For example, in the YAML header set categories like this

categories:
 - awesome [Awesome Posts]
 - news

Octopress will parse out '[Awesome Posts]' and 'news' as the title and display it in
the category list, but the category index urls will be awesome/ and news/

Fixes #902
2012-12-31 13:43:58 -06:00
David Tchepak
1b9fc7901e added category link method #408 2012-12-29 02:10:59 -06:00
Brandon Mathis
5b99bbb004 updated gems and removed albino support for code plugins since the latest Jekyll uses pygments.rb 2012-12-29 01:52:38 -06:00
Brandon Mathis
50105a6049 Merge pull request #896 from parkr/remove-jsfiddle
Remove jsFiddle plugin from default selection
2012-12-28 08:32:46 -08:00
Parker Moore
1b7b6467db Remove jsFiddle plugin from default selection 2012-12-28 02:22:16 -05:00
Brandon Mathis
10bd1cf27b updated code plugins to support slashes in titles #892 2012-12-26 17:31:51 -06:00
Brandon Mathis
be53372e20 Upgraded to pygments.rb 0.3.3 and fixed an issue where Gists wouldn't output cached files
I'm actually done. #888. For now.
2012-12-24 22:11:11 -06:00
Brandon Mathis
8eac9cf471 Further simplified code plugins
- The highlight function now accepts only to variables: code, options.
- Extracting part of a code snippet is now a method of pygments_code.rb.
- Options assignment has been simplified for all code plugins.
2012-12-24 15:59:48 -06:00
Brandon Mathis
66a883f2af Improved highlighted code caching and performance
- Pygments caching is broken into a couple utility functions for greater flexibility.
- Now Gist cache files are hashed against their gist id and parameters.
- Raw gists are no longer cached, only processed gists.
- Gist caches are still stored in .gist-cache/ for more atomic cleanup.

Note: For the docs, caching speeds up generation by about 1800 milliseconds on my machine.
2012-12-24 13:51:05 -06:00
Brandon Mathis
ed186b18a2 More code snippet refactoring
- Each code snippet's html is now cached (before only pygments output was cached and html was being processed each time)
- Caching MD5 is based on code snippets as well as options.
- Fixed an issue where gist tags weren't specifying a default start line

Note: The caching change shaved 800 milliseconds off of the render time for the docs. For code heavy sites this should be a nice change.
2012-12-24 00:23:48 -06:00
Brandon Mathis
e686f8544e fixed stupid mistake with find-and-replace 2012-12-23 00:44:40 -06:00
Brandon Mathis
0fcbc225e4 Code plugin refactoring
- Unified handling of key, value options
- Added url, link_text, and title options
- Gists can now accept start, end, range, title, url, link_text, linenos and marks options
- Code accessibility improvements (hiding line numbers) #864
2012-12-23 00:38:52 -06:00
Brandon Mathis
977be3adea Fixed issue with stripping whitespace on code captions. Sleepy code. 2012-12-20 23:50:42 -06:00
Brandon Mathis
1a4119a039 Code blocks are now more accessible to screen readers. Fixes #864 2012-12-20 23:38:03 -06:00
Brandon Mathis
fad262d3c1 Merge pull request #880 from lucisferre/adds-cs-filetype-to-pygments-processing
Adds 'cs' filetype to pygments
2012-12-20 10:06:55 -08:00
Chris Nicola
72accb4e5d Fixes gist processing of 'cs' files 2012-12-20 09:11:51 -08:00
Brandon Mathis
6a964fec8f Improved code snippet support
- Static Gist embeds show titles and link to the Gist
- Stylesheets refactored to remove !important and references to Gist classes
- Renamed links for include code
- Removed sometimes incorrect title attribute on code snippet links
2012-12-20 00:37:27 -06:00
Liang Sun
9864898610 To support url without domain name like /path/file
You need to know if you would like to support this, each word in the title can not start with "/".
2012-12-20 00:00:31 -06:00
Brandon Mathis
54ffce5611 added figcaption with source link to embeded gist code snippets 2012-12-19 00:17:47 -06:00
Parker Moore
a81765facb Gist plugin uses raw text instead of gist JS. 2012-12-17 15:20:29 -05:00
Brandon Mathis
1a96b235fc Now code blocks automatically escape liquid {{ and {% characters fixes #745 2012-09-06 11:10:32 -05:00