Move pages under tldr, lint run.sh, update docs

This commit is contained in:
2024-02-21 13:58:43 +02:00
parent 3d653cc7e6
commit 2c475fa62d
4806 changed files with 36 additions and 35 deletions

25
tldr/rustdoc Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# rustdoc
> Generate documentation for a Rust crate.
> More information: <https://doc.rust-lang.org/stable/rustdoc>.
- Generate documentation from the crate's root:
`rustdoc {{src/lib.rs}}`
- Pass a name for the project:
`rustdoc {{src/lib.rs}} --crate-name {{name}}`
- Generate documentation from Markdown files:
`rustdoc {{path/to/file.md}}`
- Specify the output directory:
`rustdoc {{src/lib.rs}} --out-dir {{path/to/output_directory}}`