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

How to add the custom root page feature? #25

Open
sandrokeil opened this issue Jan 19, 2016 · 2 comments
Open

How to add the custom root page feature? #25

sandrokeil opened this issue Jan 19, 2016 · 2 comments

Comments

@sandrokeil
Copy link
Collaborator

@pmjones I want to add the custom root page feature. What is the best way?

  1. Simply allow index as content page and if set, create a toc.html file
  2. Add a new bookdown.json entry rootPage and use it as index.html and create a toc.html file
@pmjones
Copy link
Contributor

pmjones commented Jan 24, 2016

Yes, this one could be handled a lot of different ways.

What I had in mind what that if there is an "index" content page, either put the TOC above it on the same page, with the rest of the "index" page content. (What happens in Docbook is that the TOC goes at the top of the page, and that TOC includes the contents of that page.) However, there might be better variations of that.

Hope that makes sense.

@sandrokeil
Copy link
Collaborator Author

I think if someone want to use an index page, he/she don't want to have the TOC on this page. In my use case, I want a custom start page with an individual overview or description.

So No. 1 is good for me. It's also possible to create an own template with individual layout. I think this is the easiest way for the user.

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

2 participants