Skip to content

Commit

Permalink
Merge branch 'main' of github.com:flatironinstitute/sciware
Browse files Browse the repository at this point in the history
  • Loading branch information
billbrod committed Nov 15, 2024
2 parents d5ba7f5 + 2e6d631 commit dacd167
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,12 @@ A developing series of meetings about software development for science.
- Sep 29, 2022 [Types](24_Types): An theoretical introduction to how thinking about data types can improve code, and specific applications to mypy
- Oct 20, 2022 [Modern C++](25_ModernC++)
- Dec 15, 2022 [File Formats and Storing Data](26_DataFormats)

# Homepage Build Script

A simple Node script — [build-index-page.mjs](build-index-page.mjs) is used to render `index.html`. The Node script does not have any external dependencies, so you don't need to `npm install`:

```bash
module load nodejs
node build-index-page.mjs
```
5 changes: 5 additions & 0 deletions build-index-page.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
import fs from "node:fs";
import { execSync } from "node:child_process";

// Add events here to have them appear at the top of the page.
// If this array is empty, the page will display a message saying there are no upcoming events.
const upcoming_events = [
// {
// title: `Tool Setup, Intro to the Shell and the Cluster`,
Expand Down Expand Up @@ -77,6 +79,9 @@ const upcoming_events = [
},
];

// This is an array of past events, with the format:
// [session number, title, date, slides link, github link, vimeo link]
// The array is reversed so that the most recent events appear first.
const past_events = [
[`Session #00`, `Founding`, `Feb 28, 2019`, `/00_Founding/slides.html`, `https://github.com/flatironinstitute/sciware/tree/main/00_Founding`],
[`Session #01`, `Overview`, `Mar 28, 2019`, `/01_Overview/reveal.html`, `https://github.com/flatironinstitute/sciware/tree/main/01_Overview`],
Expand Down

0 comments on commit dacd167

Please sign in to comment.