Update
|
@ -20,5 +20,12 @@ jobs:
|
|||
- uses: denoland/setup-deno@v1
|
||||
with:
|
||||
deno-version: v1.x
|
||||
- run: deno run --allow-read scripts/update-docs-deno.js
|
||||
- run: deno run --allow-read --allow-write scripts/update-docs-deno.js
|
||||
- uses: stefanzweifel/git-auto-commit-action@v2.3.0
|
||||
working-directory: ./docs
|
||||
with:
|
||||
commit_message: Specs update
|
||||
branch: master
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ import { load } from 'https://deno.land/x/js_yaml_port/js-yaml.js'
|
|||
import {markdownTable} from 'https://cdn.skypack.dev/markdown-table@3?dts'
|
||||
|
||||
// SPEAKERS
|
||||
const speakers = load(await Deno.readTextFile('./spec/speakers.yaml'))
|
||||
const speakers = load(await Deno.readTextFile('./src/speakers.yaml'))
|
||||
|
||||
// SPEAKERS - table
|
||||
const speakersTableArr = [[ 'Jméno', 'Organizace' ]]
|
||||
|
@ -12,8 +12,8 @@ for (const speaker of speakers) {
|
|||
speaker.orgs
|
||||
])
|
||||
}
|
||||
const speakersTable = markdownTable(speakersTableArr)
|
||||
console.log(speakersTable)
|
||||
const speakersTable = `_(abecedně)_\n\n` + markdownTable(speakersTableArr)
|
||||
//console.log(speakersTable)
|
||||
|
||||
// SPEAKERS - leads
|
||||
const speakersLeadsArr = []
|
||||
|
@ -26,9 +26,18 @@ for (const speaker of speakers.filter(speaker => speaker.lead)) {
|
|||
if (speaker.web) {
|
||||
socials.push(`Web: [${speaker.web.name ? speaker.web.name : speaker.name}](${speaker.web.url})`)
|
||||
}
|
||||
const item = `### ${speaker.name}\n\n* ${speaker.bio.trim()}${orgs}* ${socials.join(', ')}`;
|
||||
const img = `![](https://spec.utxo.cz/src/photos/speakers/${speaker.id}.png)`
|
||||
const item = `### ${img} ${speaker.name}\n\n* ${speaker.bio.trim()}${orgs}* ${socials.join(', ')}`;
|
||||
speakersLeadsArr.push(item)
|
||||
}
|
||||
|
||||
const speakersLeads = speakersLeadsArr.join('\n\n')
|
||||
console.log(speakersLeads)
|
||||
const speakersLeads = `_(abecedně)_\n\n` + speakersLeadsArr.join('\n\n')
|
||||
//console.log(speakersLeads)
|
||||
|
||||
// SPEAKERS - write file
|
||||
const speakersDocFile = './docs/prednasejici.md'
|
||||
const speakersText = await Deno.readTextFile(speakersDocFile)
|
||||
let output = speakersText.replace(/## Seznam všech přednášejících([\s\S]*)/m, `## Seznam všech přednášejících\n\n${speakersTable}`)
|
||||
output = speakersText.replace(/## Významní hosté([\s\S]*)## /m, `## Významní hosté\n\n${speakersLeads}\n\n## `)
|
||||
await Deno.writeTextFile(speakersDocFile, output)
|
||||
|
||||
|
|
Před Šířka: | Výška: | Velikost: 567 KiB Za Šířka: | Výška: | Velikost: 567 KiB |
Před Šířka: | Výška: | Velikost: 69 KiB Za Šířka: | Výška: | Velikost: 69 KiB |
Před Šířka: | Výška: | Velikost: 130 KiB Za Šířka: | Výška: | Velikost: 130 KiB |
Před Šířka: | Výška: | Velikost: 128 KiB Za Šířka: | Výška: | Velikost: 128 KiB |
Před Šířka: | Výška: | Velikost: 128 KiB Za Šířka: | Výška: | Velikost: 128 KiB |
Před Šířka: | Výška: | Velikost: 58 KiB Za Šířka: | Výška: | Velikost: 58 KiB |
|
@ -19,7 +19,8 @@
|
|||
[btcplatby.cz](https://btcplatby.cz)
|
||||
- name: Jiří Čepelka
|
||||
twitter: JiriCepelka
|
||||
- name: Juraj Bednár
|
||||
- id: juraj-bednar
|
||||
name: Juraj Bednár
|
||||
twitter: jurbed
|
||||
bio: Podnikatel, hacker a milovník svobody
|
||||
orgs: |
|
||||
|
@ -32,7 +33,8 @@
|
|||
twitter: KryptoVlada
|
||||
orgs: |
|
||||
[KryptoVláďa](https://www.kryptovlada.win)
|
||||
- name: Mario Havel
|
||||
- id: mario-havel
|
||||
name: Mario Havel
|
||||
twitter: TMIYChao
|
||||
bio: Kryptoanarchista, libertarián a hacker
|
||||
orgs: |
|
||||
|
@ -42,7 +44,8 @@
|
|||
twitter: m0xt_
|
||||
- name: Petr Klein
|
||||
twitter: kleinpetr_com
|
||||
- name: Petr Mára
|
||||
- id: petr-mara
|
||||
name: Petr Mára
|
||||
twitter: petrmara
|
||||
bio: Technologický optimista, sběratel NFT
|
||||
web:
|
||||
|
@ -57,7 +60,8 @@
|
|||
twitter: homershillson
|
||||
orgs: |
|
||||
[VR Education](https://vreducation.cz)
|
||||
- name: Róbert Chovanculiak
|
||||
- id: robert-chovanculiak
|
||||
name: Róbert Chovanculiak
|
||||
twitter: RChovanculiak
|
||||
bio: Autor knihy [Pokrok bez povolenia](https://libinst.cz/produkt/pokrok-bez-povolenia/)
|
||||
orgs: |
|