Skip to content
This repository was archived by the owner on Nov 10, 2022. It is now read-only.

raritanlibrary/eblast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NOTE: As of May 2022, this repository is currently non-functional due to a backend change in the www repository. This repository may or may not be updated in the future to accommodate those changes.

Raritan Public Library eBlast Generator

This eBlast generator provides a quick and easy solution to semi-automatiaclly creating monthly eBlasts for Raritan Public Library.

Installation

Node.js/npm

First, download or clone the latest version of this repository. Once you have the repository downloaded in a suitable location, run the following commands to check to make sure you have Node.js and npm installed.

node --version
npm --version

Then, run the following command to install the necessary npm packages.

npm install

Usage

By default, eBlasts will be generated using the latest commit to the main branch of the www repository. Relevant data from the events.yaml and news.yaml files will be extracted and parsed to be injected into the contents of the eBlast.

Start dev server / Preview eBlast

npm run dev

This command starts up the development server. You may have to refresh cache (CTRL+F5) for new changes to take effect. You can also run npm run redev to clear cache when starting the development server, which is useful for when Parcel's hot reloading feature breaks (this is especially problematic with stylesheets).

NOTE: When running a development server, the src/main.styl file is modified to apply certain stylesheet properties to the eBlast. This should automatically reset to normal after the server is shut down, but please make sure that the file remains unchanged from its original state if you did not modify it.

Render eBlast

It is required that you keep the development server running while this process takes place.

npm run make

This command generates the eBlast and saves the resulting .pdf file in the out directory.

Issues and Contributing

Pull requests are encouraged by the Raritan Public Library to ensure our software is of the highest quality possible. If you would like to suggest major changes or restructuring of this repository, please open an issue. It is also strongly suggested you email us at info@raritanlibray.org with any additional questions or concerns.

License

MIT

About

An eBlast generator for Raritan Public Library.

Resources

License

Stars

Watchers

Forks

Contributors