(self)
| 270 | return True |
| 271 | |
| 272 | def updateAPI(self): |
| 273 | req = "update API of the website? (requires {})".format(SPHINXBUILD) |
| 274 | if User.yesNo(req, defaultToYes=True) is False: |
| 275 | return False |
| 276 | |
| 277 | try: |
| 278 | if check_call(shlex.split("{} --version".format(SPHINXBUILD))) != 0: |
| 279 | raise RuntimeError("{} not found".format(SPHINXBUILD)) |
| 280 | except: |
| 281 | print(""" |
| 282 | Oops! you don't have {} installed?" |
| 283 | Cannot update the webite documentation..." |
| 284 | You should install it and manually run:" |
| 285 | $ cd {}" |
| 286 | $ make websitedoc" |
| 287 | Then, commit and push changes of the website.""".format(SPHINXBUILD, DOCSDIR)) |
| 288 | User.pause() |
| 289 | return False |
| 290 | |
| 291 | Git.chdirToRepositoryTopLevel() |
| 292 | if not goTo('website'): |
| 293 | User.pause() |
| 294 | return False |
| 295 | if not Git.isClean: |
| 296 | print("There is WIP in the website repository: stashing") |
| 297 | Git.stash('WIP during offlineimap API import') |
| 298 | |
| 299 | goTo('..') |
| 300 | return True |
| 301 | |
| 302 | def buildLatest(self, version): |
| 303 | Git.chdirToRepositoryTopLevel() |
no test coverage detected