rubyworks / smeagol

Read-Only Gollum Server
http://rubyworks.github.com/smeagol
Other
92 stars 5 forks source link

No support for directories #53

Open chkelly opened 11 years ago

chkelly commented 11 years ago

Gollum has support for directories in newer versions.

When use smeagol and attempting to access a page that exists in a directory sinatra 404s

pearofducks commented 11 years ago

Do you just mean something like the following using folders, or another feature?

\ gollum-docs-folder
 |- Home.md
 \ Test_Folder
  |- Test.md
chkelly commented 11 years ago

Yep exactly that.

pearofducks commented 11 years ago

Hmm...I'm able to get to Test.md just fine in the above example. Are you doing:

http://example.server.com/Test or http://example.server.com/Test.md or http://example.server.com/Test_Folder/...


Otherwise, Gollum supports directories, but not explicitly referencing them (or at least what I can see right now in Gollum HEAD).

For the above example tree...

Gollum behavior:

Smeagol behavior:

apackeer commented 10 years ago

I'm having the same issue.

I have:

\- wiki
    |- Home.md
    \- getting-started-guide
        |- _Sidebar.md
        |- getting-started-guide.md

In my Home.md i have a link like this:

[[Getting Started Guide|getting-started-guide]]

Works fine in Gollum, but in smeagol i get Sinatra doesn’t know this ditty.

Url after clicking on link shows http://localhost:4567/getting-started-guide/getting-started-guide

Terminal window for smeagol preview shows:

localhost - - [14/Aug/2014:09:07:53 EST] "GET /getting-started-guide/getting-started-guide HTTP/1.1" 404 521
http://localhost:4567/ -> /getting-started-guide/getting-started-guide
localhost - - [14/Aug/2014:09:07:53 EST] "GET /__sinatra__/404.png HTTP/1.1" 404 497
http://localhost:4567/getting-started-guide/getting-started-guide -> /__sinatra__/404.png
openhoat commented 10 years ago

+1: Same for me, under root directory of the project, subdirectories aren't supported, it always results in a 404

tel commented 9 years ago

:+1: