DocumentUp icon indicating copy to clipboard operation
DocumentUp copied to clipboard

multiple pages?

Open lookfirst opened this issue 13 years ago • 12 comments
trafficstars

This looks great, but I organize my documentation across multiple pages. I don't want to stick everything in a single file. Anyway that you can support that in the future?

lookfirst avatar Jan 25 '12 21:01 lookfirst

Yes most likely. I'm already developing new features and enhancements.

jeromegn avatar Jan 25 '12 21:01 jeromegn

Multi page support will be awesome. Thanks for great work .

neerajsingh0101 avatar Feb 02 '12 14:02 neerajsingh0101

It would be awesome if multi-page support included GitHub wiki pages as well.

alganet avatar Feb 03 '12 20:02 alganet

+1 for this. Any ETA? If it helps I would be willing to throw in a donation for this.

taylorotwell avatar Feb 06 '12 17:02 taylorotwell

Here's my thought on this: You could "mount" pages.

Definitely would be in the documentup.json config, maybe like so:

{
  "mount": [
    "/api": "/docs/api.md",
    "/man-pages": "/docs/man.md"
  ]
}

Thoughts?

The only reason this isn't "automatic" (eg: visiting /something would look for something.md or /something/readme.md) is because it would be harder to know when to recompile. I'd have to poll Github for changes every x times. With the config I just know exactly when to recompile the pages. (if you have a post-receive hook installed, which you should!)

jeromegn avatar Feb 06 '12 17:02 jeromegn

+1

fd avatar Feb 06 '12 17:02 fd

+1 looks awesome

neerajsingh0101 avatar Feb 06 '12 17:02 neerajsingh0101

The "mount" option looks good! I take it the "value" side (/docs/api.md) would correspond to the path within the Github repo?

Might also need a way to mount the sidebar to a specific file or something too?

taylorotwell avatar Feb 06 '12 17:02 taylorotwell

Yes, need to think about this.

Also have to keep almost the same UX for repos that don't have multiple pages of docs.

jeromegn avatar Feb 06 '12 17:02 jeromegn

+1 Would love to see this for our docs at https://github.com/Sendicate/sendicate-docs

chadyj avatar May 08 '13 16:05 chadyj

If anybody is still watching this: technically you can now point to subpages and it will render them. Not sure how well though, still a work in progress.

jeromegn avatar Jun 17 '15 03:06 jeromegn

Is there an example of adding sub-page links to the navigation menu?

brylie avatar Sep 09 '15 12:09 brylie