Skip to content

DEPRECATED!!!! Convert Regular HTML Article Pages into AMP Pages or Facebook Instant Articles

License

Notifications You must be signed in to change notification settings

mmadde10/Notitia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notitia

DEPRECATED!!!!

Please Use One of These Instead:

Convert Regular HTML article Pages into AMP Pages or Facebook Instant Articles

Information

Notitia (Latin for Knowledge) is a node module. Notitia converts basic HTML based articles into either AMP (Accelerated Mobile Pages) markup or into Facebook Instant Article Markup. Notitia automates the process of converting plain html code into these two article formats, eliminating the need to create multiple copies of the same article.

Installation

  • Install using NPM
npm install notitia
  • Import to your Project
import * as notitia from 'notitia';

Methods

Build Facebook Instant Article

let Not = new Notitia(contents);
let instantArticle = Not.createFBInstantArticle(contents);
//Returns Facebook Instant Article Markup

Build AMP Page HTML

let Not = new Notitia(contents);
let ampPage = Not.createAMPPage(contents);
//Returns AMP Complient HTML

Build AMP Page HTML (Body Only)

let Not = new Notitia(contents);
let ampPageBody = Not.createAMPBody(contents);
//Returns AMP Complient HTML (Body Only)

Note: CreateAMPBody Method will only return the body of the AMP HTML Page. This will not pass the AMP Validator. For More info visit AMP's Documentation

Testing

Jest is used to run tests on Notitia

npm run test

Dependencies

License

MIT

About

DEPRECATED!!!! Convert Regular HTML Article Pages into AMP Pages or Facebook Instant Articles

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published