Comments (24)
I'm not sure whether that would let us redirect from a different repository -- it might be only for redirecting within a single repository.
There is another approach that might work well, though. It looks like you can use a custom DNS domain to serve gh-pages ... the page I saw is here:
https://help.github.com/articles/using-a-custom-domain-with-github-pages/
I did happen to register elm-community.org, in case we ever needed it. So, I wonder whether I could set things up so that, for instance, webgl.elm-community.org pointed to the gh-pages for this repository? I think that might give us the best of both worlds -- that is, the simplicity of gh-pages, and a stable URL.
While I'm doing that, I suppose I may as well also make elm-community.org itself point to elm-community.github.io
Let me know if that sounds like a good plan.
from elm-webgl.
Published version 3.0.2, that has screenshots which link to the compiled examples
from elm-webgl.
Actually, the examples are working http://elm-community.github.io/elm-webgl/cube.html
but we need CNAME for elm-community.github.io
from elm-webgl.
I have now added the CNAME file to the gh-pages
branch, with contents of webgl.elm-community.org
, and made the required DNS entry. So, now, a link of the following kind should work:
http://webgl.elm-community.org/triangle.html
from elm-webgl.
Yeah, we should have something like a travis job that builds gh-pages from a master branch.
from elm-webgl.
This is an excellent idea. I think it makes sense to host them here on GitHub. Seems unlikely we will get them put back up on elm-lang.org
from elm-webgl.
I think it's better to do it after renaming the library from elm-community/elm-webgl
to elm-community/webgl
#16
from elm-webgl.
why?
There's no telling how long the rename will take, since it will need to wait for whitelisting, similarly to elm-community/elm-linear-algebra#12. Self-hosting the WebGL examples will be quick to accomplish and will be a big improvement in the documentation.
from elm-webgl.
@nphollon because people may link to it. I don't like the idea of creating temporary urls. Another option may be to publish it from the elm-community github pages.
from elm-webgl.
That's a good point. Putting the examples on elm-community.github.io sounds like a good way of getting this fixed as quickly as possible. Can we get some feedback from the core @elm-community members? (@rgrempel)
from elm-webgl.
I guess that the nice thing about using gh-pages here is that it is sort of self-contained. But I do understand the concern about the planned rename and what that would do for URLs. If I remember correctly, Github automatically redirects most things, but not gh-pages. It would really be ideal if there were some way to redirect the gh-pages approach once the name change occurs.
What would putting the examples on elm-community.github.io entail? Would it be some kind of automated build script that commits something to that repository? How would setting up the permissions for that compare to setting up the permissions for committing to gh-pages here? Or could we commit the examples to the elm-community.github.io repository manually (and not necessarily update them on every single new commit)?
from elm-webgl.
It looks like we might be able to set up manual redirects using https://help.github.com/articles/redirects-on-github-pages/
I know nothing about Jekyll, so I don't know how viable this solution is.
from elm-webgl.
I think that sounds like a good plan. @w0rm @felixguendling ?
from elm-webgl.
That would be great.
from elm-webgl.
@nphollon it's a good plan!
from elm-webgl.
I can work on this on the weekend. My colleague has done a similar thing in order to deploy our elm-street-404 game https://github.com/zalando/elm-street-404/blob/master/gh-pages.sh
from elm-webgl.
@felixguendling @rgrempel I added a simple shell script that compiles the examples and pushes them to the gh-pages branch
from elm-webgl.
Looks great! Thank you! Does someone still have the link images?
Old URLs:
- http://elm-lang.org/screenshot/WebGL/Triangle.jpg
- http://elm-lang.org/screenshot/WebGL/Cube.jpg
- http://elm-lang.org/screenshot/WebGL/Crate.jpg
- http://elm-lang.org/screenshot/WebGL/Thwomp.jpg
- http://elm-lang.org/screenshot/WebGL/FirstPerson.jpg
from elm-webgl.
Cannot find "Crate".
But the others are still available on web.archive.org:
https://web.archive.org/web/20140521090540/http://elm-lang.org/screenshot/WebGL/Triangle.jpg
https://web.archive.org/web/20140521090540/http://elm-lang.org/screenshot/WebGL/Cube.jpg
https://web.archive.org/web/20140521090540/http://elm-lang.org/screenshot/WebGL/Thwomp.jpg
https://web.archive.org/web/20140521090540/http://elm-lang.org/screenshot/WebGL/FirstPerson.jpg
But I'm not sure whether Git is a good option for binary files.
Same applies here: it's probably better to link to a stable URL providing these images.
from elm-webgl.
@felixguendling I updated my pull request with screenshots and fixed the readme
from elm-webgl.
If you still need them, the screenshots (including Crate.jpg) can be found at https://github.com/elm-lang/elm-lang.org/tree/cd1e6e139d12c17d5186594d7577ee4f6bd52a1d/resources/screenshot/WebGL
from elm-webgl.
Thanks, @w0rm already included them in the pull request #28:
https://github.com/elm-community/elm-webgl/pull/28/files
I think this will really improve the first impression for new comers.
Currently, the page doesn't look very appealing (dead links, images not loading).
What would be the next step? Someone needs to check the PR and the domain needs to point to the right location, as @rgrempel described (probably webgl.elm-community.org).
from elm-webgl.
I don't mind merging this as it is now and publishing the new version with fixed docs.
from elm-webgl.
I moved examples into subfolder and modified the gh-pages script to setup the domain name.
from elm-webgl.
Related Issues (20)
- Repository field in elm-package.json affects correctness of generated Javascript HOT 2
- Drop elm- from package name
- Extract a task to load image into separate project
- Unify code formatting in the Native module HOT 2
- Add support to disable premultipliedAlpha HOT 7
- Examples lead to 404 HOT 2
- Package hardwired to elm-lang/core 4.0.0
- Nothing gets rendered until the program receives it's first message HOT 2
- JS Interop: Direct Access to "draw()"? HOT 5
- Interactivity: Picking HOT 5
- Exploding textures cache HOT 1
- Is is possible to add constants to the vertex array data? HOT 5
- Support the advanced mode of google closure compiler HOT 3
- Provide the ability to load a texture without an implicit UNPACK_FLIP_Y_WEBGL HOT 1
- Provide the ability to render a mesh with supplied vertices and indices.
- Adding Elm 0.18 HOT 4
- Publish a version with deprecation notice
- Respect Evan's constraints on this package HOT 6
- Broken link in README HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elm-webgl.