34 lines
1.0 KiB

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/water.css">
<p>To get started, fill in the repository URL in <code>/app/data/config.sh</code>.</p>
<button onclick="rebuild()">Rebuild now</button>
To trigger a site rebuild from a webhook, use the following URL:
<pre><code id="webhook_url"></code></pre>
If you want to clone a protected repository, you can grant access to the following SSH key:
var token = "%TOKEN%";
var url = `https://token:${token}@${window.location.hostname}/_rebuild`;
function rebuild() {
var xhr = new XMLHttpRequest();
xhr.open("POST", url, false);
alert("Rebuild started");
document.getElementById('webhook_url').innerHTML = url;