refactor(web): rename tree-sitter.js to web-tree-sitter.js
This is not breaking for consumers of the web bindings, nor the playground as both filenames will be kept in the .github.io repo
This commit is contained in:
parent
74d7ca8582
commit
a40265cbeb
19 changed files with 853 additions and 374 deletions
|
|
@ -197,7 +197,7 @@ and the tree-sitter module is fetched from [here][js url]. This, along with the
|
|||
[go package]: https://pkg.go.dev/github.com/tree-sitter/go-tree-sitter
|
||||
[go ts]: https://github.com/tree-sitter/go-tree-sitter
|
||||
[highlight crate]: https://crates.io/crates/tree-sitter-highlight
|
||||
[js url]: https://tree-sitter.github.io/tree-sitter.js
|
||||
[js url]: https://tree-sitter.github.io/web-tree-sitter.js
|
||||
[lib crate]: https://crates.io/crates/tree-sitter
|
||||
[mdBook]: https://rust-lang.github.io/mdBook
|
||||
[mdbook cli]: https://rust-lang.github.io/mdBook/guide/installation.html
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@ you must use at least one capture, like <code>(node_name) @capture-name</code></
|
|||
|
||||
<script>LANGUAGE_BASE_URL = "https://tree-sitter.github.io";</script>
|
||||
<script type="module">
|
||||
import * as TreeSitter from 'https://tree-sitter.github.io/tree-sitter.js';
|
||||
import * as TreeSitter from 'https://tree-sitter.github.io/web-tree-sitter.js';
|
||||
window.TreeSitter = TreeSitter;
|
||||
setTimeout(() => window.initializePlayground({local: false}), 1);
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue