Commit 740c3a6
committed
Reduce amount of unnecessary recompilation done by sphinx
- Don't clean before running html-noplot (if you want to do a clean
build, just run make clean yourself!)
- Replace filename_pattern with ignore_pattern (with a negative
lookahead assertion). This means that specifying a GALLERY_PATTERN
will also skip parsing all Python files that you don't care about.
This saves several seconds from the no-op doc build.
- Use distutils to only copy rst files if the mtime is newer than the
destination; this (probably) helps Sphinx avoid recompiling these
files when it's useless.
There are some semantic changes in this diff which is why I'm putting
it up for review.
Signed-off-by: Edward Z. Yang <[email protected]>1 parent b511d95 commit 740c3a6
2 files changed
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
112 | 111 | | |
113 | 112 | | |
114 | 113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
66 | | - | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
70 | 81 | | |
71 | 82 | | |
72 | 83 | | |
| |||
78 | 89 | | |
79 | 90 | | |
80 | 91 | | |
81 | | - | |
| 92 | + | |
82 | 93 | | |
83 | 94 | | |
84 | 95 | | |
| |||
0 commit comments