You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[skip changelog]Fix typos and formatting in the documentation (#907)
* Fix typos in documentation
* Improve formatting of documentation
* Use correct case for Arduino CLI name in documentation
Co-authored-by: Roberto Sora <r.sora@arduino.cc>
Co-authored-by: Roberto Sora <r.sora@arduino.cc>
Copy file name to clipboardExpand all lines: docs/library-specification.md
+16-12
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,13 @@
1
1
This is the specification for the Arduino library format, to be used with Arduino IDE 1.5.x onwards.
2
2
3
3
- rev.1 has been implemented starting with Arduino IDE version 1.5.3 (now superseded by rev.2)
4
-
- rev.2 will be implemented starting from version Arduino IDE 1.5.6
5
-
- rev.2.1 will be implemented starting from version Arduino IDE 1.6.10
6
-
- rev.2.2 will be implemented starting from version Arduino IDE 1.8.10
4
+
- rev.2 will be implemented starting from Arduino IDE version 1.5.6
5
+
- rev.2.1 will be implemented starting from Arduino IDE version 1.6.10
6
+
- rev.2.2 will be implemented starting from Arduino IDE version 1.8.10
7
7
8
8
This new library format is intended to be used in tandem with **Library Manager**, available since Arduino IDE 1.6.2.
9
9
The Library Manager allows users to automatically download and install libraries needed in their projects, with an easy
10
-
to use graphic interface in the [Arduino IDE](https://www.arduino.cc/en/guide/libraries#toc3)/Pro IDE and
10
+
to use graphical interface in the [Arduino IDE](https://www.arduino.cc/en/guide/libraries#toc3)/Pro IDE and
11
11
[Arduino Web Editor](https://create.arduino.cc/projecthub/Arduino_Genuino/getting-started-with-arduino-web-editor-on-various-platforms-4b3e4a#toc-libraries-and-the-arduino-web-editor-11)
12
12
as well as [`arduino-cli lib`](commands/arduino-cli_lib.md).
13
13
@@ -46,7 +46,7 @@ otherwise below, **all fields are required**. The available fields are:
46
46
are now reserved for official Arduino libraries.
47
47
-**version** - version of the library. Version should be [semver](http://semver.org/) compliant. 1.2.0 is correct; 1.2
48
48
is accepted; r5, 003, 1.1c are invalid
49
-
-**author** - name/nickname of the authors and their email addresses (not mandatory) separated by comma ","
49
+
-**author** - name/nickname of the authors and their email addresses (not mandatory) separated by comma (,)
50
50
-**maintainer** - name and email of the maintainer
51
51
-**sentence** - a sentence explaining the purpose of the library
52
52
-**paragraph** - a longer description of the library. The value of **sentence** will be prepended to this, so you
@@ -125,7 +125,8 @@ numbers, spaces ( ), underscores (\_), dots (.) and dashes (-). The maximum leng
125
125
126
126
#### Source code
127
127
128
-
For 1.5.x+-only libraries, the source code resides in the **src** folder. For example:
128
+
For libraries intended to be used with Arduino IDE 1.5.x+ only, the source code resides in the **src** folder. For
129
+
example:
129
130
130
131
Servo/src/Servo.h
131
132
Servo/src/Servo.cpp
@@ -149,7 +150,7 @@ from the **library root folder** and the **utility** folder, for example:
149
150
Servo/utility/ServoTimers.h
150
151
Servo/utility/ServoTimers.cpp
151
152
152
-
This will allow existing 1.0 format libraries to compile under Arduino IDE 1.5.x+ as well and vice-versa. If a library
153
+
This will allow existing 1.0 format libraries to compile under Arduino IDE 1.5.x+ as well, and vice-versa. If a library
153
154
only needs to run on Arduino IDE 1.5.x+, we recommend placing all source code in the src/ folder. If a library requires
154
155
recursive compilation of nested source folders, its code must be in the src/ folder (since Arduino IDE 1.0.x doesn’t
155
156
support recursive compilation, backwards compatibility wouldn’t be possible anyway).
0 commit comments