Giter VIP home page Giter VIP logo

mozilla-reports's Introduction

Mozilla Reports

This repository contains public data analyses.

You can find the rendered reports at:

Adding a new report

First, fork this repository and clone the fork locally. Be sure to set the upstream remote:

git remote add upstream [email protected]:mozilla/mozilla-reports.git

Copy your report

Once you have a local copy of the repository, copy your report to a new directory in this repository. For example, if you have an analysis in ~/Documents/user_count/:

cd mozilla-private-reports
cp -r ~/Documents/user_count ./user_count

Your report is copied to the rendered site without any modifications. Be sure that your analysis directory contains a fully rendered copy of your report

The entire directory is included in the rendered site, so your report can be comprised of multiple pages

Add metadata

Add a report.json file to your new directory. This registers your index.html file as a report and provides metadata necessary for generating the index pages.

The required fields are documented in docere's documentation: Here's a minimal example:

{
  "title": "User Count Report",
  "publish_date": "2018-03-01",
  "author": "Wadley Hickam"
}

By default, docere looks links to an index.html file in your report directory. You can override this by specifying a "file" key to report.json

Preview your changes

We use docere to generate metadata pages for these reports.

Make sure you have a python environment with docere installed:

python3 -m venv venv
source venv/bin/active
pip install docere

And then you can preview content by invoking:

./script/render.sh
firefox site/index.html

Publish

To publish your report, create a pull request and get review. Once your report is merged to master, it will automatically be pushed to [dev RTMO]

For example, using GitHub's CLI, hub:

git add .
git checkout -b user_count_report
git commit -am "Add user count report"
git push -u origin user_count_report
hub pull-request

mozilla-reports's People

Contributors

acmiyaguchi avatar akkomar avatar benwu avatar chutten avatar dexterp37 avatar fbertsch avatar felixlawrence avatar haroldwoo avatar harterrt avatar jklukas avatar katejim avatar mozilla-github-standards avatar mreid-moz avatar squarewave avatar tdsmith avatar teonbrooks avatar vitillo avatar

Watchers

 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.