Giter Site home page Giter Site logo

dtf-ein.github.io's Introduction

circleci

Digital Task Force website

Website for our team, working with the CIO of Shared Services Canada.

Local development

  1. Install Ruby (troubleshooting).
  2. Install bundler, dependencies and start the project:
# Install bundler
gem install bundler

# Install dependencies
cd /path/to/project
bundle install

# Start the project (http://localhost:4000)
jekyll serve --livereload

Add a new page

  1. Create an English and French version of the page in the respective ./_pages/en and ./_pages/fr directory.
  2. Use Jekyll front matter to link the pages together:
# English page
---
layout: page
title: Contact us
lang: en
ref: contact # must be same for linked English/French page
permalink: /contact-us/
---

# French page
---
layout: page
title: Contactez-nous
lang: fr
ref: contact
permalink: /contactez-nous/
---

Add translated strings

  1. Edit ./_data/i18n.yml to add new English/French strings.
  2. Use them in the templates like so:
{{ site.data.i18n.en.key_name }}          # English, hard-coded
{{ site.data.i18n.fr.key_name }}          # Français, hard-coded
{{ site.data.i18n[page.lang].key_name }}  # Dynamic, based on page's language

Publish changes

Any changes merged into master are automatically published.

Credit

Theme is based on the type-theme template.

dtf-ein.github.io's People

Contributors

dependabot[bot] avatar britthurley avatar

Stargazers

Jules Kuehn avatar Paul Abrams avatar Nick Schonning avatar

Watchers

James Cloos avatar  avatar

dtf-ein.github.io's Issues

Add 'Digital Hour' page on Github.io

We should have a page dedicated to the Digital Hour - basic information on what, link to past and future materials that are available on GitHub.

Add pipeline

Should include:

  • linting
  • valdation/a11y testing

Improve README docs

Should include instructions on:

  • Environment setup
  • Template features (posts/pages)
  • License & credit

Add Contact details

Should include same details as the intro deck. These can either be on the home page or added to a contact page.

Create dev VM Vagrantfile

  • ubuntu/trusty64 ubuntu/xenial64 base image.
  • Should provision Docker and any other dev tools needed.
  • Use VirtualBox provider for now. Switch to Hyper-V later.

Improve pipeline

Accessibility testing

  • Use cucumber-puppeteeer with node-puppeteer image.
  • Simple package.json with local dev server that serves generated _site directory.

Performance

  • Cache gem and node_modules between pipeline runs.
# Gems
      - save_cache:
          key: deps-gems-{{ checksum "Gemfile.lock" }}
          paths:
            - vendor/bundle

# Node
      - save_cache:
          key: deps-node-{{ checksum "package.json" }}
          paths:
            - node_modules

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.