Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions content/docs/installation/build-from-source/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,24 @@ description: In this way, you can get the latest unreleased features and get rea

3. If CMake can't find the Qt installation path, you should set the environment variable: `CMAKE_PREFIX_PATH=%QtPath%/%QtVersion%/%Compiler%/lib/cmake`. For example, on macOS, you can run something like `export CMAKE_PREFIX_PATH="/usr/local/Cellar/qt/5.15.2"`.

4. Install KDE (kf5) Syntax Highlighting.
4. Install [Extra CMake Modules](https://github.com/KDE/extra-cmake-modules) and [KDE (kf5) Syntax Highlighting](https://github.com/KDE/syntax-highlighting). These are **not** bundled as submodules and must be installed on the host system before building.

- On some Linux distributions and macOS, you can install from your package manager. For example, `sudo pacman -S syntax-highlighting5` on Arch Linux, [Homebrew KDE](https://github.com/KDE/homebrew-kde) and then `brew install kde-mac/kde/kf5-syntax-highlighting` on macOS.

- Otherwise, you can use CMake to build and install Extra CMake Modules first and then KSH:
- Otherwise, you can clone and build them manually:

```sh
cd third_party/extra-cmake-modules
git clone --branch kf5 https://github.com/KDE/extra-cmake-modules.git
cd extra-cmake-modules
cmake -B build -S . -DBUILD_HTML_DOCS=OFF -DBUILD_MAN_DOCS=OFF -DBUILD_QTHELP_DOCS=OFF -DBUILD_TESTING=OFF
cmake --build build --config Release --target install # may require sudo
cd ../syntax-highlighting
cd ..

git clone --branch kf5 https://github.com/KDE/syntax-highlighting.git
cd syntax-highlighting
cmake -B build -S . -DBUILD_HTML_DOCS=OFF -DBUILD_MAN_DOCS=OFF -DBUILD_QTHELP_DOCS=OFF -DBUILD_TESTING=OFF
cmake --build build --config Release --target install
cmake --build build --config Release --target install # may require sudo
cd ..
```

### Build
Expand Down
22 changes: 21 additions & 1 deletion content/docs/installation/build-from-source/_index.ru.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,27 @@ description: In this way, you can get the latest unreleased features and get rea

3. If CMake can't find the Qt installation path, you should set the environment variable: `CMAKE_PREFIX_PATH=%QtPath%/%QtVersion%/%Compiler%/lib/cmake`. For example, on macOS, you can run something like `export CMAKE_PREFIX_PATH="/usr/local/Cellar/qt/5.15.1"`.

4. Run the following commands:
4. Install [Extra CMake Modules](https://github.com/KDE/extra-cmake-modules) and [KDE (kf5) Syntax Highlighting](https://github.com/KDE/syntax-highlighting). These are **not** bundled as submodules and must be installed on the host system before building.

- On some Linux distributions and macOS, you can install from your package manager. For example, `sudo pacman -S syntax-highlighting5` on Arch Linux, [Homebrew KDE](https://github.com/KDE/homebrew-kde) and then `brew install kde-mac/kde/kf5-syntax-highlighting` on macOS.

- Otherwise, you can clone and build them manually:

```sh
git clone --branch kf5 https://github.com/KDE/extra-cmake-modules.git
cd extra-cmake-modules
cmake -B build -S . -DBUILD_HTML_DOCS=OFF -DBUILD_MAN_DOCS=OFF -DBUILD_QTHELP_DOCS=OFF -DBUILD_TESTING=OFF
cmake --build build --config Release --target install # may require sudo
cd ..

git clone --branch kf5 https://github.com/KDE/syntax-highlighting.git
cd syntax-highlighting
cmake -B build -S . -DBUILD_HTML_DOCS=OFF -DBUILD_MAN_DOCS=OFF -DBUILD_QTHELP_DOCS=OFF -DBUILD_TESTING=OFF
cmake --build build --config Release --target install # may require sudo
cd ..
```

5. Run the following commands:

- Linux/macOS:

Expand Down
15 changes: 10 additions & 5 deletions content/docs/installation/build-from-source/_index.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,24 @@ description: 通过这种方式,你可以使用最新的还未发布的特性

3. 如果 CMake 提示找不到 Qt 路径,你应该设置环境变量:`CMAKE_PREFIX_PATH=%QtPath%/%QtVersion%/%Compiler%/lib/cmake`。例如,在 macOS 上,你可以运行 `export CMAKE_PREFIX_PATH="/usr/local/Cellar/qt/5.15.2"`。

4. 安装 KDE (kf5) Extra CMake Modules
4. 安装 [Extra CMake Modules](https://github.com/KDE/extra-cmake-modules) 和 [KDE (kf5) Syntax Highlighting](https://github.com/KDE/syntax-highlighting)。它们**不再**作为子模块捆绑,必须在构建前安装到系统中

- 在一些 Linux 发行版和 macOS 系统上,你可以直接使用包管理器安装它们。例如,在 Arch Linux 上可以使用 `sudo pacman -S syntax-highlighting5`,在 macOS 上可以使用 [Homebrew KDE](https://github.com/KDE/homebrew-kde) 然后 `brew install kde-mac/kde/kf5-syntax-highlighting`。

- 否则,你需要使用 CMake 先构建并安装 Extra CMake Modules 然后再是 KSH
- 否则,你需要手动克隆并构建安装

```sh
cd third_party/extra-cmake-modules
git clone --branch kf5 https://github.com/KDE/extra-cmake-modules.git
cd extra-cmake-modules
cmake -B build -S . -DBUILD_HTML_DOCS=OFF -DBUILD_MAN_DOCS=OFF -DBUILD_QTHELP_DOCS=OFF -DBUILD_TESTING=OFF
cmake --build build --config Release --target install # 可能需要 sudo
cd ../syntax-highlighting
cd ..

git clone --branch kf5 https://github.com/KDE/syntax-highlighting.git
cd syntax-highlighting
cmake -B build -S . -DBUILD_HTML_DOCS=OFF -DBUILD_MAN_DOCS=OFF -DBUILD_QTHELP_DOCS=OFF -DBUILD_TESTING=OFF
cmake --build build --config Release --target install
cmake --build build --config Release --target install # 可能需要 sudo
cd ..
```

### 构建
Expand Down
22 changes: 21 additions & 1 deletion content/docs/installation/build-from-source/_index.zh_tw.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,27 @@ description: 此方式適合想要嘗鮮最新功能的使用者、協助進行

3. 若 CMake 找不到 Qt 的安裝路徑,需要設定環境變數:`CMAKE_PREFIX_PATH=%QtPath%/%QtVersion%/%Compiler%/lib/cmake`。以 macOS 而言,執行這個命令 `export CMAKE_PREFIX_PATH="/usr/local/Cellar/qt/5.15.1"`。

4. 執行下列命令。
4. 安裝 [Extra CMake Modules](https://github.com/KDE/extra-cmake-modules) 和 [KDE (kf5) Syntax Highlighting](https://github.com/KDE/syntax-highlighting)。它們**不再**作為子模組捆綁,必須在建置前安裝到系統中。

- 在 macOS 及某些 Linux 發行版,您可以透過套件管理系統來安裝。例如在 Arch Linux 上使用 `sudo pacman -S syntax-highlighting5`,在 macOS 上使用 [Homebrew KDE](https://github.com/KDE/homebrew-kde) 然後 `brew install kde-mac/kde/kf5-syntax-highlighting`。

- 否則,您需要手動 clone 並建置安裝:

```sh
git clone --branch kf5 https://github.com/KDE/extra-cmake-modules.git
cd extra-cmake-modules
cmake -B build -S . -DBUILD_HTML_DOCS=OFF -DBUILD_MAN_DOCS=OFF -DBUILD_QTHELP_DOCS=OFF -DBUILD_TESTING=OFF
cmake --build build --config Release --target install # 可能需要 sudo
cd ..

git clone --branch kf5 https://github.com/KDE/syntax-highlighting.git
cd syntax-highlighting
cmake -B build -S . -DBUILD_HTML_DOCS=OFF -DBUILD_MAN_DOCS=OFF -DBUILD_QTHELP_DOCS=OFF -DBUILD_TESTING=OFF
cmake --build build --config Release --target install # 可能需要 sudo
cd ..
```

5. 執行下列命令。

- Linux/macOS:

Expand Down
22 changes: 22 additions & 0 deletions content/docs/preferences/actions/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,25 @@ If you switch to the correct tab when solving a problem, with this setting enabl
Hide the time of the stopwatch and only show the time when the "Show" button is pressed.

This may reduce distractions caused by stopwatch updates.

## Stress Testing

### Programming language for the template

The programming language used for the generator template.

### Path to the template file

See [Template Path](../language/#template-path).

### Template Cursor Position Regex

See [Template Cursor Position](../language/#template-cursor-position).

### Template Cursor Position Offset Type

See [Template Cursor Position](../language/#template-cursor-position).

### Template Cursor Position Offset Characters

See [Template Cursor Position](../language/#template-cursor-position).
22 changes: 22 additions & 0 deletions content/docs/preferences/actions/_index.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,25 @@ weight: 40
隐藏计时结果,只在“显示”按钮按下时显示。

这或许可以避免计时结果更新使人分心。

## 对拍

### 模版使用的编程语言

数据生成器模版使用的编程语言

### 模板路径

参见 [模板路径](../language/#模板路径)。

### 使用模板时光标初始位置定位使用的正则表达式

参见 [使用模板时的光标初始位置](../language/#使用模板时的光标初始位置)。

### 使用模板时光标初始位置的偏移类型

参见 [使用模板时的光标初始位置](../language/#使用模板时的光标初始位置)。

### 使用模板时光标初始位置的偏移字符量

参见 [使用模板时的光标初始位置](../language/#使用模板时的光标初始位置)。
Loading