Update self-contained document.