Skip to content

Generate custom reports based on google lighthouse data.

Notifications You must be signed in to change notification settings

ihadgraft/lighthouse-reporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lighthouse to Markdown

Note: After v0.0.2, lighthouse3 is required. Use npm install lighthouse@next until a stable release is available.

This script runs lighthouse and provides the result to a primitive markdown templating system.

Installation

The only dependency at the moment is jinja2. To install, run:

pip install -r requirements.txt

For all help on usage run python lighthouse2md.py --help

Overriding templates

Put custom templates in ./user/templates, relative to this README file. This directory will need to be created.

For example, create ./user/templates/index.md to override the index template.

The generic audit template is audit_result.md. However, templates for specific audits can be easily overridden using the audit id. For example, create ./user/templates/structured-data.md to override the structured-data audit under SEO/Structured Data.

About

Generate custom reports based on google lighthouse data.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages