GithubHelp home page GithubHelp logo

kaelig / ftlabs.github.io Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ftlabs/ftlabs.github.io

0.0 2.0 0.0 110.36 MB

porting the team blog to github pages

Home Page: https://ftlabs.github.io

Ruby 1.00% HTML 93.31% Shell 0.16% CSS 3.12% JavaScript 2.41%

ftlabs.github.io's Introduction

ftlabs.github.io

GitHub hosted blog of FT Labs

Local setup

$ gem install jekyll bundler
$ bundle exec jekyll serve

On a successful jekyll serve the console will tell you what localhost URL you can find the local site on

Troubleshooting

Attempting to update a gem version to satisfy a Synk issue

$ bundle install --path vendor/bundle # to install gems without sudo and added vendor and .bundle to .gitignore and added vendor to exclude: in _config.yml (because annoying error msgs) $ bundle update github-pages # which updated Gemfile.lock where github-pages was the gem which pulled in the gem which needed to be updated... $ bundle exec jekyll serve # to check it runs locally

Attempting to run 'jekyll new ftlabs'

If you get this error:

/Library/Ruby/Gems/2.3.0/gems/bundler-2.0.1/lib/bundler/spec_set.rb:87:in `block in materialize': Could not find addressable-2.5.2 in any of the sources (Bundler::GemNotFound)

You may need to run bundle update to see if there were any issues (download or permissions) with your installation.


If you get this error:

/Library/Ruby/Gems/2.3.0/gems/bundler-2.0.1/lib/bundler/runtime.rb:319:in `check_for_activated_spec!': You have already activated liquid 4.0.1, but your Gemfile requires liquid 3.0.6. Prepending `bundle exec` to your command may solve this. (Gem::LoadError)

You can run bundle exec jekyll new ftlabs to allow the command to complete


[Archived] Notes on the Jeykll-ifying of labs.ft.com

https://ftlabs.github.io/

steps

recursive web suck of labs.ft.com

via https://darcynorman.net/2011/12/24/archiving-a-wordpress-website-with-wget/

using $ wget --mirror -p --html-extension --convert-links -e robots=off -P . http://labs.ft.com

build basic Jekyll instance

via https://jekyllrb.com/

$ gem install jekyll bundler
$ jekyll new ftlabs
$ cd ftlabs
~/ftlabs $ bundle exec jekyll serve

overlay full web suck

gratifyingly, kinda worked

process web sucked files

  • write script to process WP posts into J posts
    • obtain year, month, post name from dirs of wp post
    • extract text title from wp post
    • construct new dirs and copy file under _posts/ex-wordpress
    • with front matter prepended
  • tidy the WP pages into new dir, /ex-wordpress
  • fix http origami+cloudflare+brightcove refs in new posts to use https
  • split posts into content + layout
    • with new layout: wp-post
  • ported some pages (contact-us, jobs) into wp-post layout
  • tidy up refs to ?p=xxx / %3Fp= files
  • add GA tracking back in
  • recover missing pages: /articles/(ft-fastclick,the-economist,ft-columnflow)
  • recover missing category pages, e.g. /category/technote
  • rewrite About
  • handle authors?
    • consider using collections
  • tidy /author/ftlabs (default author)

ToDo

  • port /asset/... videos to youtube because accessibility (having been moved to /asset/... because no longer Brightcove)

ftlabs.github.io's People

Contributors

railsagainstignorance avatar seanmtracey avatar lily2point0 avatar sqyphen avatar lucas42 avatar chee avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.