mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-03 13:14:30 +03:00
[docs] Add 'img' to static file processing.
This commit is contained in:
parent
30dedc95e5
commit
aabb26e598
|
@ -28,7 +28,7 @@ sub_header = '<li><a href="#{{ anchor }}">{{ title }}</a></li>'
|
||||||
page = open(os.path.join(docs_dir, 'template.html'), 'r').read()
|
page = open(os.path.join(docs_dir, 'template.html'), 'r').read()
|
||||||
|
|
||||||
# Copy static files
|
# Copy static files
|
||||||
for static in ['css', 'js']:
|
for static in ['css', 'js', 'img']:
|
||||||
source = os.path.join(docs_dir, 'static', static)
|
source = os.path.join(docs_dir, 'static', static)
|
||||||
target = os.path.join(html_dir, static)
|
target = os.path.join(html_dir, static)
|
||||||
if os.path.exists(target):
|
if os.path.exists(target):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user