Show More
@@ -26,6 +26,7 b' exclude docs/man/*.1' | |||||
26 | prune docs/attic |
|
26 | prune docs/attic | |
27 | prune docs/build |
|
27 | prune docs/build | |
28 | prune docs/gh-pages |
|
28 | prune docs/gh-pages | |
|
29 | prune docs/dist | |||
29 |
|
30 | |||
30 | # Patterns to exclude from any directory |
|
31 | # Patterns to exclude from any directory | |
31 | global-exclude *~ |
|
32 | global-exclude *~ |
@@ -147,35 +147,6 b" if len(sys.argv) >= 2 and sys.argv[1] in ('sdist','bdist_rpm'):" | |||||
147 | 'cd docs/man && gzip -9c pycolor.1 > pycolor.1.gz'), |
|
147 | 'cd docs/man && gzip -9c pycolor.1 > pycolor.1.gz'), | |
148 | ] |
|
148 | ] | |
149 |
|
149 | |||
150 | # Only build the docs if sphinx is present |
|
|||
151 | try: |
|
|||
152 | import sphinx |
|
|||
153 | except ImportError: |
|
|||
154 | pass |
|
|||
155 | else: |
|
|||
156 | # The Makefile calls the do_sphinx scripts to build html and pdf, so |
|
|||
157 | # just one target is enough to cover all manual generation |
|
|||
158 |
|
||||
159 | # First, compute all the dependencies that can force us to rebuild the |
|
|||
160 | # docs. Start with the main release file that contains metadata |
|
|||
161 | docdeps = ['IPython/core/release.py'] |
|
|||
162 | # Inculde all the reST sources |
|
|||
163 | pjoin = os.path.join |
|
|||
164 | for dirpath,dirnames,filenames in os.walk('docs/source'): |
|
|||
165 | if dirpath in ['_static','_templates']: |
|
|||
166 | continue |
|
|||
167 | docdeps += [ pjoin(dirpath,f) for f in filenames |
|
|||
168 | if f.endswith('.txt') ] |
|
|||
169 | # and the examples |
|
|||
170 | for dirpath,dirnames,filenames in os.walk('docs/example'): |
|
|||
171 | docdeps += [ pjoin(dirpath,f) for f in filenames |
|
|||
172 | if not f.endswith('~') ] |
|
|||
173 | # then, make them all dependencies for the main html docs |
|
|||
174 | to_update.append( |
|
|||
175 | ('docs/dist/index.html', |
|
|||
176 | docdeps, |
|
|||
177 | "cd docs && make dist") |
|
|||
178 | ) |
|
|||
179 |
|
150 | |||
180 | [ target_update(*t) for t in to_update ] |
|
151 | [ target_update(*t) for t in to_update ] | |
181 |
|
152 |
General Comments 0
You need to be logged in to leave comments.
Login now