Skip to content

Commit 5236c8e

Browse files
committed
Deploying to gh-pages from @ c381f89 🚀
1 parent 7d1d75e commit 5236c8e

File tree

4 files changed

+32
-17
lines changed

4 files changed

+32
-17
lines changed

develop.html

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,19 @@ <h2 id="configuring-the-gradle-build-file">Configuring the Gradle build file</h2
548548
"com.myDomain". This group id should match the group id discussed in
549549
section <a href="#developing-the-library">Developing the library</a>.</li>
550550
<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+
<a href="troubleshooting.html">troubleshooting guide</a> if you suspect this is the case.</p>
562+
</li>
563+
<li>
551564
<p><strong>Define the <code>version</code> of your library in <code>build.gradle.kts</code>.</strong> This value will also be
552565
included in the release artifact <code>library.properties</code>. The version of your library usually
553566
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
559572
</ul>
560573
<p>You will update these numbers as you release new versions of your library.</p>
561574
</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-
<a href="troubleshooting.html">troubleshooting guide</a> if you suspect this is the case.</p>
574-
</li>
575575
</ol>
576+
<div class="admonition note">
577+
<p class="admonition-title">Note</p>
578+
<p>If you <a href="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>
576581
<h2 id="creating-examples">Creating examples</h2>
577582
<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>
578583
<div class="admonition note">

release.html

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,16 +527,26 @@ <h3 id="deploying-your-documentation-on-github-pages">Deploying your Documentati
527527
<h3 id="alternative-hosting-and-static-site-generators">Alternative Hosting and Static Site Generators</h3>
528528
<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>
529529
<h2 id="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><a href="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>
531532
<ol>
532533
<li>In your repository, click on <strong>Releases</strong>.</li>
533534
<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>
535536
<li>Select the branch you want to use for this release (e.g., <code>main</code>).</li>
536537
<li>Add a title and description for the release, highlighting key updates or changes.</li>
537538
<li>Click on <strong>Publish release</strong>. </li>
538539
</ol>
539540
<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+
<div class="admonition important">
542+
<p class="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+
<div class="admonition important">
546+
<p class="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>
540550
<div class="admonition note">
541551
<p class="admonition-title">Note</p>
542552
<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

Comments
 (0)