| Conditions | 2 | 
| Total Lines | 9 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | import os  | 
            ||
| 7 | def on_pre_build(config):  | 
            ||
| 8 | cwd = os.getcwd()  | 
            ||
| 9 | path = os.path.abspath(os.path.join(cwd, "docs/gen"))  | 
            ||
| 10 | tree = builder.build(cwd=cwd)  | 
            ||
| 11 | |||
| 12 | published_path = publisher.publish(tree, path, ".md", index=True)  | 
            ||
| 13 | |||
| 14 | if published_path:  | 
            ||
| 15 |         utilities.show("published: {}".format(published_path)) | 
            ||
| 16 |