- You'll need node v13.5.0. Use NVM to use this version.
- Install theme dependencies:
yarn
- Run
yarn add airtable-json --dev --ignore-engines
- Run
yarn add image-downloader --dev --ignore-engines
- Development:
yarn start
The project will be available at http://localhost:8080/.
- Run
yarn node ./scripts/airtable.js
- Events will be available in
app/assets/events.json
and Images will be available in/app/assets/images
Pages are located in /app/assets
. All event pages are in event-pages.json
, other pages have their own JSON file.
{
<!-- Page Title -->
"name": "",
"body": [
<!-- Text -->
{
"text": ""
},
<!-- Unordered List -->
{
"ul": ["li goes here", "", ""]
},
<!-- Second Level Heading -->
{
"h2": ""
},
<!-- Image -->
{
"image": "image id goes here"
},
<!-- Pullquote with optional attribution -->
{
"pullquote":
{
"quote": "",
"attribution": ""
}
},
],
"images": [
"additional image ids from the Event Pages airtable go here"
]
}
- Push to master.
- Netlify will run
yarn build
(includingprebuild
andpostbuild
) - Test site will be available at https://dlib.netlify.app/
- Checkout the
delivery-only
branch - Run
yarn build
- Drop the contents of
./dist
into folder/exhibits/dcrhp (you'll need to create these directories) - Use a command line http server (such as http-server or browsersync) within the root of the folder directory to serve up static files in the browser
- Checkout
delivery-only
- Run
yarn build
- Compress
./dist