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