-
Notifications
You must be signed in to change notification settings - Fork 0
docs: add Chinese translation and support multi-language structure #182
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
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,70 @@ | ||
| --- | ||
| layout: home | ||
|
|
||
| hero: | ||
| name: "DS" | ||
| text: "A Deductive System" | ||
| tagline: A deductive system for logical inference, implemented in C++ with bindings for Python and TypeScript/JavaScript | ||
| actions: | ||
| - theme: brand | ||
| text: Quick Start | ||
| link: /en/getting-started/quickstart | ||
| - theme: alt | ||
| text: View on GitHub | ||
| link: https://github.com/USTC-KnowledgeComputingLab/ds | ||
|
|
||
| features: | ||
| - title: Multi-Language Support | ||
| details: Seamlessly use the same deductive system in C++, Python, or TypeScript/JavaScript. | ||
| - title: WebAssembly Performance | ||
| details: Run high-performance deductive system in the browser or Node.js via Emscripten. | ||
| - title: Rich Logical Terms | ||
| details: Comprehensive support for variables, items, and nested lists. | ||
| - title: Rule-Based Inference | ||
| details: Flexible framework for defining rules and facts to perform complex logical deduction. | ||
| - title: Unification Engine | ||
| details: Powerful built-in mechanisms for term unification and rule matching. | ||
| - title: Automated Search | ||
| details: Built-in search engine for iterative inference. | ||
| --- | ||
|
|
||
| ## Supported Languages | ||
|
|
||
| ::: code-group | ||
| ```typescript [TypeScript] | ||
| import { Term } from "atsds"; | ||
|
|
||
| const term = new Term("(hello world)"); | ||
| console.log(term.toString()); | ||
| // Output: (hello world) | ||
| ``` | ||
| ```python [Python] | ||
| import apyds | ||
|
|
||
| term = apyds.Term("(hello world)") | ||
| print(term) # (hello world) | ||
| ``` | ||
| ```cpp [C++] | ||
| #include <ds/ds.hh> | ||
| #include <ds/utility.hh> | ||
| #include <iostream> | ||
|
|
||
| int main() { | ||
| auto term = ds::text_to_term("(hello world)", 1000); | ||
| std::cout << ds::term_to_text(term.get(), 1000).get() << std::endl; | ||
| return 0; | ||
| } | ||
| ``` | ||
| ::: | ||
|
|
||
| ## Quick Links | ||
|
|
||
| - **[Installation](getting-started/installation.md)** - Install DS for your preferred language | ||
| - **[Quick Start](getting-started/quickstart.md)** - Get up and running in minutes | ||
| - **[Core Concepts](concepts/terms.md)** - Learn about terms, rules, and inference | ||
| - **[API Reference](api/typescript.md)** - Complete API documentation | ||
| - **[Examples](examples/basic.md)** - Working code examples | ||
|
|
||
| ## License | ||
|
|
||
| This project is licensed under the GNU General Public License v3.0 or later. | ||
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,70 +1,19 @@ | ||
| --- | ||
| layout: home | ||
|
|
||
| hero: | ||
| name: "DS" | ||
| text: "A Deductive System" | ||
| tagline: A deductive system for logical inference, implemented in C++ with bindings for Python and TypeScript/JavaScript | ||
| actions: | ||
| - theme: brand | ||
| text: Quick Start | ||
| link: /getting-started/quickstart | ||
| - theme: alt | ||
| text: View on GitHub | ||
| link: https://github.com/USTC-KnowledgeComputingLab/ds | ||
|
|
||
| features: | ||
| - title: Multi-Language Support | ||
| details: Seamlessly use the same deductive system in C++, Python, or TypeScript/JavaScript. | ||
| - title: WebAssembly Performance | ||
| details: Run high-performance deductive system in the browser or Node.js via Emscripten. | ||
| - title: Rich Logical Terms | ||
| details: Comprehensive support for variables, items, and nested lists. | ||
| - title: Rule-Based Inference | ||
| details: Flexible framework for defining rules and facts to perform complex logical deduction. | ||
| - title: Unification Engine | ||
| details: Powerful built-in mechanisms for term unification and rule matching. | ||
| - title: Automated Search | ||
| details: Built-in search engine for iterative inference. | ||
| --- | ||
|
|
||
| ## Supported Languages | ||
|
|
||
| ::: code-group | ||
| ```typescript [TypeScript] | ||
| import { Term } from "atsds"; | ||
|
|
||
| const term = new Term("(hello world)"); | ||
| console.log(term.toString()); | ||
| // Output: (hello world) | ||
| ``` | ||
| ```python [Python] | ||
| import apyds | ||
|
|
||
| term = apyds.Term("(hello world)") | ||
| print(term) # (hello world) | ||
| ``` | ||
| ```cpp [C++] | ||
| #include <ds/ds.hh> | ||
| #include <ds/utility.hh> | ||
| #include <iostream> | ||
|
|
||
| int main() { | ||
| auto term = ds::text_to_term("(hello world)", 1000); | ||
| std::cout << ds::term_to_text(term.get(), 1000).get() << std::endl; | ||
| return 0; | ||
| } | ||
| ``` | ||
| ::: | ||
|
|
||
| ## Quick Links | ||
|
|
||
| - **[Installation](getting-started/installation.md)** - Install DS for your preferred language | ||
| - **[Quick Start](getting-started/quickstart.md)** - Get up and running in minutes | ||
| - **[Core Concepts](concepts/terms.md)** - Learn about terms, rules, and inference | ||
| - **[API Reference](api/typescript.md)** - Complete API documentation | ||
| - **[Examples](examples/basic.md)** - Working code examples | ||
|
|
||
| ## License | ||
|
|
||
| This project is licensed under the GNU General Public License v3.0 or later. | ||
| <script setup> | ||
| import { onMounted } from 'vue' | ||
| import { useRouter, withBase } from 'vitepress' | ||
|
|
||
| const router = useRouter() | ||
|
|
||
| onMounted(() => { | ||
| const userLang = navigator.language || navigator.userLanguage | ||
| if (userLang.startsWith('zh')) { | ||
| router.go(withBase('/zh/')) | ||
| } else { | ||
| router.go(withBase('/en/')) | ||
| } | ||
| }) | ||
| </script> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.