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: develop.html
+18-13Lines changed: 18 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -548,6 +548,19 @@ <h2 id="configuring-the-gradle-build-file">Configuring the Gradle build file</h2
548
548
"com.myDomain". This group id should match the group id discussed in
549
549
section <ahref="#developing-the-library">Developing the library</a>.</li>
550
550
<li>
551
+
<p>The <code>sketchbookLocation</code> is determined programmatically by your operation system, and is
552
+
where your Processing <code>sketchbook</code> folder is. This folder contains your installed libraries.
553
+
It is needed if you:</p>
554
+
<ol>
555
+
<li>wish to copy the library to the Processing sketchbook, which installs the library locally</li>
556
+
<li>have Processing library dependencies</li>
557
+
</ol>
558
+
<p>This variable is in the editable section, in case the location determined is incorrect. A
559
+
symptom of an incorrect <code>sketchbookLocation</code> is that your library does not show up as a
560
+
contributed library Processing, after being installed. Please look at our
561
+
<ahref="troubleshooting.html">troubleshooting guide</a> if you suspect this is the case.</p>
562
+
</li>
563
+
<li>
551
564
<p><strong>Define the <code>version</code> of your library in <code>build.gradle.kts</code>.</strong> This value will also be
552
565
included in the release artifact <code>library.properties</code>. The version of your library usually
553
566
follows semantic versioning (semver), which uses three numbers separated by dots:
@@ -559,20 +572,12 @@ <h2 id="configuring-the-gradle-build-file">Configuring the Gradle build file</h2
559
572
</ul>
560
573
<p>You will update these numbers as you release new versions of your library.</p>
561
574
</li>
562
-
<li>
563
-
<p>The <code>sketchbookLocation</code> is determined programmatically by your operation system, and is
564
-
where your Processing <code>sketchbook</code> folder is. This folder contains your installed libraries.
565
-
It is needed if you:</p>
566
-
<ol>
567
-
<li>wish to copy the library to the Processing sketchbook, which installs the library locally</li>
568
-
<li>have Processing library dependencies</li>
569
-
</ol>
570
-
<p>This variable is in the editable section, in case the location determined is incorrect. A
571
-
symptom of an incorrect <code>sketchbookLocation</code> is that your library does not show up as a
572
-
contributed library Processing, after being installed. Please look at our
573
-
<ahref="troubleshooting.html">troubleshooting guide</a> if you suspect this is the case.</p>
574
-
</li>
575
575
</ol>
576
+
<divclass="admonition note">
577
+
<pclass="admonition-title">Note</p>
578
+
<p>If you <ahref="https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository">release your library on Github</a>,
579
+
the prettyVersion field in your release artifacts will reflect your release tag instead of the <code>version</code> defined in <code>build.gradle.kts</code>, as a helpful automation.</p>
580
+
</div>
576
581
<h2id="creating-examples">Creating examples</h2>
577
582
<p>Examples help users understand your library’s functionality, it is recommended that you include several clear and well-commented samples sketches in the <code>examples</code> folder.</p>
Copy file name to clipboardExpand all lines: release.html
+12-2Lines changed: 12 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -527,16 +527,26 @@ <h3 id="deploying-your-documentation-on-github-pages">Deploying your Documentati
527
527
<h3id="alternative-hosting-and-static-site-generators">Alternative Hosting and Static Site Generators</h3>
528
528
<p>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. </p>
529
529
<h2id="releasing-on-github">Releasing on Github</h2>
530
-
<p>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:</p>
530
+
<p><ahref="https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository">Releasing your library on GitHub</a>
531
+
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:</p>
531
532
<ol>
532
533
<li>In your repository, click on <strong>Releases</strong>.</li>
533
534
<li>Click <strong>Draft a new release</strong> to start.</li>
534
-
<li>Click on <strong>Choose a tag</strong> a tag starting with "v" (e.g., <code>v1.0.0</code>). Make sure it matches the version set in your <code>release.properties</code> file.</li>
535
+
<li>Click on <strong>Choose a tag</strong>and type a tag <strong>starting with "v"</strong> (e.g., <code>v1.0.0</code>). </li>
535
536
<li>Select the branch you want to use for this release (e.g., <code>main</code>).</li>
536
537
<li>Add a title and description for the release, highlighting key updates or changes.</li>
537
538
<li>Click on <strong>Publish release</strong>. </li>
538
539
</ol>
539
540
<p>This will trigger the GitHub workflow (<code>.github/workflows/release.yml</code>), which automatically create release artifacts—<code>*.txt</code>, <code>*.zip</code>, <code>*.pdex</code> files—and add them to the release.</p>
541
+
<divclass="admonition important">
542
+
<pclass="admonition-title">Important</p>
543
+
<p>The release workflow will only trigger if the release tag starts with <code>v</code>.</p>
544
+
</div>
545
+
<divclass="admonition important">
546
+
<pclass="admonition-title">Important</p>
547
+
<p>The release tag created on Github will be propagated to the release artifacts.
548
+
Specifically the tag, without the leading <code>v</code>, will be used for the <code>prettyVersion</code> in the txt file and <code>library.properties</code> file in the zip. This overwrites the value input for <code>version</code> in the <code>build.gradle.kts</code> file.</p>
549
+
</div>
540
550
<divclass="admonition note">
541
551
<pclass="admonition-title">Note</p>
542
552
<p>By default, GitHub will also include compressed versions of your source code (e.g., <code>Source code (zip)</code> and <code>Source code (tar.gz)</code>).</p>
0 commit comments