@@ -26,18 +26,16 @@ option.</dd>
2626
2727
2828<dt class =" option-term " id =" option-cargo-doc---no-deps " ><a class =" option-anchor " href =" #option-cargo-doc---no-deps " ></a ><code >--no-deps</code ></dt >
29- <dd class =" option-desc " >
30- Do not build documentation for dependencies.
31-
32- <p ><strong >Note:</strong > Cargo keeps docs cumulatively. If you’ve already run
33- <code >cargo doc</code > (which generated dependency docs), then later run
34- <code >cargo doc --no-deps</code >, Cargo will skip rebuilding (and won’t delete)
35- those existing docs. To truly remove old dependency docs, either:
36-
37- 1 . Run <code >cargo clean --doc</code > before <code >cargo doc --no-deps</code >, or
38- 2 . Manually delete the unwanted folders under <code >target/doc/</code >.
39- </p >
40- </dd >
29+ <dd class =" option-desc " >Do not build documentation for dependencies.</p >
30+ <p ><strong >Note:</strong > Documentation is <em >cumulative</em >. If you’ve already run
31+ <code >cargo doc</code > (including dependency docs), and later run
32+ <code >cargo doc --no-deps</code >, Cargo will skip deleting or rebuilding those
33+ old dependency docs. To remove them, you can either:</p >
34+ <ol >
35+ <li >Run <code >cargo clean --doc</code > before <code >cargo doc --no-deps</code >, or</li >
36+ <li >Manually delete the unwanted folders under <code >target/doc/</code >.</li >
37+ </ol ></dd >
38+
4139
4240<dt class =" option-term " id =" option-cargo-doc---document-private-items " ><a class =" option-anchor " href =" #option-cargo-doc---document-private-items " ></a ><code >--document-private-items</code ></dt >
4341<dd class =" option-desc " >Include non-public items in the documentation. This will be enabled by default if documenting a binary target.</dd >
0 commit comments