containerd.io icon indicating copy to clipboard operation
containerd.io copied to clipboard

Render the markdown on the client side

Open AkihiroSuda opened this issue 3 years ago • 3 comments

For years, we have been failing to sync the markdown documents from the code repos into this web repo.

Maybe we should just render the markdown on the client side so that we do not need to care about syncing.

POC

https://akihirosuda.github.io/containerd-website-draft/

image

HTML source: https://github.com/AkihiroSuda/containerd-website-draft/blob/gh-pages/index.html

raw.githubusercontent.com has access-control-allow-origin: * (for now, at least), so this should work with any domain


Alternative to

  • #121

Similar to

  • https://github.com/lima-vm/lima/issues/1208

AkihiroSuda avatar Nov 26 '22 20:11 AkihiroSuda

How about using github action to regularly sync documents over?

May have to change the structure of the containerd project's docs folder.

suyanhanx avatar Jan 24 '23 08:01 suyanhanx

How about using github action to regularly sync documents over?

May have to change the structure of the containerd project's docs folder.

If somebody can set up that, it might be fine too.

AkihiroSuda avatar Jan 25 '23 07:01 AkihiroSuda

In passing, I though I'd mention that client-side rendering generally has a negative impact on SEO.

chalin avatar Feb 05 '23 17:02 chalin