Skip to content

Commit ea77f7c

Browse files
committed
fix(docs): Fix links and versions
1 parent 95ae8cf commit ea77f7c

File tree

6 files changed

+22
-13
lines changed

6 files changed

+22
-13
lines changed

docs/conf_common.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
from esp_docs.conf_docs import * # noqa: F403,F401
44

5+
# Used by sphinx_substitution_extensions for substituting variables in the documentation
6+
rst_prolog = """
7+
.. |version| replace:: 3.2.0
8+
.. |idf_version| replace:: 5.4
9+
"""
10+
511
languages = ["en"]
612

713
# idf_targets = [
@@ -27,6 +33,7 @@
2733
extensions += [ # noqa: F405
2834
"sphinx_copybutton",
2935
"sphinx_tabs.tabs",
36+
"sphinx_substitution_extensions",
3037
"esp_docs.esp_extensions.dummy_build_system",
3138
]
3239

docs/en/contributing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ Documentation
222222
-------------
223223

224224
If you are contributing to the documentation, please follow the instructions described in the
225-
`documentation guidelines <guides/docs_contributing>`_ to properly format and test your changes.
225+
`documentation guidelines <guides/docs_contributing.html>`_ to properly format and test your changes.
226226

227227
Testing and CI
228228
--------------
@@ -435,7 +435,7 @@ Documentation Checks
435435
^^^^^^^^^^^^^^^^^^^^
436436

437437
The CI also checks the documentation for any compilation errors. This is important to ensure that the documentation layout is not broken.
438-
To build the documentation locally, please refer to the `documentation guidelines <guides/docs_contributing>`_.
438+
To build the documentation locally, please refer to the `documentation guidelines <guides/docs_contributing.html>`_.
439439

440440
Code Style Checks
441441
^^^^^^^^^^^^^^^^^

docs/en/esp-idf_component.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ For a simplified method, see `Installing using Boards Manager <https://docs.espr
1414
If you plan to use these modified settings multiple times, for different projects and targets, you can recompile the Arduino core with the new settings using the Arduino Static Library Builder.
1515
For more information, see the `Lib Builder documentation <lib_builder.html>`_.
1616

17-
.. note:: Latest Arduino Core ESP32 version (3.0.X) is now compatible with `ESP-IDF v5.1 <https://github.com/espressif/esp-idf/tree/release/v5.1>`_. Please consider this compatibility when using Arduino as a component in ESP-IDF.
17+
.. note:: Latest Arduino Core ESP32 version (|version|) is now compatible with `ESP-IDF v5.1 <https://github.com/espressif/esp-idf/tree/release/v5.1>`_. Please consider this compatibility when using Arduino as a component in ESP-IDF.
1818

1919
For easiest use of Arduino framework as a ESP-IDF component, you can use the `IDF Component Manager <https://docs.espressif.com/projects/esp-idf/en/v5.1.4/esp32/api-guides/tools/idf-component-manager.html>`_ to add the Arduino component to your project.
2020
This will automatically clone the repository and its submodules. You can find the Arduino component in the `ESP Registry <https://components.espressif.com/components/espressif/arduino-esp32>`_ together with dependencies list and examples.
@@ -32,14 +32,16 @@ Installing using IDF Component Manager
3232
To add the Arduino component to your project using the IDF Component Manager, run the following command in your project directory:
3333

3434
.. code-block:: bash
35+
:substitutions:
3536
36-
idf.py add-dependency "espressif/arduino-esp32^3.0.2"
37+
idf.py add-dependency "espressif/arduino-esp32^|version|"
3738
3839
Or you can start a new project from a template with the Arduino component:
3940

4041
.. code-block:: bash
42+
:substitutions:
4143
42-
idf.py create-project-from-example "espressif/arduino-esp32^3.0.2:hello_world"
44+
idf.py create-project-from-example "espressif/arduino-esp32^|version|:hello_world"
4345
4446
Manual installation of Arduino framework
4547
****************************************

docs/en/guides/docs_contributing.rst

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ Before starting your collaboration, you need to get the documentation source cod
4949
Requirements
5050
************
5151

52-
To properly work with the documentation, you need to install some packages in your system.
52+
To properly work with the documentation, you need to install some packages in your system. Note that depending on
53+
your system, you may need to use a virtual environment to install the packages.
5354

5455
.. code-block::
5556
56-
pip install -U Sphinx
5757
pip install -r requirements.txt
5858
5959
The requirements file is under the ``docs`` folder.
@@ -62,17 +62,14 @@ Using Visual Studio Code
6262
************************
6363

6464
If you are using the Visual Studio Code, you can install some extensions to help you while writing documentation.
65+
For reStructuredText, you can install the `reStructuredText Pack <https://marketplace.visualstudio.com/items?itemName=lextudio.restructuredtext-pack>`_ extension.
6566

66-
`reStructuredText Pack <https://marketplace.visualstudio.com/items?itemName=lextudio.restructuredtext-pack>`_
67-
68-
We also recommend you install to grammar check extension to help you to review English grammar.
69-
70-
`Grammarly <https://marketplace.visualstudio.com/items?itemName=znck.grammarly>`_
67+
We also recommend you to install some grammar check extension to help you to review English grammar.
7168

7269
Building
7370
********
7471

75-
To build the documentation and generate the HTML files, you can use the following command inside the ``docs`` folder. After a successful build, you can check the files inside the `_build/en/generic/html` folder.
72+
To build the documentation and generate the HTML files, you can use the following command inside the ``docs`` folder. After a successful build, you can check the files inside the ``_build/en/generic/html`` folder.
7673

7774
.. code-block::
7875

docs/en/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Welcome to ESP32 Arduino Core's documentation
33
#############################################
44

55
Here you will find all the relevant information about the project.
6+
This documentation is valid for the Arduino Core for ESP32 version |version| based on ESP-IDF |idf_version|.
67

78
.. note::
89
This is a work in progress documentation and we will appreciate your help! We are looking for contributors!

docs/requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
sphinx==4.5.0
12
esp-docs>=1.4.0
23
sphinx-copybutton==0.5.0
34
sphinx-tabs==3.2.0
45
numpydoc==1.5.0
56
standard-imghdr==3.13.0
7+
Sphinx-Substitution-Extensions==2022.2.16

0 commit comments

Comments
 (0)