Coder Social home page Coder Social logo

octoenergy.github.io's Introduction

Kraken Technologies blog

This repo provides a Jekyll site for the https://tech.octopus.energy site. The site is published using Github Pages.

Installation

System prerequisites

You should have Ruby 3.2.3 installed and available on the command line:

> ruby --version
ruby 3.2.3 (2024-01-18 revision 52bb2ac0a6) [arm64-darwin23]

If you don't have the correct version of Ruby

There are a few different ways to manage Ruby versions on your computer locally. If you're not sure what to do, try the following:

  1. Install asdf:
  • brew install asdf
  • Add the correct line to your .bashrc / .zshrc etc, as per these instructions.
  • Open a new terminal and navigate to this folder.
  1. asdf plugin add ruby
  2. asdf install ruby 3.2.3
  3. asdf local ruby 3.2.3

Now check you're on Ruby 3.2.3:

> ruby --version
ruby 3.2.3 (2024-01-18 revision 52bb2ac0a6) [arm64-darwin23]

Installing the dependencies

> bundle config set --local path .bundle
> bundle install

(This will install the Ruby libraries listed in Gemfile.lock.)

Verify the server starts

> make server

Adding new blog posts

Add new posts by creating a markdown file in _posts/ with filename format YYYY-MM-DD-article-slug.md (e.g. 2019-02-20-some-article-description.md). You should also add a header containing the title and author of the article, amongst other items. For a blog post to appear, the category must be set to news. Check existing posts for examples.

Ensure your details are in the _data/members.yml file.

Preview the appearance by running the local development server with:

make server

which will serve the site at http://localhost:4000.

When the post is ready, submit a pull request and request review from the @octoenergy/publicity team.

Once approved, publish by merging your pull-request to master.

Working on site appearance

The css/main.scss SASS file is compiled by Jekyll and served as css/main.css in the static site.

You can work on site appearance by editing the SASS files in _sass/ and using the live reload to preview changes.

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.