Skip to content

About

Spatial Model Editor Website

Resources

Stars

0 stars

Watchers

2 watching

Forks

Repository files navigation

icon

Build and deploy to gh-pages W3C Validation

How it works

  • each page is a Nunjucks HTML template in src/pages
  • the contents of each page are stored in a corresponding yaml file next to the template
  • uses CSS, JS and icons from the Bootstrap framework
  • uses pnpm to manage dependencies
  • uses Eleventy as the static site generator

Structure

Deployment

On every commit to the main branch:

How to edit locally

  • clone this repo
    • git clone https://github.com/spatial-model-editor/spatial-model-editor.github.io.git
    • cd spatial-model-editor.github.io
  • (optional) install pre-commit to auto-format code
    • pip install pre-commit
    • pre-commit install
  • install pnpm
    • windows: iwr https://get.pnpm.io/install.ps1 -useb | iex
    • linux/macOS: curl -fsSL https://get.pnpm.io/install.sh | sh -
  • install website dependencies
    • pnpm install
  • start a live in-browser local preview of the website
    • pnpm start
  • make changes to the files in src/ and the preview will update automatically

Adding a new page

To add a page X:

  • create a text file src/pages/X.11tydata.yml with the contents page_title: "X"
  • create a text file src/pages/X.njk that extends the base layout
  • add an entry for it to the list of pages in src/pages/_data/navbar.yml

Acknowledgements

About

Spatial Model Editor Website

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages