dwyl / amp-elixir

:zap: amp-elixir transforms markdown (content) to AMP (Accelerated Mobile Pages) compliant HTML so it loads ultra-fast on mobile devices! :iphone: (which boosts your Google page rank!) :rocket:
14 stars 1 forks source link

Amp Elixir

Build Status codecov.io Hex version

Amp transforms your Markdown into AMP-compliant html so it loads super-fast!

Why?

Google is putting their clout behind the AMP (Accelerated Mobile Pages) Project to help speed up page load times on the Mobile Web: https://googleblog.blogspot.co.uk/2015/10/introducing-accelerated-mobile-pages.html

This module lets you convert Markdown (.md) files to AMP-compliant .html so that you can serve them up to mobile clients much faster.

What?

For many, reading on the mobile web is a slow, clunky and frustrating experience - but it doesn’t have to be that way. The Accelerated Mobile Pages (AMP) Project is an open source initiative that embodies the vision that publishers can create mobile optimized content once and have it load instantly everywhere.

Read: https://www.ampproject.org/ How?

The best place to understand how AMP works is on the official "How it Works" page: https://www.ampproject.org/how-it-works/

Documentation

Amp Elixir should support the same markdown as described in the Earmark repository

For these limitations see: https://hexdocs.pm/earmark/Earmark.html#module-limitations

Api

Amp.parse

Background Reading

The AMP Spec: https://github.com/ampproject/amphtml

Questions?

If you have any questions please ask: https://github.com/dwyl/ampl/issues

Installation

If available in Hex, the package can be installed by adding amp to your list of dependencies in mix.exs:

def deps do
  [{:amp, "~> 0.1.0"}]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/amp.