Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow a hierarchical page namespace #116

Closed
cubranic opened this issue Feb 8, 2011 · 10 comments
Closed

Allow a hierarchical page namespace #116

cubranic opened this issue Feb 8, 2011 · 10 comments

Comments

@cubranic
Copy link

cubranic commented Feb 8, 2011

There is a disconnect between the file and wiki page namespaces: files can be placed into a hierarchy of directories, but when Gollum processes them into wiki pages, they are flattened and the hierarchical organization is lost.

Is this considered a feature and unlikely to change, or just a temporary limitation of the current implementation?

@technoweenie
Copy link
Contributor

This is by design. Wikis pages are on a flat namespace.

@cubranic
Copy link
Author

cubranic commented Feb 8, 2011

That's too bad, but I can see why you wouldn't want to change it.

@technoweenie
Copy link
Contributor

We wanted the wiki to be SIMPLE (though, the code to look up subdirectories ends up being more complex). A flat namespace works well enough for wikipedia, so why not :)

I understand people have more specific needs, such as hierarchical knowledge bases and CMS stuff. I'd recommend forking Gollum. Maybe there's some way you can start a similar project that just used similar bits in Gollum. I'm happy to help refactor that stuff to make things easier... or maybe it's better off in its own separate project?

@cubranic
Copy link
Author

Fair enough. Although, encyclopedias and dictionaries always use a flat list of terms, while most technical documentation that I've seen is organized into a hierarchy of sections. (Cf. man 1 open and man 2 open.)

@nyerup
Copy link

nyerup commented Feb 9, 2012

I've made a fork with a proof of concept of a hierarchical namespace, based on the folder structure of the repo. This is available here, and I'll appreciate comments and bug reports.

This is just a quick hack, enabling me to test Gollum for a specific documentation project, and needless to say, this will need to be implemented better if the codebase actually is to be maintained.

@technoweenie
Copy link
Contributor

This is a specific thing we designed against, actually. I don't think
we'll be adding it any time soon. You're more than welcome to
maintain a fork of course (though we'd appreciate it if you changed
the name for releases to avoid confusion).

@chhabrakadabra
Copy link

Why not have some sort of a flag that can be turned on by people who want hierarchical structure. Let the default behavior be a simple flat structure (in line with keeping it SIMPLE) but let people who like structure have it.

@bootstraponline
Copy link
Member

@chhabrakadabra The gollum gem has supported directories for a while.

@chhabrakadabra
Copy link

@bootstraponline is Github running an older version maybe? I have wiki pages arranged in a heirarchy, but their urls are all of the format ".../wiki/page-name.md" instead of ".../wiki/path/to/directory/page-name.md".

@davispuh
Copy link

davispuh commented Mar 5, 2013

yes, Github wiki isn't up-to-date and have issues look #380

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants