Shareable markdown directories
from carlnewton@feddit.uk to selfhosted@lemmy.world on 02 Jul 07:58
https://feddit.uk/post/51641374

The other day I was looking for lyrics to a song. I went to a lyrics website and was hit with a wall of ads, despite my pi-hole! I then went to another site that put me into a redirect loop. It got me thinking about privately self hosting a lyrics site. I started thinking that lyrics are just a type of simple static content, and what would be ideal is an application in which you can upload multiple directories of markdown files. Perhaps the directory should be in a standardised .mds (markdown share) format for instance. It would essentially be a zip file with directories of markdown files and a yml file for indicating how it would ideally be displayed. Perhaps with an a-z, or perhaps text-searchable, or both. The styling would be configurable in the app and independent of the mds files completely. Does this kind of standard for sharing simple text or markdown in bulk exist in any capacity that encourages a known file format? I’m aware that static site generators exist, but they seem to be aimed at the creation of documentation, not at sharing it in bulk. I’m imagining easily downloadable recipe books, wikis, lyrics databases. Does this sound like something anyone would be interested in or am I over/under thinking it?

#selfhosted

threaded - newest

mhzawadi@lemmy.horwood.cloud on 02 Jul 08:13 next collapse

have you seen this 👉 lrclib.net it might be what you want

tal@lemmy.today on 02 Jul 08:15 next collapse

en.wikipedia.org/wiki/LRC_(file_format)

For time-synchronized lyrics.

It looks like my Scandroid audio files from Bandcamp have embedded non-synchronized lyrics.

$ metaflac --list *08*.flac

[snip]

    comment[12]: UNSYNCEDLYRICS=Beware the shadows of the drones 
Destruction wrapped in pretty silicone 
They’ve taken everyone I’ve known 
And now I walk these empty streets alone 

In my memory the past is fading 
The future has been redesigned 
It’s hard to focus on it when I’m running out of time 

Surrounded by streetlights at midnight 
My destination is unknown 
I walk these empty streets alone 
Digital dreams thrive in the moonlight 
I’m only flesh, circuit and bone 
I walk these empty streets alone 

Beware the faces of the clones 
Deception sent from Neo-Tokyo 
They’ve erased everyone I’ve known 
And still I walk these empty streets alone

I don’t know how widespread that is.

Note that lyrics are themselves copyrighted works, regarding simply sharing them. That is, if you want to create, say, “Lyricsnet, the new Fediverse service” or something like that, you may attract attention from IP owners.

carlnewton@feddit.uk on 02 Jul 08:37 collapse

Thanks. I didn’t know about the LRC format, this is really interesting for the lyrics problem. But just to be clear, I’m not thinking (specifically) about lyrics, I’m thinking about having a standard format for sharing directories of textual or simple html documents for hosting privately. So if I wanted to share my smoothie recipes for instance, I’d just save them all to a .mds file for anyone to upload to their .mds application and not worry about directory structure or manually moving files around an actual filesystem.

BuccaneerScientist@discuss.tchncs.de on 02 Jul 09:39 next collapse

Check out static site generator. I’ve specifically used Hugo which took markdown files as input/content, but there are many options.

They are also really easy to host on a git forge.

Alfredolin@sopuli.xyz on 02 Jul 13:59 collapse

Hi! If you share recipes, make them schema.org compliant, I think it’s a pre-requisite to be able to import them for example to Nextcloud Cookbook! :D

(I’m not sure, I just read about it earlier this week and did not dig further, yet)

rako@tarte.nuage-libre.fr on 02 Jul 08:43 next collapse

That’s basically what gopher is: a capsule of hierarchically ordered documents, easily browsable thanks to a normalized interface

https://en.wikipedia.org/wiki/Gopher_(protocol)

The web is one of its spiritual successor and is plenty usable to share text files. Most if not all software can generate indexes of content in a directory. wget and friends can be used to retrieve the whole archive. If you generate html files you can then style them independently of the content.

carlnewton@feddit.uk on 02 Jul 09:33 collapse

Thanks. This is really interesting but doesn’t appear to be aimed at the same audience that I’m thinking of. I’m thinking of a solution for people who aren’t technical and just want to share documentation or static style information and view that like a documentation site.

rako@tarte.nuage-libre.fr on 02 Jul 12:30 collapse

The hosting part is, indeed, a technical part but a tool like copyparty can help here:

https://github.com/9001/copyparty/blob/hovudstraum/README.md#markdown-viewer

It runs everywhere, is just a single file you double-click to open and browse from your browser. Makdown files are automatically rendered. You can upload a bunch of files directly, or just send them by mail and put them in a directory served by copyparty

Krafting@lemmy.world on 02 Jul 09:16 next collapse

lrclib.net

For your lyrics needs! (Can be selfhosted)

irmadlad@lemmy.world on 02 Jul 11:11 collapse

self hosting a lyrics site

I remember when people were going to court for publishing lyric sites. Wow! Weird times.