Skip to content

Commit

Permalink
Switch to HTMX and web server to show downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
cjburkey01 committed May 2, 2024
1 parent 87dfee2 commit 7604708
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 161 deletions.
1 change: 0 additions & 1 deletion book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ description = "A site detailing how to use the SpigotAPI plugin ClaimChunk"
preferred-dark-theme = "ayu"
git-repository-url = "https://github.com/cjburkey01/ClaimChunk"
edit-url-template = "https://github.com/cjburkey01/claimchunk-site/edit/main/{path}"
additional-js = ["src/js/downloads.js"]
additional-css = ["src/css/downloads.css"]
no-section-label = true

Expand Down
39 changes: 39 additions & 0 deletions src/Downloads.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Downloads

There are two channels from which to download ClaimChunk. The release channel is the current stable version of ClaimChunk. This version _should_ be safe to use for larger servers. The snapshot channel, however, provides a new build for the changes to the [ClaimChunk repository](https://github.com/cjburkey01/ClaimChunk) since the latest release. This means they may have less testing, but it may be useful if bugs exist in the latest release or you want some features that have yet to be pushed to a release.

<script src="https://unpkg.com/[email protected]" integrity="sha384-ujb1lZYygJmzgSwoxRggbCHcjc0rB2XoQrxeTUQyRjrOnlCoYta87iKBWq3EsdM2" crossorigin="anonymous"></script>
<script>
document.body.addEventListener('htmx:configRequest', function(event) {
event.detail.headers = ''
event.detail.headers['Content-Type'] = "application/x-www-form-urlencoded; charset=UTF-8"
});
</script>

## Release Downloads

The following downloads are considered stable downloads, or releases.

<div
hx-get="https://cjburkey.com/claimchunk-api/releases.php"
hx-trigger="load"
hx-swap="innerHTML"
>
<i>Please wait... &verbar; Loading...</i>
</div>
## Snapshot Downloads

These downloads _might_ be less stable than the release downloads, but have more recent features and bug fixes.

To make these downloads available, we use a handy-dandy link service called <a href="https://nightly.link/" target="_blank" title="nightly.link GitHub link service">nightly.link</a> to make getting GitHub artifact download links possible.

After 30 days, GitHub deletes these artifacts; if you want to compile an older, non-release version that isn't listed here, please clone the repository at the preferred commit and build from source.

<div
hx-get="https://cjburkey.com/claimchunk-api/artifacts.php"
hx-trigger="load"
hx-swap="innerHTML"
>
<i>Please wait... &verbar; Loading...</i>
</div>
160 changes: 0 additions & 160 deletions src/js/downloads.js

This file was deleted.

0 comments on commit 7604708

Please sign in to comment.