Robustness in building the doc