Skip to content

Commit d264866

Browse files
authored
docs: Provide CN translation for three docs (#1341)
1 parent 56834a6 commit d264866

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+394
-94
lines changed

.github/workflows/docs_build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
# Update the path to include them and run.
3939
cd ./docs
4040
PATH=/home/runner/.local/bin:$PATH pip3 install -r requirements.txt --prefer-binary
41-
PATH=/home/runner/.local/bin:$PATH SPHINXOPTS="-W" build-docs -l en
41+
PATH=/home/runner/.local/bin:$PATH SPHINXOPTS="-W" build-docs
4242
- name: Archive Docs
4343
uses: actions/upload-artifact@v4
4444
with:

.github/workflows/docs_production.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
echo "PIP install requirements..."
4747
pip3 install --user -r ./docs/requirements.txt
4848
echo "Building the Docs..."
49-
cd ./docs && build-docs -l en
49+
cd ./docs && build-docs
5050
echo "Deploy the Docs..."
5151
export DOCS_BUILD_DIR=$GITHUB_WORKSPACE/docs/
5252
cd $GITHUB_WORKSPACE/docs

docs/en/installation.rst

Lines changed: 57 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,106 +1,107 @@
11
Installation
2-
===============================
2+
============
33

4-
Configuring and installing the Espressif-IDE involves two main steps:
4+
:link_to_translation:`zh_CN:[中文]`
55

6-
1. :ref:`Downloading and Installing the Espressif-IDE <esp-idf-installation>`
7-
2. :ref:`Installing the ESP-IDF and related tools within the Espressif-IDE <esp-idf-tools-installation>`
8-
3. :ref:`Migrating old workspace to new <esp-idf-tools-migration>`
6+
Configuring and installing the Espressif-IDE involves three main steps:
7+
8+
1. :ref:`Download and Installing the Espressif-IDE <esp-idf-installation>`
9+
2. :ref:`Install the ESP-IDF and related tools within the Espressif-IDE <esp-idf-tools-installation>`
10+
3. :ref:`Migrate old workspace to new <esp-idf-tools-migration>`
911

1012
.. note::
11-
For Eclipse CDT users who prefer installing the ESP-IDF Eclipse Plugin via the `Update site <https://dl.espressif.com/dl/idf-eclipse-plugin/updates/latest/>`_, please refer to the :ref:`Update Site Installation Guide <marketplaceupdate>`.
1213

13-
Espressif-IDE Installation
14-
----------------------------
14+
For Eclipse CDT users who prefer installing the ESP-IDF Eclipse Plugin via the `update site <https://dl.espressif.com/dl/idf-eclipse-plugin/updates/latest/>`_, please refer to the :ref:`Update Site Installation Guide <marketplaceupdate>`.
15+
1516
.. _esp-idf-installation:
1617

17-
To begin, navigate to the section corresponding to your operating system below and follow the provided instructions to install the Espressif-IDE.
18+
Espressif-IDE Installation
19+
--------------------------
1820

19-
Please note that the Espressif-IDE requires that
20-
you install ESP-IDF via Espressif Installation Manager (EIM) to manage the ESP-IDF versions and tools.
21-
For detailed documentation on using the Espressif Installation Manager (EIM),
22-
please refer to the official guide `here <https://docs.espressif.com/projects/idf-im-ui/en/latest/>`_.
21+
To begin, navigate to the section below corresponding to your operating system, and follow the provided instructions to install the Espressif-IDE.
22+
23+
Please note that the Espressif-IDE requires that you install ESP-IDF via Espressif Installation Manager (EIM) to manage the ESP-IDF versions and tools. For detailed documentation on using the EIM, please refer to the `official guide <https://docs.espressif.com/projects/idf-im-ui/en/latest/>`_.
2324

2425
Windows
2526
~~~~~~~~
27+
2628
.. note::
27-
For Windows users, Espressif-IDE is available with ESP-IDF as an offline installer.
28-
29+
30+
For Windows users, Espressif-IDE is available with ESP-IDF as an offline installer.
31+
2932
To download and install it, follow the instructions provided :ref:`here <windowsofflineinstaller>`. This guide will walk you through the installation process for Java, Git, CMake, ESP-IDF, IDF Tools, Device Drivers, and Espressif-IDE to help you get started.
3033

3134
macOS/Linux
3235
~~~~~~~~~~~~
36+
3337
Download the Espressif-IDE for your respective operating system from the :ref:`download section <downloads>`. After downloading, launch the IDE and proceed to :ref:`install the necessary ESP-IDF and related tools <esp-idf-tools-installation>`. Please ensure that Java, Python, and Git are installed as prerequisites and are available in the system path before launching the IDE.
3438

35-
ESP-IDF and Tools Installation (New Workspace)
36-
----------------------------------------------
3739
.. _esp-idf-tools-installation:
3840

39-
The Espressif-IDE provides a Tool Manager view that allows you to activate available ESP-IDF versions and manage related tools. To install the ESP-IDF and its tools, first download the Espressif Installation Manager (EIM) from the following `link <https://dl.espressif.com/dl/eim/>`_.
41+
ESP-IDF and Tools Installation (New Workspace)
42+
----------------------------------------------
4043

44+
The Espressif-IDE provides a tool manager view that allows you to activate available ESP-IDF versions and manage related tools. To install the ESP-IDF and its tools, first download the EIM from the following `link <https://dl.espressif.com/dl/eim/>`__.
4145

42-
After downloading and launching EIM, follow the on-screen instructions to install the required ESP-IDF version and associated tools. Once the installation is complete, you can use the ESP-IDF Manager within the IDE to activate the installed ESP-IDF version in the workspace.
43-
The Espressif-IDE allows you to download and launch the EIM directly from the IDE, making it easier to manage your ESP-IDF versions and tools. If you are coming trying to open the workspace from and older version of Espressif-IDE you will be prompted to convert the older configuration to use with EIM.
46+
After downloading and launching EIM, follow the on-screen instructions to install the required ESP-IDF version and associated tools. Once the installation is complete, you can use the ESP-IDF Manager within the IDE to activate the installed ESP-IDF version in the workspace. The Espressif-IDE allows you to download and launch the EIM directly from the IDE, making it easier to manage your ESP-IDF versions and tools. When you open a workspace created with an old version of Espressif-IDE, the IDE will prompt you to convert its configuration to be compatible with EIM.
4447

4548
Follow these steps inside the Espressif-IDE to install the ESP-IDF and related tools:
4649

47-
1. Go to ``Espressif > ESP-IDF Manager``. The following editor will open:
50+
1. Go to ``Espressif`` > ``ESP-IDF Manager``. The following editor will open:
4851

49-
.. image:: ../../media/ToolsManager/ESP-IDF_Manager_Editor_Screen.png
52+
.. image:: ../../media/ToolsManager/ESP-IDF_Manager_Editor_Screen.png
5053

51-
2. Click on the ``Launch EIM`` or ``Download & Launch EIM`` button if you have not already downloaded and installed EIM.
54+
2. Click the ``Launch EIM`` or ``Download & Launch EIM`` button if you have not downloaded and installed EIM.
5255

53-
You will see the progress of download and installation in the console. Once the EIM is launched, you can use it to install the ESP-IDF and related tools.
56+
You will see the progress of download and installation in the console. Once the EIM is launched, you can use it to install the ESP-IDF and related tools.
5457

55-
3. Once you close the EIM your ESP-IDF Manager editor will be updated with the latest information about the ESP-IDF versions and tools available.
58+
3. Once you close the EIM, your ESP-IDF Manager editor will be updated with the latest information about the ESP-IDF versions and tools available.
5659

57-
.. note::
58-
Please note that the EIM will be the only tool going forward to manage the ESP-IDF versions and tools. The previous versions of the Espressif-IDE used to manage tools internally but now the only point of entry into the ESP-IDF will be through the EIM.
60+
.. image:: ../../media/ToolsManager/Tool_installed_and_activated.png
5961

60-
After the EIM is closed the ESP-IDF Manager editor will be updated with the latest information about the ESP-IDF versions and tools available.:
62+
.. note::
6163

62-
.. image:: ../../media/ToolsManager/Tool_installed_and_activated.png
64+
Please note that the EIM will be the only tool going forward to manage the ESP-IDF versions and tools. Previous versions of the Espressif-IDE managed tools internally, but now all access to ESP-IDF is handled through the EIM.
6365

6466
You can add as many versions of ESP-IDF as you want via EIM, but only one version can be set as active, and that version will be used to compile and index projects in your workspace. This feature helps you switch between versions in the workspace easily.
6567

66-
To activate any specific version, simply click on the radio button next to it in the ``Active`` column.
68+
To activate any specific version, simply click the radio button next to it in the ``Active`` column.
6769

6870
The refresh button in the last column for the active ESP-IDF version can be used to reload any changes in the ESP-IDF directory you made.
6971

7072
.. note::
71-
Any manual changes made to the ESP-IDF directory will not be reflected in the IDE until you refresh the active ESP-IDF version using the refresh button but if you made any changes to the installation of ESP-IDF using the EIM, those changes will be detected and a popup message will be shown to you to update the ESP-IDF version in the IDE.
7273

73-
.. image:: ../../media/ToolsManager/ESP-IDF_Manager_Changed_Installation_Message.png
74+
Any manual changes made to the ESP-IDF directory will not be reflected in the IDE until you refresh the active ESP-IDF version using the refresh button. However, if you made any changes to the installation of ESP-IDF using the EIM, those changes will be detected and a popup message will be shown to you to update the ESP-IDF version in the IDE.
7475

76+
.. image:: ../../media/ToolsManager/ESP-IDF_Manager_Changed_Installation_Message.png
7577

76-
Migrating Old Workspace to New
77-
-------------------------------
7878
.. _esp-idf-tools-migration:
7979

80-
If you are migrating from an older version of the Espressif-IDE, you will need to convert your existing workspace to be
81-
compatible with the new ESP-IDF Manager.
82-
You will need to download and install the Espressif Installation Manager (EIM) from the following `link <https://dl.espressif.com/dl/eim/>`_.
83-
After installation of the EIM please follow the steps below:
84-
85-
1. Copy the downloaded EIM executable to `.espressif/eim_gui/` in user home directory for Windows and Linux.
86-
For example, on Windows, it would be `C:\Users\<username>\.espressif\eim_gui\eim.exe`.
87-
On Linux , it would be `~/.espressif/eim_gui/eim`.
88-
For macOS, copy the downloaded `eim.app` to your `Applications`, for example, `/Applications/eim.app`.
89-
90-
2. Open the Espressif-IDE if already running restart it.
91-
3. After the IDE detects the EIM executable and a valid older workspace, it will prompt you to convert the old workspace to the new format.:
92-
93-
.. image:: ../../media/ToolsManager/ESP-IDF_Manager_Conversion.png
94-
95-
4. Click on the ``Yes`` button to convert the old configuration.
96-
5. Now in Espressif-IDE, go to ``Espressif > ESP-IDF Manager``.
97-
The ESP-IDF Manager editor will open, and you can proceed to select activate against the version you want.
98-
80+
Old-to-New Workspace Migration
81+
------------------------------
82+
83+
If you are migrating from an old version of the Espressif-IDE, you will need to convert your existing workspace to be compatible with the new ESP-IDF Manager. You will need to download and install the EIM from the following `link <https://dl.espressif.com/dl/eim/>`__. After installation of the EIM, please follow the steps below:
84+
85+
1. Place the downloaded EIM executable in the appropriate location according to your operating system:
86+
87+
- **Windows**: `C:\Users\<username>\.espressif\eim_gui\eim.exe`
88+
- **Linux**: `~/.espressif/eim_gui/eim`
89+
- **macOS**: Copy the ``eim.app`` bundle to your ``Applications`` folder, for example `/Applications/eim.app`.
90+
91+
2. Open the Espressif-IDE. If it is already running, restart the IDE.
92+
3. After the IDE detects the EIM executable and a valid old workspace, it will prompt you to convert the old workspace to the new format.
93+
94+
.. image:: ../../media/ToolsManager/ESP-IDF_Manager_Conversion.png
95+
96+
4. Click the ``Yes`` button to convert the old configuration.
97+
5. Now in Espressif-IDE, go to ``Espressif`` > ``ESP-IDF Manager``. The ESP-IDF Manager editor will open, and you can proceed to select and activate the ESP-IDF version you want.
98+
9999
References
100100
----------
101+
101102
.. toctree::
102103
:maxdepth: 1
103104

104-
Update Site Installation Guide<marketplaceupdate>
105-
Windows Offline Installer<windowsofflineinstaller>
106-
Configure CDT Build Environment Variables<additionalfeatures/configureenvvariables>
105+
Update Site Installation Guide <marketplaceupdate>
106+
Windows Offline Installer <windowsofflineinstaller>
107+
Configure CDT Build Environment Variables <additionalfeatures/configureenvvariables>

docs/en/prerequisites.rst

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,31 @@
11
Prerequisites
2-
===============================
2+
=============
3+
4+
:link_to_translation:`zh_CN:[中文]`
5+
36
This document outlines the necessary requirements for installing and running Espressif-IDE to build applications with ESP-IDF.
47

5-
Hardware Prerequisites
6-
-----------------------
8+
Hardware
9+
--------
10+
711
- A computer running Windows, Linux, or macOS
812
- An ESP32 development board with a USB to serial interface and/or debug port
913
- A USB cable (data + power) compatible with your development board
1014

1115
.. Note::
12-
Currently, some of the development boards are using USB Type C connectors. Be sure you have the correct cable to connect your board!
1316

14-
Software Prerequisites
15-
-----------------------
16-
The minimum requirements for running the Espressif-IDE are listed below.
17+
Currently, some development boards are using USB Type-C connectors. Be sure you have the correct cable to connect your board.
1718

18-
- `Java 21 <https://www.oracle.com/technetwork/java/javase/downloads/index.html>`_ and above.
19-
- `Python 3.12 <https://www.python.org/downloads/>`_ and above.
20-
- `Git <https://git-scm.com/downloads>`_.
21-
- `ESP-IDF Prerequisites <https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/linux-macos-setup.html#step-1-install-prerequisites>`_ based on your Operating System.
19+
Software
20+
--------
2221

23-
.. note::
24-
Ensure that Java, Python, and Git are correctly set up and available in the system's PATH environment variable.
22+
The minimum requirements for running the Espressif-IDE are listed below:
23+
24+
- `Java 21 <https://www.oracle.com/technetwork/java/javase/downloads/index.html>`_ and above
25+
- `Python 3.12 <https://www.python.org/downloads/>`_ and above
26+
- `Git <https://git-scm.com/downloads>`_
27+
- `ESP-IDF Prerequisites <https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/linux-macos-setup.html#step-1-install-prerequisites>`_ based on your operating system
2528

29+
.. note::
2630

31+
Ensure that Java, Python, and Git are correctly set up and available in the system's PATH environment variable.

docs/en/troubleshooting.rst

Lines changed: 30 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
Troubleshooting
44
===============
55

6+
:link_to_translation:`zh_CN:[中文]`
7+
68
- :ref:`suggestions_for_build_errors`
79
- :ref:`error_log`
810
- :ref:`console_view_log`
@@ -11,54 +13,58 @@ Troubleshooting
1113

1214
.. _suggestions_for_build_errors:
1315

14-
Suggestions for Build Errors using Hints Viewer
15-
------------------------------------------------
16-
If you encounter a problem during a build, there may be a hint for this error in the ESP-IDF hint database, located at ``tools/idf_py_actions/hints.yml`` in ESP-IDF. The ESP-IDF Eclipse plugin provides a hint viewer where you can type an error message to find a hint for it.
16+
Suggestions for Build Errors Using Hints View
17+
---------------------------------------------
18+
19+
If you encounter a problem during a build, there may be a hint for this error in the ESP-IDF hint database, located at ``tools/idf_py_actions/hints.yml`` in ESP-IDF. The ESP-IDF Eclipse plugin provides a Hints View where you can type an error message to find a hint for it.
1720

1821
**Prerequisites:** The ``hints.yml`` file is available from ESP-IDF v5.0 and higher. If you are using an older version, you can manually download the ``hints.yml`` file from `here <https://github.com/espressif/esp-idf/blob/master/tools/idf_py_actions/hints.yml>`_ and save it to ``esp-idf/tools/idf_py_actions/``. To download the file, right-click the ``Raw`` button and select ``Save as...``.
1922

20-
To open the hints viewer:
21-
1. Navigate to ``Windows`` -> ``Show View`` -> ``Other...`` -> ``Espressif`` -> ``Hints``.
23+
To open the Hints View, go to ``Windows`` > ``Show View`` > ``Other...`` > ``Espressif`` > ``Hints``.
2224

2325
.. image:: https://user-images.githubusercontent.com/24419842/189666994-78cc8b24-b934-426f-9df5-79af28c50c55.png
24-
:alt: Hints Viewer
26+
:alt: Hints View
2527

2628
Now you can type or paste an error from the build log, such as:
29+
2730
``ccache error: Failed to create temporary file for esp-idf/libsodium/CMakeFiles/..../....: No such file or directory``
2831

2932
.. image:: https://user-images.githubusercontent.com/24419842/189672552-994624f3-c0c5-48e6-aa2c-61e4ed8915e5.png
30-
:alt: Example Error in Hints Viewer
33+
:alt: Example Error in Hints View
3134

32-
Double-clicking on the row will display the hint message if it doesn't fully fit on your screen.
35+
Double-clicking the row will display the hint message if it doesn't fully fit on your screen.
3336

3437
.. image:: https://user-images.githubusercontent.com/24419842/189673174-8ce40cda-6933-4dc4-a555-5d2ca617256e.png
35-
:alt: Hint Message
38+
:alt: Hint Message
3639

3740
.. _error_log:
3841

3942
Error Log
4043
---------
41-
The Error Log view captures warnings and errors logged by plug-ins. The log file is stored in the ``.log`` file within the ``.metadata`` subdirectory of the workspace.
4244

43-
To open the Error Log view:
44-
- Go to ``Window`` > ``Show View`` > ``Error Log``.
45+
The Error Log View captures warnings and errors logged by plug-ins. The log file is stored in the ``.log`` file within the ``.metadata`` subdirectory of the workspace.
46+
47+
To open the Error Log View, go to ``Window`` > ``Show View`` > ``Error Log``.
4548

4649
To export the current log view content:
47-
1. Press the ``Export Log`` toolbar button or select ``Export Log...`` from the context menu.
48-
2. Enter a file name.
4950

50-
It's recommended to include an error log when reporting an issue.
51+
1. Press the ``Export Log`` toolbar button or select ``Export Log...`` from the context menu.
52+
53+
.. image:: ../../media/export_log.png
54+
:alt: Export Log
5155

52-
.. image:: ../../media/export_log.png
53-
:alt: Export Log
56+
2. Enter a file name.
57+
58+
It's recommended to include an error log when reporting an issue.
5459

5560
.. _console_view_log:
5661

5762
Console View Log
5863
----------------
59-
The Console View shows warnings and errors related to the current running process or build. To access the Console View:
6064

61-
- From the menu bar, select ``Window`` > ``Show View`` > ``Console``.
65+
The Console View shows warnings and errors related to the current running process or build.
66+
67+
To access the Console View, go to ``Window`` > ``Show View`` > ``Console``.
6268

6369
.. image:: ../../media/CDT_Build_Console.png
6470
:alt: Console View
@@ -67,18 +73,19 @@ The Console View shows warnings and errors related to the current running proces
6773

6874
CDT Global Build Log
6975
--------------------
70-
To enable global build logging:
71-
- Go to ``Preferences`` > ``C/C++`` > ``Build`` > ``Logging``.
76+
77+
To enable global build logging, go to ``Preferences`` > ``C/C++`` > ``Build`` > ``Logging``.
7278

7379
.. _espressif_idf_tools_console:
7480

7581
Espressif IDF Tools Console
7682
----------------------------
77-
The Espressif IDF Tools Console is part of the Console view and opens during the installation of IDF tools from Eclipse.
83+
84+
The Espressif IDF Tools Console is part of the Console View and opens during the installation of IDF tools from Eclipse.
7885

7986
If you encounter any issues during installation of IDF tools via ``Espressif`` > ``ESP-IDF Tools Manager`` > ``Install tools``, check the Espressif IDF Tools Console for errors.
8087

81-
If this console is not active, switch to it by clicking on the ``Display Selected Console`` icon in the console view.
88+
If this console is not active, switch to it by clicking the ``Display Selected Console`` icon in the Console View.
8289

8390
.. image:: ../../media/IDF_tools_console.png
8491
:alt: Espressif IDF Tools Console

docs/zh_CN/additionalfeatures.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.. include:: ../en/additionalfeatures.rst
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.. include:: ../../en/additionalfeatures/appleveltracing.rst
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.. include:: ../../en/additionalfeatures/application-size-analysis.rst
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.. include:: ../../en/additionalfeatures/clangd_cdt_support.rst
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.. include:: ../../en/additionalfeatures/clangtoolchain.rst

0 commit comments

Comments
 (0)