diff --git a/crates/plotnik-cli/Cargo.toml b/crates/plotnik-cli/Cargo.toml index 97294716..65c23c1b 100644 --- a/crates/plotnik-cli/Cargo.toml +++ b/crates/plotnik-cli/Cargo.toml @@ -9,6 +9,7 @@ documentation = "https://docs.rs/plotnik-cli" keywords = ["tree-sitter", "query", "ast", "parser", "cli"] categories = ["command-line-utilities", "development-tools"] readme = "../../README.md" +include = ["src/**/*", "Cargo.toml", "docs/REFERENCE.md"] [features] default = [ diff --git a/crates/plotnik-cli/docs/REFERENCE.md b/crates/plotnik-cli/docs/REFERENCE.md new file mode 120000 index 00000000..c40a9113 --- /dev/null +++ b/crates/plotnik-cli/docs/REFERENCE.md @@ -0,0 +1 @@ +../../../docs/REFERENCE.md \ No newline at end of file diff --git a/crates/plotnik-cli/src/commands/docs.rs b/crates/plotnik-cli/src/commands/docs.rs index 89ec6712..d9d3e70f 100644 --- a/crates/plotnik-cli/src/commands/docs.rs +++ b/crates/plotnik-cli/src/commands/docs.rs @@ -8,7 +8,7 @@ pub fn run(topic: Option<&str>) { println!("Usage: plotnik docs "); } Some("reference") => { - println!("{}", include_str!("../../../../docs/REFERENCE.md")); + println!("{}", include_str!("../../docs/REFERENCE.md")); } Some("examples") => { println!("(examples not yet written)");