Skip to content

Commit e4e0df5

Browse files
committed
convert manual to mdbook
manual.adoc to markdown add entire static manual and toc move generated adoc to md in book dir add features add features add assists add config add diagnostics split up book, clean up links update book config add intro remove old docs, add a README clean up ignores add temporary workflow temporary makefile remove workflow remove generated config.md rework generated locations and ignores
1 parent 5acbfd4 commit e4e0df5

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ crates/*/target
1111
/out/
1212
/dump.lsif
1313
.envrc
14+
docs/book/book
15+
docs/book/src/*/generated.md

crates/ide-assists/src/tests/sourcegen.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ r#####"
5555
"sourcegen_assists_docs",
5656
assists.into_iter().map(|it| it.to_string()).collect::<Vec<_>>().join("\n\n"),
5757
);
58-
let dst = project_root().join("docs/book/generated/assists.md");
58+
let dst = project_root().join("docs/book/src/assists/generated.md");
5959
fs::write(dst, contents).unwrap();
6060
}
6161
}

crates/ide-diagnostics/src/tests/sourcegen.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ fn sourcegen_diagnostic_docs() {
1010
let contents =
1111
diagnostics.into_iter().map(|it| it.to_string()).collect::<Vec<_>>().join("\n\n");
1212
let contents = sourcegen::add_preamble("sourcegen_diagnostic_docs", contents);
13-
let dst = project_root().join("docs/book/generated/diagnostic.md");
13+
let dst = project_root().join("docs/book/src/diagnostics/generated.md");
1414
fs::write(dst, contents).unwrap();
1515
}
1616

crates/rust-analyzer/src/config.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2601,7 +2601,7 @@ mod tests {
26012601

26022602
#[test]
26032603
fn generate_config_documentation() {
2604-
let docs_path = project_root().join("docs/book/generated/config.md");
2604+
let docs_path = project_root().join("docs/book/src/configuration/generated.md");
26052605
let expected = ConfigData::manual();
26062606
ensure_file_contents(&docs_path, &expected);
26072607
}

crates/rust-analyzer/tests/slow-tests/sourcegen.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ fn sourcegen_feature_docs() {
1313
",
1414
contents.trim()
1515
);
16-
let dst = sourcegen::project_root().join("docs/book/generated/features.md");
16+
let dst = sourcegen::project_root().join("docs/book/src/features/generated.md");
1717
fs::write(dst, contents).unwrap();
1818
}
1919

docs/book/src/assists/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ particular context. They are usually triggered by a shortcut or by
55
clicking a light bulb icon in the editor. Cursor position or selection
66
is signified by `` character.
77

8-
{{#include ../../generated/assists.md:2:}}
8+
{{#include generated.md:2:}}

docs/book/src/configuration/README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,4 @@ config-related messages. Logs should show both the JSON that
4848

4949
This is the list of config options `rust-analyzer` supports:
5050

51-
52-
{{#include ../../generated/config.md}}
51+
{{#include generated.md}}

docs/book/src/diagnostics/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ can be turned off using the `rust-analyzer.diagnostics.enable`,
1313
To run `cargo clippy` instead of `cargo check`, you can set
1414
`"rust-analyzer.check.command": "clippy"`.
1515

16-
{{#include ../../generated/diagnostic.md:2:}}
16+
{{#include generated.md:2:}}

docs/book/src/features/README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
# Features
22

3-
{{#include ../../generated/features.md:3:}}
4-
3+
{{#include generated.md:3:}}

0 commit comments

Comments
 (0)