Skip to content

gsmith-scottlogic/blog

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scott Logic Blogs

See the confluence page for user instructions, and use the blog tool for an easy way to publish blog posts

Cloning the repository

Sparse checkout requires Git 2.25.0

Ensure that you have configured SSH to connect to private GitHub repositories.

If you wish to develop changes to the blog locally, you may find that there's a lot of content, and prefer just to download the bits you need.

# see comment above about configuring SSH, and modify the clone URL accordingly to use the correct SSH identity
# you may also consider forking the blog repository, and cloning your personal fork instead
git clone --depth 1 --filter=blob:none --no-checkout [email protected]:ScottLogic/blog.git
cd blog
git sparse-checkout init --cone
# modify this variable with the author name you wish to write posts under (typically derived from your SL email address)
AUTHOR='abirch'
git sparse-checkout set _includes _layouts _data category scripts scss assets "$AUTHOR"
git checkout gh-pages

This gets the repository down to ~8MB and ~150 files (whereas checking out all authors' posts would take hundreds of megabytes).

Run local copy of blog (for blog devs only)

NOTE: Instructions are work in progress.

The blog consists of static HTML pages with content generated using Jekyll markdown.

Linux:

  1. sudo apt-get install ruby2.3 ruby2.3-dev build-essential dh-autoreconf
  2. sudo gem update
  3. sudo gem install jekyll bundler
  4. Run 'jekyll -v' to check whether Jekyll is working
  5. bundle config path vendor/bundle
  6. gem install bundler
  7. sudo apt-get install libxslt-dev libxml2-dev zlib1g-dev
  8. sudo gem install nokogiri
  9. bundle install
  10. bundle exec jekyll serve
  11. Uncomment the lines in _config.yml
  12. Access on http://localhost:4000

To minify JS, run:

npm run scripts

To minify SCSS, run:

npm run style

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 58.9%
  • HTML 34.4%
  • CSS 5.2%
  • SCSS 0.9%
  • Java 0.5%
  • Python 0.1%