#! /usr/bin/env python3 import os import subprocess def run(*args): subprocess.call(args) def link(active:str, id:str, text:str)->str: items = ['{text}') return str().join(items) def nav(active:str=None)->str: return f'''\ ''' def main(): root = os.path.dirname(os.path.realpath(__file__)) link_gv = os.path.join(root, 'link.gv') link_svg = os.path.join(root, 'link.svg') run('dot', link_gv, '-Tsvg', '-o', link_svg) with open(link_svg, 'br') as f: link_text = f.read().decode('u8') page_file = os.path.join(root, 'index.html') page_text = f'''\ Marc Beninca

Marc Beninca

{nav('main')}
{nav('cv')}
{nav('git')}

  • Gforge
{nav('health')}
{nav('id')}
OpenPGP
marc.beninca.link
meta.sr.ht
keys.openpgp.org
Key
Base
Key
Oxide
Libera
Pay
Patreon Tip
eee
CC / BTC Mastodon Discord
CC / ZEC GitLab YouTube
DMOJ Pleroma FaceBook
GalacticTalk PixelFed OpenStreetMap Instagram
Reddit Twitch Vimeo
Twitter
HackerNews BitBucket
Lobsters LinuxFR
GitHub
DNS
beninca.link
computing.land
marc-beninca.fr
rwx.work
tilde.link
GitLab
Debian
FramaGit
FrogGit
GitGud
Insomnia
Gitea
42l
AFPy
Chapril
CodeBerg
DisRoot
Envs
Froggies
FSFE
GitDab
Gitea
ProjectSegfault
TildeGit
TildeVarsh
StackExchange
Meta
ServerFault
StackOverflow
TeX
Unix
{nav('lib')}
{nav('music')}
{nav('pubnix')}
{nav('thesis')}
{nav('vegan')}
{nav('others')}

''' # {link_text} with open(page_file, 'bw') as f: f.write(page_text.encode('u8')) if __name__ == '__main__': main()