Skip to content

NYULibraries/dlts-open-square

Repository files navigation

Static pages for Open Square: Knowledge without Boundaries

URL: https://opensquare.nyupress.org/

Open Square is NYU Press’s platform for publishing and reading open access books. It is comprised of static HTML pages used for the home page, subject pages, book details, etc; a Javascript search application; and the book-reading application itself.

This repo holds the content, configurations, and theme for the static pages. It uses Hugo (https://gohugo.io/), the world’s fastest framework for building websites.

Installation

Install GoLang (needed because we use modules here)

  • brew install go

Install Hugo

  • brew install hugo

Build

To build: use the hugo command, with the -e (environment) option, and one of the environments set up in config directory. To get the latest remote info, use the ignoreCache flag. For example

  • hugo --ignoreCache -e local
  • hugo --ignoreCache -e dev
  • hugo --ignoreCache -e stage
  • hugo -e production
  • hugo --ignoreCache -e production

For hugo server hugo server --ignoreCache -e local To build with exact files (may not be necessary, since you can use hugo command for that. )

Associated Repositories

The Vue.js / Solr search application: https://github.com/NYULibraries/dlts-open-square-search-application

The builder for the reader: https://github.com/NYULibraries/dlts-readium-js-viewer

The plugin for the reader (automatically installed by the builder above): https://github.com/NYULibraries/dlts-rjs-plugin-open-square

About

Static site generator for Open Square, NYU Press's Open Access reading platform

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •