Skip to content

Commit dda45cf

Browse files
committed
docs: move assets to correct path
1 parent 694d636 commit dda45cf

File tree

11 files changed

+8
-208
lines changed

11 files changed

+8
-208
lines changed

cli/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ fn main() {
5252

5353
fn web_playground_files_present() -> bool {
5454
let paths = [
55-
"../docs/assets/js/playground.js",
55+
"../docs/src/assets/js/playground.js",
5656
"../lib/binding_web/tree-sitter.js",
5757
"../lib/binding_web/tree-sitter.wasm",
5858
];

cli/src/playground.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ macro_rules! optional_resource {
3333
};
3434
}
3535

36-
optional_resource!(get_playground_js, "docs/assets/js/playground.js");
36+
optional_resource!(get_playground_js, "docs/src/assets/js/playground.js");
3737
optional_resource!(get_lib_js, "lib/binding_web/tree-sitter.js");
3838
optional_resource!(get_lib_wasm, "lib/binding_web/tree-sitter.wasm");
3939

docs/assets/css/style.scss

Lines changed: 0 additions & 203 deletions
This file was deleted.

docs/book.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ src = "src"
99
title = "Tree-sitter"
1010

1111
[output.html]
12-
additional-css = ["assets/css/playground.css"]
13-
additional-js = ["assets/js/playground.js"]
12+
additional-css = ["src/assets/css/playground.css"]
13+
additional-js = ["src/assets/js/playground.js"]
1414
git-repository-url = "https://github.com/tree-sitter/tree-sitter"
1515
git-repository-icon = "fa-github"
1616
edit-url-template = "https://github.com/tree-sitter/tree-sitter/edit/master/docs/{path}"

docs/assets/css/playground.css renamed to docs/src/assets/css/playground.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,10 @@ input[type="checkbox"]:focus {
251251
}
252252

253253
/* Dark Theme Overrides */
254-
.ayu, .coal, .navy {
254+
.ayu,
255+
.coal,
256+
.navy {
257+
255258
& #language-select,
256259
& .select-button {
257260
background-color: var(--dark-bg);
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)