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

TOC is not enabled when TOC exists in HTML but is not specified in the manifest #659

Closed
MurakamiShinyu opened this issue Sep 27, 2020 · 1 comment
Assignees
Labels

Comments

@MurakamiShinyu
Copy link
Member

Vivliostyleで本を作ろう Vol.4 のように、複数のHTMLファイルからなる本の場合、

https://vivliostyle.org/viewer/#src=https://vivliostyle.github.io/vivliostyle_doc/ja/vivliostyle-user-group-vol4/artifacts/content/index.html&bookMode=true

のように、目次要素(<nav role="doc-toc">)が存在する最初のHTMLファイルを指定した場合には目次パネルが有効になる(CLIの場合は、「しおり」付きのPDFが生成される)が、次のように manifest ファイルを使用した場合には有効にならない:

https://vivliostyle.org/viewer/#src=https://vivliostyle.github.io/vivliostyle_doc/ja/vivliostyle-user-group-vol4/manifest.json&bookMode=true

この manifest.json 内に 目次が存在するファイルを "rel": "contents" で指定すれば目次を有効にすることはできる。

しかし、その指定が省略されていても、最初のHTMLファイル内に目次がある場合にはそれを有効にするべきである。

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

No branches or pull requests

1 participant