KirillOsenkov / SourceBrowser

Source browser website generator that powers http://referencesource.microsoft.com and http://sourceroslyn.io
Apache License 2.0
1.05k stars 195 forks source link

Static website #204

Open WhiteBlackGoose opened 2 years ago

WhiteBlackGoose commented 2 years ago

Hello!

First of all, awesome and incredibly well working tool, thanks for that!

But I wanted to ask - what do you think about making it possible to host it statically, for example, on Github Pages? Many open-source projects would absolutely love source browsing, but aren't ready to pay for hosting, you know. So implementation via WASM would be neat.

I'm not asking you to do, of course, I'm more of asking for a hint - I'm quite noob in web, so maybe you could at least say how possible this idea is? And your thoughts on it?

KirillOsenkov commented 2 years ago

@ljcollins25 is working on an early prototype of a static website: https://ref12.github.io/Codex.Web.Preview/

However it's way too early to start looking at that, a lot of work needs to happen to make it real.

With the current SourceBrowser, the only component that requires a server is the index (you type a word and it returns results). There have been libraries that let you do that statically, so you store the word list on a server, and host the search in the browser that pulls the necessary files from the static website.

This is certainly possible, but it's hard work one way or another. Feel free to experiment or just wait and maybe we'll have something like this at some point!

WhiteBlackGoose commented 2 years ago

That's interesting, thanks!

WhiteBlackGoose commented 2 years ago

Are you sure you meant to send it here?