-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Start using tut to improve quality of tutorials. #591
Comments
Wish you the best of luck! If your proposal fails here, I'm definitely interested in looking at it over in soc/scala-lang. |
the doc site (unlike scala-lang.org) is built and served by GitHub. does that have implications for whether this is feasible? before starting on the build changes, I think we'd need to plan out the delivery side. |
Being served by GitHub is fine. All the work is done before GitHub even see it. Of course I would need to do a little work on my side to do a proof of concept. I would likely push to production on a fork, ie see if GitHib can handle it, before I submit a pull request. At the moment I am certain that it will work but I have been proven wrong in the past. ;) What do other stake holders think about the idea? |
is the idea that |
I am not sure. I guess we will see. If Travis is a roadblock then we can deal with it then. I don't think |
the reason I'm interested in involving Travis is for pull request validation. suppose someone submits a PR that changes a tutorial. if their change makes tut fail, we want to Travis to tell us that, right there on the pull request. Travis already tells us if the changes in a pull request cause Jekyll to fail. |
basically I'm suggesting that instead of "before it allows the site to be generated" we do "before we allow a pull request to be merged" if all pull requests are validated in advance by Travis, then there's no reason for |
From a quick look around the web it looks like it is possible to get Travis to run
|
@jarrodwb I think what @SethTisue is also concerned about is the impact on "built by GitHub Pages". From a perspective of a new contributor (and maintainer), it is quite nice that a PR can be merged and the website gets rebuilt automatically without any further interaction. From my investigation, that should still work and wouldn't require running Jekyll within the sbt build, but would add some additional build step that people would need to be aware of if building locally. While Jekyll has some nice benefits, especially combined with GitHub pages, Jekyll has also some very terrible features. I plan to revisit alternatives again in the future. Loosing the deep integration with GitHub Pages would suck, but that it doesn't support encryption is not acceptable anymore in 2016 (imho). No encryption might not hurt that badly for documentation, but as the fork has unified the website, documentation and spec, it's a real concern for me. I really don't want people to download (native) executables over an unencrypted connection these days. |
Would hosting on S3 and using SSL meet your encryption requirements? That is easy to do and can be automated like the setup we currently have. But yeah, using PRs to build the site should not be problem. |
Hi @jarrodwb thanks for your willingness to incorporate tut; it would be a huge improvement to the site! +1 to Seth's suggestion to incorporate running tut along with the Travis CI checks. Although perhaps another idea; it could be cool to somehow integrate it into the build/generation of the website as well, and display for what version of Scala the code examples compile for, generated inline with the code snippets. However, I think to keep things focused, it's important to point out that you do not have to worry about where the documentation is hosted in your efforts to integrate tut. If you wish to integrate tut, you should only have to worry about how the build process might need to change to incorporate tut (if it needs to change and be built elsewhere from GitHub Pages). We have options for building and hosting elsewhere, but I think focusing on how tut could be integrated is the biggest unknown here. |
@jarrodwb it might be helpful to look at what @larsrh is doing at typelevel/typelevel.github.com#119 |
I am interested in converting the documentation site to use a
sbt
build process so that the code in the tutorials is checked at compile time. This could be done by using tut.The documentation site started four or five years ago and is based only on
jekyll
. Things have progressed since then.I don't think this would take to much effort to do. The only time consuming part would be to update the tutorials so that they pass the compiler. I suspect there will be quite a few bugs and typos in the tutorials.
This issue is partly inspired by #590 but there have been other issues and even some pull requests that could have been avoided if
tut
had used. For instance maybe #488 would be an example.The text was updated successfully, but these errors were encountered: