GithubHelp home page GithubHelp logo

skade / activate.mozilla.community Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mozilla/activate.mozilla.community

1.0 3.0 4.0 6.6 MB

Activate campaign site

Home Page: https://activate.mozilla.community/

License: Mozilla Public License 2.0

Ruby 0.07% HTML 75.86% CSS 19.08% JavaScript 5.00%

activate.mozilla.community's Introduction

Activity Campaign site

You can see this site live at https://activate.mozilla.community/

How to add or update content

All content can be edited using Markdown files.

  • Front page (in English) can be modified editing index.md.
  • Pages can be added/edited from the _pages folder, including subfolders for localized content (front page included).
  • Some parts are used multiple times and therefore are in a separate file, please also check the subfolders in _includes for translations.
  • General parts of the website such as the menu are configured in _data/l10n. Please translate those strings there as well.

Each page has a top section with some variables:

---
layout: page
title:  "Developer Engagement"
permalink: /developer-engagement/
lang: en
ref: developer-engagement
---
  • layout: Layout for the page. This has to be page.
  • title: (Localizable) Main title for the page.
  • permalink: (Unique, Localizable) URL for the page, can include lang code for localized pages.
  • lang: (Localizable) Language code for this page, usually en.
  • ref: Reference for this page. Just use the permalink in English, all localized pages should have the same one.
  • parent (Optional) For subpages this defines the parent page ref.

Submit a new localization

  1. In order to request a new localization, please create a new issue with the title "LanguageName (LanguageCode) localization"
  2. The locale will be evaluated by the program manager, along with members of that community.
  3. If it gets the green light, we will notify the localization team and create the folder structure.
  4. Then the localization team can translate the markdown files in their Language.
  5. Once the localization team signs off on the translations, we will enable the language on the website.

Localize the impact form

  1. Create a new issue using the following format on the title "Impact form localization (languageCode)"
  2. To be able to localize the impact form, you need to create a new folder (using your languageCode in the title) in the _include and _pages folder.
  3. Once you create it, you need copy formcontent.html (from _include folder) into your new folder. You need to copy the impactform.md file (from the _pages folder) as well into your new folder.
  4. Localize the new file you've just copied.
  5. Send a PR and it will be evaluated before it goes online in the website.

Hack the site

If you want to hack the site you need to download it and install Jekyll.

$ git clone https://github.com/mozilla/activate.mozilla.community.git

Now install Jekyll in your system

Install the dependencies

$ bundle install

Run the site using the developer config

$ bundle exec jekyll serve --config ./_config-dev.yml

You will be able to access the site at http://127.0.0.1:4000/

Clone this repo, create a issue first and then a pull request to submit changes.

activate.mozilla.community's People

Contributors

alexlakatos avatar avelper avatar badboy avatar brianking avatar caitmuenster avatar comzeradd avatar cpswsg avatar deimidis avatar devcer avatar dineshmv avatar dvigneshwer avatar emmairwin avatar geroter avatar hossainalikram avatar igorgoncalves avatar ioana-chiorean avatar josexv1 avatar kelimuttu avatar marinalimeira avatar mathjazz avatar maykonchagas avatar mchagas avatar michaelkohler avatar rodrigowaters avatar shahbaz17 avatar skade avatar spacekookie avatar stephendonner avatar theochevalier avatar wisniewskit avatar

Stargazers

 avatar

Watchers

 avatar  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.