Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Various Backend & Site Docs Updates #823
Conversation
harding
added some commits
Apr 12, 2015
|
Oh, I just remembered to diff the |
saivann
commented on an outdated diff
Apr 13, 2015
| + | ||
| + ## Slower (but still pretty fast) build and test | ||
| + ENABLED_PLUGINS="events autocrossref" ENABLED_LANGS="en fr" make -i valid | ||
| + | ||
| +Plugins include: | ||
| + | ||
| +| Plugin | Seconds | Remote APIs | Used For | ||
| +|--------------|---------|----------------|------------------------ | ||
| +| alerts | 5 | -- | Network alert pages | ||
| +| autocrossref | 90 | -- | Developer documentation | ||
| +| contributors | 5 | GitHub.com | Contributor listings | ||
| +| events | 5 | Meetup.com; Google Maps | Events page | ||
| +| glossary | 30 | -- | Developer glossary | ||
| +| redirects | 20 | -- | Redirects from old URLs | ||
| +| releases | 10 | -- | Bitcoin Core release notes; Download page | ||
| +| sitemap | 0 | -- | /sitemap.xml |
saivann
Contributor
|
saivann
commented on an outdated diff
Apr 13, 2015
| -You can then copy the output files from _site/ to the root of your web server. | ||
| -If you have no web server, run `bundle exec jekyll serve` and visit | ||
| -http://127.0.0.1:4000/. This server requires you to add a trailing ".html" | ||
| -by hand in your browser address bar. | ||
| +(Note: you can use a different default Ruby, but you if you ever change |
|
|
saivann
commented on the diff
Apr 13, 2015
| -## Pre-build tests which, aggregated together, take less than 5 seconds to run on a typical PC | ||
| +## Install dependencies (development version) | ||
| +install-deps-development: | ||
| + bundle install | ||
| + | ||
| +## Install dependencies (deployment version) | ||
| +install-deps-deployment: | ||
| + bundle install --deployment --without :slow_test | ||
| + |
saivann
Contributor
|
saivann
commented on an outdated diff
Apr 13, 2015
|
This is fantastic, having "jekyll serve" working with clean urls has been a repeated wish with no solution. Kudos for finding a workaround! This will make the build process much more approcheable for new contributors. Everything else also LGTM (except the few small comments above)! |
|
@saivann thanks! Addressed what I think is all the applicable feedback. In the absence of critical feedback, I'll begin updating the build at translation servers around 11:00 UTC tomorrow; then I'll merge this and re-enable the glossary. When I've done that and confirmed it all works, I'll rebase the 0.10.1 branch. |
harding commentedApr 12, 2015
Separated into multiple commits for easy review, this pull includes:
make deployment(for build server) andmake travis(for Travis CI). Deployment uses only libs from Bundle (i.e.bundle --deploymentand also updates libs automatically when possible); otherwise it's identical tomake valid. Travis ismake allwith an extra keep alive previously part ofmake all.jekyll serveto make/fooserve the file at/foo.html(reducing the amount of instructions we need). Add Makefile target formake previewto launchbundle exec jekyll serve. Major update of site docs to describe installing; I spent several hours repeatedly starting from a bare install of Ubuntu Server and then testing these instructions until a successful build/preview of the site, so hopefully they're bulletproof.Before merging this commit, I will install RVM and Ruby 2.0.0 on the site build server and translation build server. (I'll also monitor the site build server and actual site uploads for problems immediately after commit. In order to ensure I have time to fix any problems, I'll only consider merging before noon my localtime.)
After this is merged and the site successfully updated, I'll re-merge the developer glossary and also rebase the Bitcoin Core 0.10.1 branch (which should be fine, but why take chances?)