docs: wip
assets: move fonts to resources/
This commit is contained in:
parent
cd2e77272c
commit
ef3559ffef
64 changed files with 1573 additions and 1688 deletions
69
resources/docs/download.md
Normal file
69
resources/docs/download.md
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
# Download latest release
|
||||
|
||||
<a href="https://github.com/jean-emmanuel/open-stage-control/releases/latest"> Open Stage Control <span id="osc-version"span></a>
|
||||
|
||||
<div id="osc-assets">Loading assets...</div>
|
||||
|
||||
## Changelog
|
||||
|
||||
<div class="highlight"><pre><code id="osc-changelog">Loading changelog...</code></pre></div>
|
||||
|
||||
<script>
|
||||
|
||||
var oReq = new XMLHttpRequest();
|
||||
oReq.addEventListener('load', reqListener);
|
||||
oReq.open('GET', 'https://api.github.com/repos/jean-emmanuel/open-stage-control/releases/latest')
|
||||
oReq.send()
|
||||
|
||||
|
||||
function text(id, str) {
|
||||
var el = typeof id === 'string' ? document.getElementById(id) : id
|
||||
el.textContent = str
|
||||
}
|
||||
|
||||
function reqListener () {
|
||||
|
||||
var data = JSON.parse(this.responseText)
|
||||
var date = new Date(data.published_at)
|
||||
|
||||
text('osc-version', data.tag_name + ' (' + date.toLocaleDateString() + ')')
|
||||
|
||||
var list = document.createElement('ul')
|
||||
for (var i in data.assets) {
|
||||
var item = document.createElement('li'),
|
||||
link = document.createElement('a')
|
||||
|
||||
link.textContent = data.assets[i].name + ' (' + (data.assets[i].size / 1024 / 1024).toFixed(1) + 'M)'
|
||||
link.href = data.assets[i].browser_download_url
|
||||
|
||||
item.appendChild(link)
|
||||
list.appendChild(item)
|
||||
}
|
||||
var assets = document.getElementById('osc-assets')
|
||||
assets.innerHTML = ''
|
||||
assets.appendChild(list)
|
||||
|
||||
text('osc-changelog', data.body)
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
<style>
|
||||
html {
|
||||
overflow-y: scroll
|
||||
}
|
||||
.md-sidebar--secondary, .md-sidebar--primary {
|
||||
display: none;
|
||||
}
|
||||
.md-content {
|
||||
margin: 0;
|
||||
}
|
||||
.md-content__inner {
|
||||
margin-left: .8rem;
|
||||
margin-right: .6rem;
|
||||
}
|
||||
</style>
|
||||
Loading…
Add table
Add a link
Reference in a new issue