Paul Baumgart
50e9a42503
fix documentation for Wiki.size
2010-09-02 20:30:13 -07:00
Paul Baumgart
5fcb5d971a
Add support for RFC 1738 special characters in page names.
...
Escape all links and redirects to support this. Some changes to app.rb
necessary for correct routing by Sinatra.
2010-09-01 22:02:19 -07:00
Jon Frisby
e9239050e0
Properly handle pages that exist in sub-dirs in search results
2010-08-31 10:48:10 +02:00
Jon Frisby
50c207ad91
Update gemspec with search files
2010-08-31 10:47:51 +02:00
rick
7c70174725
handle invalid options
2010-08-30 18:50:02 -07:00
rick
e0d234c255
use grit to get the file's mime type, as suggested.
...
http://github.com/github/gollum/commit/6de9ddfd3f79a9cb320aab3c43b8e0a912107b2e#commitcomment-137656
2010-08-30 18:25:48 -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
Jon Frisby
6de9ddfd3f
Make an attempt at setting a proper mime-type when showing a file.
...
Prevents things like having the browser show raw binary data when you have a PDF in your repo.
2010-08-31 09:04:27 +08:00
Jon Frisby
1f8a67598a
Use Grit to determine committer instead of executing a sub-shell and calling the git CLI.
2010-08-31 09:04:27 +08:00
Jon Frisby
515f8610c4
Make --version not cough up a furball.
...
Commit 8c625419b8 moved the require down,
which broke --version.
2010-08-31 08:59:56 +08: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
6dab4f7fe6
Wiki#pages uses the treemap
2010-08-30 17:45:32 -07:00
rick
7e2b1fdbc6
Wiki#tree_map_for returns an array of BlobEntry instances
2010-08-30 17:31:19 -07:00
rick
6f077702e1
Page#find_page_in_this_tree is redundant
2010-08-30 17:04:30 -07:00
Dean Strelau
f4c4b2e49c
Update development dependencies. Closes github#18
...
Tests require a few markdown libraries to pass.
2010-08-30 16:38:01 -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
Sirupsen
6d3b40c1d4
Using Grit instead of backticked bash.
...
A bit unclear what's going on though, would be more explicit to say:
{:count => query}, however Grit::Git#transform_options converts to this
syntax:
`--count='query'` and `git grep` can't take this syntax, it has to be:
`git grep --count query`, and this is why we're using :c, and not
:count. As {:c => query} converts to: `git grep -c 'query'` which works
as expected.
Linked to this commit, for above information in comment.
Updated comment in Wiki.search to link describing commit.
2010-08-29 15:25:04 +02:00
Sirupsen
45eb364a6d
Refactoring of Wiki.search.
2010-08-29 14:30:30 +02:00
Henrik Hansen
959f02b50e
Use correct capitalization of TeX
2010-08-29 14:26:14 +02:00
Henrik Hansen
49d88a0370
Add search API and update frontend
...
The frontend has been updated to use the new search API.
2010-08-29 13:58:06 +02:00
Henrik Hansen
ed41152228
Refactor of search view
2010-08-29 13:54:38 +02:00
Henrik Hansen
294847ed99
Remove display of search code
2010-08-29 13:54:21 +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
3eeed9ba1e
update Wiki#find_page_in_tree to use cached tree map
2010-08-24 12:15:11 -07:00
rick
292f6ec8dc
update Wiki#find_page_in_this_tree to use the new cached tree map.
2010-08-24 11:47:20 -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
74ca65b045
history updates
2010-08-23 16:39:10 -07:00
rick
05283347b0
more descriptive irb output
...
also, code poetry arguments
2010-08-23 16:35:17 -07:00
rick
99995f7364
convert $path global to a gollum_path sinatra setting
2010-08-23 16:16:39 -07:00
rick
8c625419b8
add irb option for the cli script
2010-08-23 16:13:38 -07:00
Henrik Hansen
d1003f5331
Change search-field to use type="search"
...
The search-field will now show with a little magnifying-glass on Webkit
based browsers.
type="search" is part of HTML5.
2010-08-23 16:59:47 +02:00
Tobias Adam
4905ce99da
Add a very rough and dirty search mechanism that uses Git’s grep.
2010-08-22 23:17:54 +02:00
Tom Preston-Werner
48b143c6ed
Update history for massive performance optimization.
2010-08-19 18:21:26 -07:00
Tom Preston-Werner
dae2e0c79c
Remove obsolete tree map methods.
2010-08-19 17:40:05 -07:00
Tom Preston-Werner
9b32d3bfb1
Update Wiki#delete_page to use Index#read_tree awesomes.
2010-08-19 17:37:49 -07:00
Tom Preston-Werner
b1fc173a3f
Update Wiki#update_page to use Index#read_tree goodness.
2010-08-19 17:35:18 -07:00
Tom Preston-Werner
6a53e3d037
Clean up some whitespace.
2010-08-19 15:43:26 -07:00
Tom Preston-Werner
15879a5a88
Use Index#read_tree for Wiki#write_page instead of rebuilding the entire index.
2010-08-19 15:42:36 -07:00
rick
c6e2acbf62
history is written by the victors
2010-08-16 17:39:17 -07:00
rick
28a29f49f2
Gollum::Wiki#add_to_tree_map updates pages if a file with the matching name + extension exists
2010-08-16 17:37:53 -07:00
Tom Preston-Werner
acdb04ba4e
Handle duplicate page error in frontend. Closes #10 .
2010-08-16 16:54:01 -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