Skip to content

Commit b9a5bab

Browse files
committed
Better solution for fixing #65: Keep default "_static" directory move images directory to _static/images
1 parent 859948f commit b9a5bab

File tree

5 files changed

+4
-6
lines changed

5 files changed

+4
-6
lines changed
File renamed without changes.

docs/source/conf.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
#
1212
# All configuration values have a default; values that are commented out
1313
# serve to show the default.
14-
15-
import os
1614
import sys
1715

1816
# If extensions (or modules to document with autodoc) are in another directory,
@@ -21,7 +19,7 @@
2119
# sys.path.append(os.path.abspath('.'))
2220
from barcode import version
2321

24-
LOGO = os.path.join("images", "pybarcode_small.png")
22+
LOGO = '_static/images/pybarcode_small.png'
2523

2624
# -- General configuration ----------------------------------------------------
2725

@@ -133,7 +131,7 @@
133131
# Add any paths that contain custom static files (such as style sheets) here,
134132
# relative to this directory. They are copied after the builtin static files,
135133
# so a file named "default.css" will overwrite the builtin "default.css".
136-
html_static_path = ['images']
134+
html_static_path = ['_static']
137135

138136
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
139137
# using the given strftime format.

docs/source/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
㊙️ python-barcode's documentation
22
===================================
33

4-
.. image:: /images/pybarcode.png
4+
.. image:: _static/images/pybarcode.png
55

66
Contents
77
--------

docs/source/writers/image.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ python-barcode ImageWriter
33

44
.. versionadded:: 0.4b1
55

6-
Creates barcodes as image. All imagetypes supported by Pillow are availble.
6+
Creates barcodes as image. All imagetypes supported by Pillow are available.
77

88
Special Options
99
---------------

0 commit comments

Comments
 (0)