mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Add and document html_extra_path option.
This commit is contained in:
parent
88c72be190
commit
57aceed4ed
@ -509,10 +509,11 @@ that use Sphinx' HTMLWriter class.
|
||||
|
||||
.. confval:: html_static_path
|
||||
|
||||
A list of paths that contain custom static files (such as style sheets or
|
||||
script files). Relative paths are taken as relative to the configuration
|
||||
directory. They are copied to the output directory after the theme's static
|
||||
files, so a file named :file:`default.css` will overwrite the theme's
|
||||
A list of paths that contain custom static files (such as style
|
||||
sheets or script files). Relative paths are taken as relative to
|
||||
the configuration directory. They are copied to the output's
|
||||
:file:`_static` directory after the theme's static files, so a file
|
||||
named :file:`default.css` will overwrite the theme's
|
||||
:file:`default.css`.
|
||||
|
||||
.. versionchanged:: 0.4
|
||||
@ -521,6 +522,15 @@ that use Sphinx' HTMLWriter class.
|
||||
.. versionchanged:: 1.0
|
||||
The entries in :confval:`html_static_path` can now be single files.
|
||||
|
||||
.. 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.
|
||||
|
||||
.. versionadded:: 1.2
|
||||
|
||||
.. confval:: html_last_updated_fmt
|
||||
|
||||
If this is not the empty string, a 'Last updated on:' timestamp is inserted
|
||||
|
@ -86,6 +86,7 @@ class Config(object):
|
||||
html_logo = (None, 'html'),
|
||||
html_favicon = (None, 'html'),
|
||||
html_static_path = ([], 'html'),
|
||||
html_extra_path = ([], 'html'),
|
||||
# the real default is locale-dependent
|
||||
html_last_updated_fmt = (None, 'html'),
|
||||
html_use_smartypants = (True, 'html'),
|
||||
|
@ -171,6 +171,11 @@ html_theme = 'default'
|
||||
# so a file named "default.css" will overwrite the builtin "default.css".
|
||||
html_static_path = ['%(dot)sstatic']
|
||||
|
||||
# Add any extra paths that contain custom files (such as robots.txt or
|
||||
# .htaccess) here, relative to this directory. These files are copied
|
||||
# directly to the root of the documentation.
|
||||
#html_extra_path = []
|
||||
|
||||
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
|
||||
# using the given strftime format.
|
||||
#html_last_updated_fmt = '%%b %%d, %%Y'
|
||||
|
Loading…
Reference in New Issue
Block a user