diff --git a/docs/lang/articles/contribution/dev_install.md b/docs/lang/articles/contribution/dev_install.md index 56ed08e599631..7003b2a1deb11 100644 --- a/docs/lang/articles/contribution/dev_install.md +++ b/docs/lang/articles/contribution/dev_install.md @@ -34,6 +34,7 @@ Installation instructions vary depending on which operating system (OS) you are ## Prerequisites +````mdx-code-block - +```` ### Install Clang
This Clang compiler is used to compile the Taichi device runtime. It is **not required** to use this compiler for the C++ compiler.
+````mdx-code-block - +```` ### Install LLVM #### Install pre-built, customized LLVM binaries @@ -162,6 +164,7 @@ We provide pre-built, customized LLVM binaries. For now, Taichi supports LLVM 10 1. Download and install customized binaries from the following list per your system environment: +````mdx-code-block LLVM 10.0.0 for Windows MSVC 2022 - 2. Configure environment variable: +````mdx-code-block - +````
@@ -224,6 +227,7 @@ Add an environment variable `LLVM_DIR` with value ` -
## Install optional dependencies @@ -298,6 +301,7 @@ This section works for you if you have a Nvidia GPU supporting CUDA. Note that t To install CUDA: +````mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; @@ -352,6 +356,7 @@ import TabItem from '@theme/TabItem'; You must install the Vulkan SDK in order to debug Taichi's Vulkan backend. To proceed: +````mdx-code-block +```` ## Build Taichi from source +````mdx-code-block - ## Troubleshooting and debugging ### `llvm-as` cannot be opened on macOS diff --git a/docs/lang/articles/contribution/doc_writing.md b/docs/lang/articles/contribution/doc_writing.md index 87d550c104c8a..fd01e8da852bb 100644 --- a/docs/lang/articles/contribution/doc_writing.md +++ b/docs/lang/articles/contribution/doc_writing.md @@ -174,7 +174,6 @@ This is a danger! ## Code groups You could also insert tab-based code groups: - ```md import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; @@ -192,6 +191,7 @@ import TabItem from '@theme/TabItem'; ``` +````mdx-code-block import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; @@ -206,7 +206,6 @@ import TabItem from '@theme/TabItem'; This is an orange 🍊. This is a banana 🍌. - ## Footnotes To add footnotes, use: @@ -251,6 +250,8 @@ import TOCInline from '@theme/TOCInline'; to insert an in-line ToC: +````mdx-code-block import TOCInline from '@theme/TOCInline'; +```` diff --git a/docs/lang/articles/get-started/index.md b/docs/lang/articles/get-started/index.md index 44c056c8aaf6f..bb17cef33b02e 100644 --- a/docs/lang/articles/get-started/index.md +++ b/docs/lang/articles/get-started/index.md @@ -48,11 +48,13 @@ To get started with the Taichi Language, simply install it with `pip`: python3 -m pip install taichi ``` +There are a few of extra requirements depend on which operating system you are using: + +````mdx-code-block + import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; -There are a few of extra requirements depend on which operating system you are using: - +```` See the [Installation Troubleshooting](../faqs/install.md) if you run into any issues when installing Taichi.