Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static website #204

Open
WhiteBlackGoose opened this issue Jan 4, 2022 · 3 comments
Open

Static website #204

WhiteBlackGoose opened this issue Jan 4, 2022 · 3 comments

Comments

@WhiteBlackGoose
Copy link

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
Copy link
Owner

@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
Copy link
Author

That's interesting, thanks!

@WhiteBlackGoose
Copy link
Author

Are you sure you meant to send it here?

Repository owner deleted a comment Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants