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
Copy file name to clipboardExpand all lines: docs/develop.md
+16-12
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,19 @@ those sections for [resolving dependencies](#resolving-dependencies).
65
65
notation. For example, if your website is "myDomain.com", your group ID would be
66
66
"com.myDomain". This group id should match the group id discussed in
67
67
section [Developing the library](#developing-the-library).
68
-
3.**Define the `version` of your library in `build.gradle.kts`.** This value will also be
68
+
3. The `sketchbookLocation` is determined programmatically by your operation system, and is
69
+
where your Processing `sketchbook` folder is. This folder contains your installed libraries.
70
+
It is needed if you:
71
+
72
+
1. wish to copy the library to the Processing sketchbook, which installs the library locally
73
+
2. have Processing library dependencies
74
+
75
+
This variable is in the editable section, in case the location determined is incorrect. A
76
+
symptom of an incorrect `sketchbookLocation` is that your library does not show up as a
77
+
contributed library Processing, after being installed. Please look at our
78
+
[troubleshooting guide](troubleshooting.md) if you suspect this is the case.
79
+
80
+
4.**Define the `version` of your library in `build.gradle.kts`.** This value will also be
69
81
included in the release artifact `library.properties`. The version of your library usually
70
82
follows semantic versioning (semver), which uses three numbers separated by dots:
71
83
"MAJOR.MINOR.PATCH" (e.g., "1.0.0").
@@ -76,18 +88,10 @@ those sections for [resolving dependencies](#resolving-dependencies).
76
88
77
89
You will update these numbers as you release new versions of your library.
78
90
79
-
4. The `sketchbookLocation` is determined programmatically by your operation system, and is
80
-
where your Processing `sketchbook` folder is. This folder contains your installed libraries.
81
-
It is needed if you:
91
+
!!! Note
92
+
If you [release your library on Github](https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository),
93
+
the prettyVersion field in your release artifacts will reflect your release tag instead of the `version` defined in `build.gradle.kts`, as a helpful automation.
82
94
83
-
1. wish to copy the library to the Processing sketchbook, which installs the library locally
84
-
2. have Processing library dependencies
85
-
86
-
This variable is in the editable section, in case the location determined is incorrect. A
87
-
symptom of an incorrect `sketchbookLocation` is that your library does not show up as a
88
-
contributed library Processing, after being installed. Please look at our
89
-
[troubleshooting guide](troubleshooting.md) if you suspect this is the case.
90
-
91
95
## Creating examples
92
96
Examples help users understand your library’s functionality, it is recommended that you include several clear and well-commented samples sketches in the `examples` folder.
Copy file name to clipboardExpand all lines: docs/release.md
+10-2
Original file line number
Diff line number
Diff line change
@@ -31,17 +31,25 @@ Any time you want to update the documentation, edit your `.md` files and `mkdocs
31
31
If you prefer not to use the built-in workflow with GitHub Pages and Material for MkDocs, you are free to use another static site generator or hosting service. Note that it’s important that the site remains online, as it serves as a reference for users of your library.
32
32
33
33
## Releasing on Github
34
-
Releasing your library on GitHub allows users to access known-working versions of your library. Unlike the repository itself, which may contain ongoing development or experimental features, releases provide specific versions of your library that are ready for use. Here is how you can make a new release using this template:
34
+
[Releasing your library on GitHub](https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository)
35
+
allows users to access known-working versions of your library. Unlike the repository itself, which may contain ongoing development or experimental features, releases provide specific versions of your library that are ready for use. Here is how you can make a new release using this template:
35
36
36
37
1. In your repository, click on **Releases**.
37
38
2. Click **Draft a new release** to start.
38
-
3. Click on **Choose a tag** a tag starting with "v" (e.g., `v1.0.0`). Make sure it matches the version set in your `release.properties` file.
39
+
3. Click on **Choose a tag**and type a tag **starting with "v"** (e.g., `v1.0.0`).
39
40
4. Select the branch you want to use for this release (e.g., `main`).
40
41
5. Add a title and description for the release, highlighting key updates or changes.
41
42
6. Click on **Publish release**.
42
43
43
44
This will trigger the GitHub workflow (`.github/workflows/release.yml`), which automatically create release artifacts—`*.txt`, `*.zip`, `*.pdex` files—and add them to the release.
44
45
46
+
!!! Important
47
+
The release workflow will only trigger if the release tag starts with `v`.
48
+
49
+
!!! Important
50
+
The release tag created on Github will be propagated to the release artifacts.
51
+
Specifically the tag, without the leading `v`, will be used for the `prettyVersion` in the txt file and `library.properties` file in the zip. This overwrites the value input for `version` in the `build.gradle.kts` file.
52
+
45
53
!!! Note
46
54
By default, GitHub will also include compressed versions of your source code (e.g., `Source code (zip)` and `Source code (tar.gz)`).
0 commit comments