Skip to content

Latest commit

 

History

History
90 lines (50 loc) · 2.39 KB

README.md

File metadata and controls

90 lines (50 loc) · 2.39 KB

GSAPP Smorgasbord

This is the repository for the GSAPP Smorgasbord!

Architecture/build process

  1. On site build, a script/Nuxt module (modules/process_content.js) parses Markdown content in the /content folder and generates linkages between them.
  2. This data is generated in data/content.json.
  3. This data is loaded into Vuex via store/index.js
  4. Content that is structural (Menu generation & double linking) uses this generated data.
  5. Display and retrieval of content is done via Nuxt Content.

Module Content

See content/modules/0-template as an example; you can duplicate that folder and work from there.

Structure

Module Content is located in content/modules, with one module per folder.

Module Markdown File

Inside of each folder, there is one Markdown file (0-template-markdown-file.md) and several different images. Images should be relatively linked to (see the Markdown file for examples).

The markdown file should have this (YAML front matter) at the start of each file:

---
moduleid: 0
title: Grasshopper as Tool-making Medium
published: True
---

Make sure that the moduleid is unique! You can make sure that the module IDs don't collide by looking at our GSAPP Smorgasbord Status/Scope spreadsheet.

Development Setup

The site is created in NUXT.js. If you'd like to develop locally, so that you can see the content adjust live:

Setup

npm install or yarn install

Run Development Environment

npm run dev or yarn dev

The site will be hosted at http://localhost:3000.

Styling, etc

Image layouts

Images can be tagged with #img-full, #img-left, #img-right to position images in the document.

(These are defined in

![blahblah](0-template-gif.gif#img-full)

![alt-text](images_can_be_named_anything.png#img-left)

![more alt-text about image](images/images_work_in_subfolders.png#img-right)

Image Captions

Captions can be created by putting a line in asterisks, immediately after the image (without a line inbetween). Example:

![drawing_restraint.jpg](images/drawing_restraint_10.jpg)
*Matthew Barney, DRAWING RESTRAINT 10, 2005*

Code instruction

Code instruction blocks can be tagged using the instruction class in a markdown file. Eg.:

<div class='instruction'>
DO XYZ in Rhino
</div>