Skip to content

feat: scope-level symbol search #1116

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ jobs:
run: cargo build --all-targets --tests
working-directory: api

- name: Check uncommitted changes
run: git diff --exit-code

- name: Test
run: cargo test
working-directory: api
Expand Down
222 changes: 201 additions & 21 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,6 @@ lazy_static = "1.5.0"
flate2 = "1"
deno_semver = "0.8.0"
pretty_assertions = "1.4.0"

[build-dependencies]
deno_doc = { version = "0.174.0", features = ["comrak"] }
18 changes: 18 additions & 0 deletions api/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// Copyright 2024 the JSR authors. All rights reserved. MIT license.
use std::fs;
use std::path::Path;

fn main() {
let static_dir = Path::new("../frontend/static/ddoc");
fs::create_dir_all(static_dir).unwrap();

fs::write(static_dir.join("style.css"), deno_doc::html::STYLESHEET).unwrap();

fs::write(
static_dir.join("comrak.css"),
deno_doc::html::comrak::COMRAK_STYLESHEET,
)
.unwrap();

fs::write(static_dir.join("script.js"), deno_doc::html::SCRIPT_JS).unwrap();
}
Loading
Loading