mirror of https://github.com/Wilfred/difftastic/
Merge pull request #370 from Yeegsing/translation
manual's translation of zh-CN versionpull/392/head
commit
4fa09c4cdf
@ -0,0 +1 @@
|
||||
book
|
||||
@ -0,0 +1,20 @@
|
||||
[book]
|
||||
authors = ["Wilfred Hughes"]
|
||||
language = "en"
|
||||
multilingual = false
|
||||
src = "src"
|
||||
title = "Difftastic Manual"
|
||||
description = "The official manual for difftastic, the syntactic differ"
|
||||
|
||||
[output.html]
|
||||
git-repository-url = "https://github.com/wilfred/difftastic"
|
||||
|
||||
[output.html.redirect]
|
||||
"/getting_started.html" = "./installation.html"
|
||||
"/upstream_parsers.html" = "/languages_supported.html"
|
||||
|
||||
[output.html.playground]
|
||||
copyable = false
|
||||
|
||||
[preprocessor.replace-version-placeholder]
|
||||
command = "./replace_version_placeholder.sh"
|
||||
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
DFT_VERSION=$(cargo read-manifest | jq -r .version)
|
||||
|
||||
jq .[1] | jq '.sections[0].Chapter.content |= sub("DFT_VERSION_HERE"; "'$DFT_VERSION'")'
|
||||
@ -0,0 +1,17 @@
|
||||
# 总结
|
||||
|
||||
- [简介](./introduction.md)
|
||||
- [安装](./installation.md)
|
||||
- [使用](./usage.md)
|
||||
- [Git](./git.md)
|
||||
- [Mercurial](./mercurial.md)
|
||||
- [支持语言](./languages_supported.md)
|
||||
- [解析](./parsing.md)
|
||||
- [差异分析](./diffing.md)
|
||||
- [棘手的例子](./tricky_cases.md)
|
||||
- [贡献](./contributing.md)
|
||||
- [解析器依赖库](./parser_vendoring.md)
|
||||
- [添加解析器](./adding_a_parser.md)
|
||||
- [词典](./glossary.md)
|
||||
- [其它项目](./alternative_projects.md)
|
||||
- [树状差异分析](./tree_diffing.md)
|
||||
@ -0,0 +1,3 @@
|
||||
# 其它项目
|
||||
|
||||
有许多不同的工具可以比较文件。本说明书的这一个部分讨论了其他影响到Difftastic的工具。
|
||||
@ -0,0 +1,55 @@
|
||||
# 支持语言
|
||||
|
||||
本页列出了 difftastic 支持的所有语言。你也可以用`difft --list-languages`查看你当前安装的版本所支持的语言。
|
||||
|
||||
## 编程语言
|
||||
|
||||
| 语言 | 使用的解析器 |
|
||||
|-----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
||||
| Bash | [tree-sitter/tree-sitter-bash](https://github.com/tree-sitter/tree-sitter-bash) |
|
||||
| C | [tree-sitter/tree-sitter-c](https://github.com/tree-sitter/tree-sitter-c) |
|
||||
| C++ | [tree-sitter/tree-sitter-cpp](https://github.com/tree-sitter/tree-sitter-cpp) |
|
||||
| C# | [tree-sitter/tree-sitter-c-sharp](https://github.com/tree-sitter/tree-sitter-c-sharp) |
|
||||
| Clojure | [sogaiu/tree-sitter-clojure](https://github.com/sogaiu/tree-sitter-clojure) ([branched](https://github.com/sogaiu/tree-sitter-clojure/tree/issue-21)) |
|
||||
| CMake | [uyha/tree-sitter-cmake](https://github.com/uyha/tree-sitter-cmake) |
|
||||
| Common Lisp | [theHamsta/tree-sitter-commonlisp](https://github.com/theHamsta/tree-sitter-commonlisp) |
|
||||
| Dart | [UserNobody14/tree-sitter-dart](https://github.com/UserNobody14/tree-sitter-dart) |
|
||||
| Elixir | [elixir-lang/tree-sitter-elixir](https://github.com/elixir-lang/tree-sitter-elixir) |
|
||||
| Elm | [elm-tooling/tree-sitter-elm](https://github.com/elm-tooling/tree-sitter-elm) |
|
||||
| Elvish | [ckafi/tree-sitter-elvish](https://github.com/ckafi/tree-sitter-elvish) |
|
||||
| Emacs Lisp | [wilfred/tree-sitter-elisp](https://github.com/Wilfred/tree-sitter-elisp) |
|
||||
| Gleam | [gleam-lang/tree-sitter-gleam](https://github.com/gleam-lang/tree-sitter-gleam) |
|
||||
| Go | [tree-sitter/tree-sitter-go](https://github.com/tree-sitter/tree-sitter-go) |
|
||||
| Hack | [slackhq/tree-sitter-hack](https://github.com/slackhq/tree-sitter-hack) |
|
||||
| Haskell | [tree-sitter/tree-sitter-haskell](https://github.com/tree-sitter/tree-sitter-haskell) |
|
||||
| Janet | [sogaiu/tree-sitter-janet-simple](https://github.com/sogaiu/tree-sitter-janet-simple) |
|
||||
| Java | [tree-sitter/tree-sitter-java](https://github.com/tree-sitter/tree-sitter-java) |
|
||||
| JavaScript, JSX | [tree-sitter/tree-sitter-javascript](https://github.com/tree-sitter/tree-sitter-javascript) |
|
||||
| Julia | [tree-sitter/tree-sitter-julia](https://github.com/tree-sitter/tree-sitter-julia) |
|
||||
| Kotlin | [fwcd/tree-sitter-kotlin](https://github.com/fwcd/tree-sitter-kotlin) |
|
||||
| Lua | [nvim-treesitter/tree-sitter-lua](https://github.com/nvim-treesitter/tree-sitter-lua) |
|
||||
| Make | [alemuller/tree-sitter-make](https://github.com/alemuller/tree-sitter-make) |
|
||||
| Nix | [cstrahan/tree-sitter-nix](https://github.com/cstrahan/tree-sitter-nix) |
|
||||
| OCaml | [tree-sitter/tree-sitter-ocaml](https://github.com/tree-sitter/tree-sitter-ocaml) |
|
||||
| Perl | [ganezdragon/tree-sitter-perl](https://github.com/ganezdragon/tree-sitter-perl) |
|
||||
| PHP | [tree-sitter/tree-sitter-php](https://github.com/tree-sitter/tree-sitter-php) |
|
||||
| Python | [tree-sitter/tree-sitter-python](https://github.com/tree-sitter/tree-sitter-python) |
|
||||
| Ruby | [tree-sitter/tree-sitter-ruby](https://github.com/tree-sitter/tree-sitter-ruby) |
|
||||
| Rust | [tree-sitter/tree-sitter-rust](https://github.com/tree-sitter/tree-sitter-rust) ([forked](https://github.com/Wilfred/tree-sitter-rust/tree/non_special_token)) |
|
||||
| Scala | [tree-sitter/tree-sitter-scala](https://github.com/tree-sitter/tree-sitter-scala) |
|
||||
| SQL | [m-novikov/tree-sitter-sql](https://github.com/m-novikov/tree-sitter-sql) |
|
||||
| Swift | [alex-pinkus/tree-sitter-swift](https://github.com/alex-pinkus/tree-sitter-swift) |
|
||||
| TypeScript, TSX | [tree-sitter/tree-sitter-typescript](https://github.com/tree-sitter/tree-sitter-typescript) |
|
||||
| Zig | [maxxnino/tree-sitter-zig](https://github.com/maxxnino/tree-sitter-zig) |
|
||||
|
||||
## 结构化文本格式
|
||||
|
||||
| 语言 | 使用的解析器 |
|
||||
|----------|-----------------------------------------------------------------------------------|
|
||||
| CSS | [tree-sitter/tree-sitter-css](https://github.com/tree-sitter/tree-sitter-css) |
|
||||
| HCL | [MichaHoffmann/tree-sitter-hcl](https://github.com/MichaHoffmann/tree-sitter-hcl) |
|
||||
| HTML | [tree-sitter/tree-sitter-html](https://github.com/tree-sitter/tree-sitter-html) |
|
||||
| JSON | [tree-sitter/tree-sitter-json](https://github.com/tree-sitter/tree-sitter-json) |
|
||||
| TOML | [ikatyang/tree-sitter-toml](https://github.com/ikatyang/tree-sitter-toml) |
|
||||
| YAML | [ikatyang/tree-sitter-yaml](https://github.com/ikatyang/tree-sitter-yaml) |
|
||||
|
||||
@ -0,0 +1,2 @@
|
||||
User-agent: *
|
||||
Allow: /
|
||||
Loading…
Reference in New Issue