Idea is to keep documentation and static site (tutorial...) in the master branch.
Let's start by looking for hosting alternatives.
It needs to:
Another option is to try to keep gh-pages is sync automatically, but this needs to be digged in.
Pros:
Cons:
http://surge.sh/
Seems the best option so far.
Integrated with Travis: http://surge.sh/help/integrating-with-travis-ci
Custom domain and SSL (but SSL on a custom domain needs paid account)
Free for our needs: http://surge.sh/pricing
https://www.aerobatic.com/docs/getting-started
Only works with Bitbuket (akward).
We may want to maintain a Bitbucket mirror, it may be less of a pain than having a separate branch (can be easily automated), but seems a bit complex for what we want to achieve.
No custom domain on the free plan: https://www.firebase.com/pricing.html
No custom domain on the free plan: https://www.bitballoon.com/pricing
Not easy to integrate on a git workflow https://neocities.org/api
Pros:
Cons:
https://github.com/X1011/git-directory-deploy
https://gist.github.com/cobyism/4730490
Cons:
Why not use travis to build it and deploy to a different repo in the leaflet org for hosting with gh-pages?
That's an option. But having two separate repositories (even if we should push only on one) will still be confusing.
Would that be less confusing than having to understand a completely different platform?
I meant confusing for other users not aware of the subtilties of those two repos, not for us ;)
Turns out that surge.sh is free for custom domain, free for SSL, but _SSL on a custom domain_ is paid feature.
Apart from that, surge sounds like a really nice service. I've deployed the site in 5 minutes (including time to install jekyll on my new Arch laptop :p ): http://leaflet.surge.sh
Other option to consider: https://github.com/X1011/git-directory-deploy
cf also #3277
Ingoing discussion here in Madrid: now that documentation is generated, it can makes sense to separate it from the main Leaflet site and blog, which are hand maintained.
So we can have something like:
Not sure the best way to deal with a shared menu if we go this way, so maybe we should remove the menu from the documentation and just have "Back to main site" link on the top of the page?
13$ per month? nginx+github webhook+let's encrypt+digital ocean box for 5$ per month in nicest option.
I would personally recommend using Cloudflare for the CDN, it is free and would allow HTTPS for CDN, blog, docs, website, everything.
I can help setting it up, I did it on a dozen websites last month.
What about Sphinx + readthedocs.org?
As of today, you can also use master as a source to build gh-pages for, and even a docs/ subdirectory in the master branch:
https://github.com/blog/2228-simpler-github-pages-publishing
Most helpful comment
I would personally recommend using Cloudflare for the CDN, it is free and would allow HTTPS for CDN, blog, docs, website, everything.
I can help setting it up, I did it on a dozen websites last month.