You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/doc/man/cargo-doc.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,8 @@ cargo-doc --- Build a package's documentation
16
16
Build the documentation for the local package and all dependencies. The output
17
17
is placed in `target/doc` in rustdoc's usual format.
18
18
19
+
Documentation generation is cumulative: existing doc files in the target directory are preserved across different cargo doc invocations. To remove existing generated docs, pass --doc to {{man "cargo-clean" 1}}.
Copy file name to clipboardExpand all lines: src/doc/src/commands/cargo-doc.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,8 @@ cargo-doc --- Build a package's documentation
12
12
Build the documentation for the local package and all dependencies. The output
13
13
is placed in `target/doc` in rustdoc's usual format.
14
14
15
+
Documentation generation is cumulative: existing doc files in the target directory are preserved across different cargo doc invocations. To remove existing generated docs, pass --doc to [cargo-clean(1)](cargo-clean.html).
Copy file name to clipboardExpand all lines: src/etc/man/cargo-doc.1
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,8 @@ cargo\-doc \[em] Build a package\[cq]s documentation
10
10
.SH "DESCRIPTION"
11
11
Build the documentation for the local package and all dependencies. The output
12
12
is placed in \fBtarget/doc\fR in rustdoc\[cq]s usual format.
13
+
.sp
14
+
Documentation generation is cumulative: existing doc files in the target directory are preserved across different cargo doc invocations. To remove existing generated docs, pass \[en]doc to \fBcargo\-clean\fR(1).
0 commit comments