mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
commit
b9f9b61692
@ -256,6 +256,9 @@ Here is some sample code to accomplish this:
|
|||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
|
from os import path
|
||||||
|
from sphinx.util.fileutil import copy_asset_file
|
||||||
|
|
||||||
def copy_custom_files(app, exc):
|
def copy_custom_files(app, exc):
|
||||||
if app.builder.format == 'html' and not exc:
|
if app.builder.format == 'html' and not exc:
|
||||||
staticdir = path.join(app.builder.outdir, '_static')
|
staticdir = path.join(app.builder.outdir, '_static')
|
||||||
|
Loading…
Reference in New Issue
Block a user