This repository tracks a subset of the static files hosted at static.readup.org
that is useful for local app development. The static.readup.org
server serves three main purposes:
-
Hosting font and image files used by the various Readup clients.
These files are included in this repository in the
content
directory. This will be the root directory of ourstatic.readup.org
development server. -
Hosting the web app and embed JavaScript and CSS bundles.
These files are generated by the
web
repository build system. We'll set up virtual directories at/app/bundles
and/embed
that point to the build output directories. -
Hosting native client script files and indexes of those files in order to facilitate over-the-air updates.
Not required for development use except for testing of the script update functionality.
There is no build system in this repository. Follow the setup guide in the dev-env
repository which covers setting up a web server which will reference the files in this repository.
This repository includes the production builds of the nativeClient/reader
and nativeClient/shareExtension
scripts from the web
repository. Perform the following update procedure whenever a new version of either script is available:
-
Copy the production build of the latest
nativeClient/reader
ornativeClient/shareExtension
script tocontent/native-client/reader/bundle-{version}.js
orcontent/native-client/share-extension/bundle-{version}.js
respectively. -
Delete any earlier scripts that use the same major version. Only the latest version available for each major version should be maintained.
-
Update the
content/native-client/reader.txt
orcontent/native-client/share-extension.txt
index files to reflect the new list of available scripts.Important: This file is processed by various Readup clients and should not contain any blank lines, contain only Unix-style
LF
newline characters, and be encoded using UTF-8.
This repository tracks the folders app
, common
, email
, extension
(legacy) and native-client
.
The static.readup.org
bucket also hosts email-content
(assets for specific marketing emails), embed
(archives) and media
(misc assets).
To sync the latest state of this repository to the s3://static.readup.org
bucket, without removing the content that is not tracked here, run:
aws s3 sync --exclude "*.DS_Store" content/app s3://static.readup.org/app
aws s3 sync --exclude "*.DS_Store" content/common s3://static.readup.org/common
aws s3 sync --exclude "*.DS_Store" content/email s3://static.readup.org/email
aws s3 sync --exclude "*.DS_Store" --cache-control max-age=0 content/native-client s3://static.readup.org/native-client