Marko Anastasov
16ef859073
Ignore case when matching image paths.
...
Otherwise images with file extensions in caps don't get rendered.
2010-10-12 12:07:07 +02:00
rick
dd7dddddcf
Revert "Gollum::Wiki#pages come back sorted by title, not permalink or the default ordering from git ls-tree."
...
This reverts commit e37a8b9da4 .
2010-10-06 13:17:47 -07:00
rick
4dbe3ea844
ensures rel="nofollow" is added to all anchors if a page is retrieved with a SHA
2010-09-30 17:19:37 -07:00
rick
05a7b4c06c
Allow users to pass anchors to page links.
...
http://github.com/github/gollum/issues/\#issue/21
2010-09-30 15:32:02 -07:00
Tom Preston-Werner
1e2932fd21
Merge remote branch 'henrikh/test-sections'
2010-09-29 13:09:08 -07:00
rick
e37a8b9da4
Gollum::Wiki#pages come back sorted by title, not permalink or the default ordering from git ls-tree.
2010-09-16 09:16:42 -07:00
rick
430436ce8d
handle non strings passed to Page.cname
2010-09-13 15:48:54 -07:00
rick
bf37f44970
pull default name/email for commits from wiki repo's git config
2010-08-30 18:11:03 -07:00
rick
847e6c00a4
Merge branch 'master' of github.com:github/gollum
2010-08-30 18:04:36 -07:00
rick
ba18cbebe8
more tree_map tests
2010-08-30 17:56:03 -07:00
rick
646c8e21b2
Add Wiki#size to efficiently count pages without loading them.
2010-08-30 17:52:20 -07:00
rick
7e2b1fdbc6
Wiki#tree_map_for returns an array of BlobEntry instances
2010-08-30 17:31:19 -07:00
Tom Preston-Werner
db1ccc4525
DRY up test commit details.
2010-08-30 16:38:01 -07:00
Tom Preston-Werner
dddb73672a
Minor readme typo and various whitespace fixups.
2010-08-30 16:38:01 -07:00
Tom Preston-Werner
94f05b0796
Update working dir (if present) when edited via the API. Closes #6 .
2010-08-30 16:37:59 -07:00
Henrik Hansen
959f02b50e
Use correct capitalization of TeX
2010-08-29 14:26:14 +02:00
Henrik Hansen
8301428974
Add sections to clean up markup test code
2010-08-29 10:08:08 +02:00
rick
0500c7e10c
cache the ref => sha lookup
2010-08-24 12:39:26 -07:00
rick
068a902a00
don't modify path names in cached wiki treemaps
2010-08-24 11:47:02 -07:00
rick
d606511fdf
use cached tree map when finding files
2010-08-24 11:29:39 -07:00
rick
cc3d9529cc
add a cached Wiki#tree_map_for method
2010-08-24 11:24:49 -07:00
rick
dd30a7bdc2
fix markup on framed absolute image urls
2010-08-16 15:49:47 -07:00
rick
c7e172f5ca
can't access trees as files
2010-08-16 14:57:39 -07:00
rick
c69a5f80dd
prevent Gollum::Wiki instances from creating new pages that overwrite pages with the same name.
2010-08-16 07:56:46 -07:00
rick
ee04dd84aa
normalize commit hashes so they at least show 'anonymous' if no git user is set.
2010-08-16 07:36:32 -07:00
Chris Hoffman
4e3b4e23da
Ruby 1.9 compatibility
...
* Adds current directory to load path for tests because 1.9 does not
* Aliases String#lines to String#to_a under 1.8 to match 1.9 behavior
* Sets encoding magic comment in test file with characters outside ascii
* Require 'ostruct' explicitly
This depends on a patch to Grit to have full functionality through the
whole stack.
2010-08-14 21:37:00 +00:00
rick
8a189d4d53
Gollum::Page#versions sets :follow to false by default, and skips pagination options.
2010-08-05 11:28:00 -07:00
rick
1e96ce6e1e
Track a page's versions across renames
2010-08-04 15:57:37 -07:00
rick
760d9c1640
Wiki#update_page takes a name parameter for renames
2010-08-02 15:39:04 -07:00
rick
f0b22390fb
Change Page#name to Page#filename, and add extension-less Page#name
2010-08-02 15:32:05 -07:00
Tom Preston-Werner
206c8b0712
Implement Wiki#preview_page.
2010-07-31 14:29:54 -04:00
Tom Preston-Werner
38b8700651
Code hilighter needs to handle blanks lines.
2010-07-29 21:57:30 -04:00
Tom Preston-Werner
f23d093d6f
Strip code indents (two spaces or one tab) if present.
2010-07-29 21:45:17 -04:00
Tom Preston-Werner
afcaacbdf6
Footers should have a nil #footer.
2010-07-26 16:48:52 -07:00
Tom Preston-Werner
2bc9b2ec86
Implement Page#footer and display footer in frontend.
2010-07-26 16:33:19 -07:00
Tom Preston-Werner
d37d57596b
Support TeX-style math equations via MathJax.
2010-07-25 22:40:09 -07:00
rick
00227a118b
pass Grit::Commit to Gollum::Page instances from Gollum::Wiki#pages
2010-07-23 17:39:33 -07:00
rick
bd3721d4d3
fix markup tests for nokogiri 1.4.2
2010-07-23 16:36:57 -07:00
rick
a1db39195c
fetching pages from a bad version returns nil
2010-07-23 16:36:49 -07:00
rick
88934902fd
fix markup test errors
2010-07-22 20:20:12 -07:00
Tom Preston-Werner
a5d460636d
Make Wiki#page case insensitive.
2010-07-22 16:06:33 -07:00
Tom Preston-Werner
1af9898b4d
Implement Page#title.
2010-07-22 15:31:58 -07:00
Tom Preston-Werner
9e917e235a
Support external links.
2010-07-20 22:44:39 -05:00
Tom Preston-Werner
8221bd6321
Fix file link with external path.
2010-07-20 22:26:13 -05:00
Tom Preston-Werner
8595ca5645
Fix tests and handle touching tags.
2010-07-20 22:22:22 -05:00
rick
5135de1c3f
when linking images, assume '.' is the root path
2010-07-14 13:42:21 -07:00
rick
ecbb902e62
Gollum::Markup uses Wiki#base_path when linking images/files
2010-07-14 13:32:32 -07:00
rick
6bd375de2e
Wiki#pages only returns pages
2010-07-14 12:26:51 -07:00
Tom Preston-Werner
90ba8476b2
Allow changine of format in Wiki#update_page.
2010-07-13 15:31:50 -07:00
rick
7c380b15f5
use regex since the order of html attrs in formatted output is random
2010-07-12 17:42:24 -07:00