-
Notifications
You must be signed in to change notification settings - Fork 76
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
WIP: Remove module list in the sidebar #444
base: main
Are you sure you want to change the base?
Conversation
这会导致一堆警告,因为这些文件都没有被包含到文档里。 |
This comment was written by the Continuous Documentation bot!
|
See sphinx-doc/sphinx#5281. We could try two solutions based on https://stackoverflow.com/questions/15249340/warning-document-isnt-included-in-any-toctree-for-included-file.
|
由于没有被加到 toctree 里,所有模块的文档都会变成“野”文件。在显示上会有不同:
基于同样的原因,我猜测所有模块都不会被显示到PDF里。 |
api/index | ||
module/index | ||
api/index |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #442 (comment):
api也可以放在模块后面,一来我们很少看api 二来英文放在后面显得和谐
我在 e83c630 中将 |
还是表现为“野”文档,虽然网址没问题,警告也消失了。PDF 估计也有问题。 还是需要把所有文档包含在 TOC 里,所以按照类型包含每个模块以减少 TOC 的长度? |
I reverted the changes. How about generating some |
No, do not break the URLs. |
@@ -84,6 +84,7 @@ | |||
html_theme_options = { | |||
"prev_next_buttons_location": "bottom", | |||
"sticky_navigation": False, | |||
"includehidden": False, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
加这个设置的话,所有使用 :hidden:
的文件都不会显示在左侧了,但是目前以下文件使用了 :hidden:
:
index.rst
: 这个文档都没有目录了 😄dataset/index.rst
migrating/index.rst
module/index.rst
option/index.rst
proj/index.rst
为了左侧目录也能显示,就要在这些文件里去掉 hidden
,但这样的话,页面里就会有目录。
看来必须二选一了。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个问题仍没有办法解决吗?
gmt 官方也是用的 "includehidden": False
,或许我们应该和官方一致,减少维护负担
Fixes #443.