擅长:python、mysql、java
<p>在<a href="http://sphinx-doc.org/config.html#id3" rel="nofollow">The build configuration file</a>的脚注中:</p>
<blockquote>
<p>A note on available globbing syntax: you can use the standard shell
constructs *, ?, [...] and [!...] with the feature that these
all don’t match slashes. A double star ** can be used to match any
sequence of characters including slashes.</p>
</blockquote>
<p>因此,以下内容将完成我的目标(如果可用语法有更简洁的方法,请告诉我):</p>
<pre><code>html_sidebars = {'**[!i][!n][!d][!e][!x]': ['non-index-sidebar.html'],
'**index': ['index-sidebar.html'],
}
</code></pre>