Launchpad for why and how to build Firefox extensions
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
- Jekyll site generator for Github Pages
- Yarn Package Manager
Once you have Jekyll and yarn insalled you'll need to install the dependencies:
bundle install
yarn install
Then to run locally in devlopment run:
bundle exec jekyll serve
This site has two templates: the Extension Workshop landing page and Content Guidelines pages
- Create new file
- Add header (see example below)
- Copy 'modules' needed from content-guidelines-master-template.md and paste in new file
- Save as markdown: page-name.md
---
layout: page
title: Page Name
permalink: /content-guidelines/page-name/
---
- Add the image files to
_assets/img/
- In your page, link to images using this page structure:
This tag will output an entire img
element.
{% asset "image.jpg" %}
For finer control you can use:
<img src="{% asset "image.jpg" @path %}" someattr="whatever" />
Go to data/content-guidelines-pages.yaml and add a new entry for your page:
- title: "Page Name"
url: "/content-guidelines/page-name/"
The site is auto-deployed on commits to master to https://extensionworkshop.allizom.org/
Tagged commits will be auto deployed to production.