mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Set up initial test.
This commit is contained in:
parent
57aceed4ed
commit
28873bfa6a
@ -524,10 +524,14 @@ that use Sphinx' HTMLWriter class.
|
||||
|
||||
.. confval:: html_extra_path
|
||||
|
||||
A list of paths that contain extra files (such as
|
||||
:file:`robots.txt` or :file:`.htaccess`). Relative paths are taken
|
||||
as relative to the configuration directory. They are copied to the
|
||||
output directory, and will overwrite any existing generated file.
|
||||
A list of paths that contain extra files not directly related to
|
||||
the documentation, such as :file:`robots.txt` or :file:`.htaccess`.
|
||||
Relative paths are taken as relative to the configuration
|
||||
directory. They are copied to the output directory. They will
|
||||
overwrite any existing file of the same name.
|
||||
|
||||
As these files are not meant to be built, they are automatically added to
|
||||
:confval:`exclude_patterns`.
|
||||
|
||||
.. versionadded:: 1.2
|
||||
|
||||
|
@ -335,6 +335,7 @@ class BuildEnvironment:
|
||||
"""
|
||||
matchers = compile_matchers(
|
||||
config.exclude_patterns[:] +
|
||||
config.html_extra_path +
|
||||
config.exclude_trees +
|
||||
[d + config.source_suffix for d in config.unused_docs] +
|
||||
['**/' + d for d in config.exclude_dirnames] +
|
||||
|
@ -38,6 +38,7 @@ html_sidebars = {'**': 'customsb.html',
|
||||
'contents': ['contentssb.html', 'localtoc.html'] }
|
||||
html_style = 'default.css'
|
||||
html_static_path = ['_static', 'templated.css_t']
|
||||
html_extra_path = ['robots.txt']
|
||||
html_last_updated_fmt = '%b %d, %Y'
|
||||
html_context = {'hckey': 'hcval', 'hckey_co': 'wrong_hcval_co'}
|
||||
|
||||
|
2
tests/root/robots.txt
Normal file
2
tests/root/robots.txt
Normal file
@ -0,0 +1,2 @@
|
||||
User-agent: *
|
||||
Disallow: /cgi-bin/
|
Loading…
Reference in New Issue
Block a user