Skip to content

Commit

Permalink
Added Nov 2023 NextGen updates and further improvements (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
arpita0911patel authored Dec 4, 2023
2 parents 2aa8e05 + 65461b1 commit 59ed4bc
Show file tree
Hide file tree
Showing 33 changed files with 10,110 additions and 3,094 deletions.
73 changes: 73 additions & 0 deletions blog/2023-10-29-intro-docuhub-blog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
---
title: Welcome DocuHub's Blog
description: This is first post on DocuHub about Blog.
slug: Welcome-DocuHub-Blog
# authors: apatel
authors:
- name: Arpita Patel
title: Creator/Maintener of DocuHub
url: https://github.com/arpita0911patel
image_url: https://avatars.githubusercontent.com/u/54657?v=4
tags: [blog, docuhub, nextgen, ciroh]
image: https://i.imgur.com/mErPwqL.png
hide_table_of_contents: false
---

# How to write a new Blog?

## Adding posts

### What file name to use?

DocuHub will extract a YYYY-MM-DD date from many patterns such as `YYYY-MM-DD-my-blog-post-title.md` or `YYYY/MM/DD/my-blog-post-title.md`. This enables you to easily group blog posts by year, by month, or to use a flat structure.

### Example (with Metadata/Front matter)

To publish in the blog, create a Markdown file within the blog directory.
For example, create a file at `/blog/2019-09-05-hello-docuhub.md`

e.g.

```
---
title: Welcome DocuHub
description: This is my first post on DocuHub.
slug: welcome-DocuHub
authors:
- name: John Doe
title: Co-creator of Product 1
url: <Youe github product or external article link>
image_url: <Author pic url>
- name: Jane Doe
title: Co-creator of Product 2
url: <Youe github product or external article link>
image_url: <Author pic url>
tags: [hello, docuhub, nextgen]
hide_table_of_contents: false
---
Welcome to this blog. This blog is created with [**DocuHub 2**](https://docs.ciroh.org/).
<!-- truncate -->
This is my first post on DocuHub.
A whole bunch of exploration to follow.
```

## What is Metadata/Front Matter

The front matter is useful to add more metadata to your blog post, for example, author information, but Docusaurus will be able to infer all necessary metadata without the front matter.

Front matter is provided at the very top of the file, enclosed by three dashes ---. The content is parsed as YAML.

```
---
title: My Doc Title
more_data:
- Can be provided
- as: objects
or: arrays
---
```

19 changes: 19 additions & 0 deletions blog/2023-10-30-NGIAB-Updates.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: NextGen In A Box Updates
description: News and release notes for NGIAB
slug: NextGen-In-A-Box Release Notes
authors:
- name: Arpita Patel
url: https://github.com/arpita0911patel
image_url: https://avatars.githubusercontent.com/u/54657?v=4
- name: Zach Wills
url: https://github.com/orgs/CIROH-UA/people/ZacharyWills
image_url: https://avatars.githubusercontent.com/u/60660437?v=4

tags: [nextgen]
hide_table_of_contents: false
---

We've introduced a fresh addition within the NGIAB, offering the most up-to-date insights on NGIAB and NextGen monthly updates.

[Visit NGIAB Release Notes Page](/docs/products/tools/nextgeninabox/news)
18 changes: 18 additions & 0 deletions blog/2023-10-30-NextGen-Forcings.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
title: NextGen Framework Forcings
slug: NextGen Forcings
authors:
- name: Jordan Laser
url: https://github.com/orgs/CIROH-UA/people/JordanLaserGit
image_url: https://avatars.githubusercontent.com/u/79336055?v=4
tags: [nextgen]
hide_table_of_contents: false
---

## NextGen Framework Forcings

A new [forcing processor](https://github.com/CIROH-UA/ngen-datastream/tree/main/forcingprocessor) tool has been made public. This tool converts any National Water Model based forcing files into ngen forcing files. This process can be an intensive operation in compute, memory, and IO, so this tool facilitates generating ngen input and ultimately makes running ngen more accessible.

### Read more

[Visit Github](https://github.com/CIROH-UA/ngen-datastream/tree/main/forcingprocessor)
25 changes: 25 additions & 0 deletions blog/2023-11-30-NGIAB-Updates-All.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
title: NextGen In A Box v1.1.0 Release
description: News and release notes for NGIAB
slug: NextGen In A Box Release Notes
authors:
- name: Arpita Patel
url: https://github.com/arpita0911patel
image_url: https://avatars.githubusercontent.com/u/54657?v=4
- name: Zach Wills
url: https://github.com/orgs/CIROH-UA/people/ZacharyWills
image_url: https://avatars.githubusercontent.com/u/60660437?v=4

tags: [nextgen]
hide_table_of_contents: false
---

We've release NGIAB v1.1.0! This release fixes issues:

- [#21](https://github.com/CIROH-UA/NGIAB-CloudInfra/issues/21)
- [#67](https://github.com/CIROH-UA/NGIAB-CloudInfra/issues/67)
- [#44](https://github.com/CIROH-UA/NGIAB-CloudInfra/issues/44)

More info: https://github.com/CIROH-UA/NGIAB-CloudInfra/releases/tag/v1.1.0

[Visit NGIAB News](/docs/products/tools/nextgeninabox/news)
19 changes: 19 additions & 0 deletions blog/2023-11-30-NextGen-Update-Monthly.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: NextGen Monthly News Update - November 2023
description: News and release notes for NextGen
slug: NextGen Updates Nov 2023
authors:
- name: Arpita Patel
url: https://github.com/arpita0911patel
image_url: https://avatars.githubusercontent.com/u/54657?v=4
- name: Zach Wills
url: https://github.com/orgs/CIROH-UA/people/ZacharyWills
image_url: https://avatars.githubusercontent.com/u/60660437?v=4

tags: [nextgen]
hide_table_of_contents: false
---

We are excited to share the latest updates for NGIAB, NextGen, T-route, Hydrofabric, NextGen forcings and Community Support.

[Visit NGIAB News](/docs/products/tools/nextgeninabox/news)
7 changes: 7 additions & 0 deletions blog/authors.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
- name: apatel
title: Author Name
imageUrl: path/to/author/image.jpg

- name: anotherauthor
title: Another Author
imageUrl: path/to/another/author/image.jpg
File renamed without changes.
File renamed without changes.
15 changes: 15 additions & 0 deletions docs/education/NextGenFramework/NextGenLightningTalk2023.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
sidebar_position: 1
---

# NextGen Research Lightning Talk

## Presentor's Information

[Presentor's Information](/files/11282023_LightningTalk.pdf)

## Slides

## YouTube Recording

<iframe width="560" height="315" src="https://www.youtube.com/embed/BgiZt7h_sHQ?si=vUAvWxkYXGO7iD93" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
5 changes: 3 additions & 2 deletions docs/education/education.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---
sidebar_position: 1
---
# Education and Training Materials
# Introduction

Educational portal to tutorials, guides, and other informational materials.
Educational portal for tutorials, guides, and other informational materials.

- BYU HydroInformatics Lab
- Data Science
- NextGen Framework
2 changes: 1 addition & 1 deletion docs/products/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
sidebar_position: 1
---

# CIROH Products
# Introduction

<div className="hero hero--primary shadow--lw">
<div className="container">
Expand Down
2 changes: 1 addition & 1 deletion docs/products/tools/_category_.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"position": 2,
"link": {
"type": "generated-index",
"description": "Lets dive right into CIROH products"
"description": "Some of the many products developed and maintained at CIROH are listed here:"
}
}
39 changes: 39 additions & 0 deletions docs/products/tools/nextgeninabox/Conference Material.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
sidebar_position: 3
title: "Conference Material"
description: "NextGen In a Box (NGIAB) Conference Material"
tags:
- NextGen In A Box
- NGIAB
- NextGen framework
- National Water Model
- national water center
- slides
- recordings
---


Slides and recordings from the various conferences can be found in the below section.

### Community NextGen Advancement Lightning Talk - Nov 2023

- Presentor: Arpita Patel
- [Community NextGen and Infrastructure Enhancements Slides](https://github.com/CIROH-UA/Conferences/tree/main/NextGenLightningTalkNov2023)
- YouTube Recording Details:
- **Video Link:** [CIROH YouTube](https://www.youtube.com/watch?v=BgiZt7h_sHQ)
- **Timestamp:** 52:56

### CIROH Science Meeting - October 2023

- Presentor: Arpita Patel
- [NextGen In A Box Poster - Poster](https://github.com/CIROH-UA/Conferences/tree/main/ScienceMeeting2023-Poster)

### Summer Institute - June 2023

- Presentor: Arpita Patel
- [NextGen In A Box Slides](https://github.com/CIROH-UA/Conferences/tree/main/SummerInstitute2023)

### CIROHDevCon1 - May 2023

- Presentor: Arpita Patel
- [NextGen In A Box Slides](https://github.com/CIROH-UA/Conferences/tree/main/CIROHdevCon23)
4 changes: 2 additions & 2 deletions docs/products/tools/nextgeninabox/_category_.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"label": "NextGen In A Box",
"label": "NextGen In A Box (NGIAB)",
"position": 1,
"link": {
"type": "generated-index",
"description": "Lets dive right into NGIAB"
"description": "NextGen In A Box (NGIAB) is a ready-to-run, containerized and cloud-friendly version of NextGen framework, packaged with scripts to help prepare data and get you modeling more quickly."
}
}
3 changes: 3 additions & 0 deletions docs/products/tools/nextgeninabox/news.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ tags:
- NGIAB
- NextGen
- News
- troute
- forcings
- hydrofabric
---
import News from './news';

Expand Down
67 changes: 52 additions & 15 deletions docs/products/tools/nextgeninabox/newscomponent.jsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,28 @@
import React from 'react';
import React from "react";

const NewsComponent = ({ data }) => {
return (
<div>
<ul className="pills">
<hr />
<ul className="pills pills--block">
<li className="pills__item pills__item--active">{data.date}</li>
</ul>

{data.items.map((item, index) => (
<div key={index}>
<span className={`badge badge--${getBadgeClass(item.type)}`}>{item.type}</span> <strong> {item.title}</strong>
<br/>{item.description}
<br /><br />
<div key={index} style={{ "padding-bottom": "25px" }}>
<span className={`badge badge--${getBadgeClass(item.type)}`}>
{item.type}
</span>{" "}
<strong> {item.title}</strong>
<br />
{renderDescription(item.description, item.link)}
{item.link && (
<div>
<a href={item.link} target="_blank" rel="noopener noreferrer">
Read more...
</a>
</div>
)}
</div>
))}
</div>
Expand All @@ -21,16 +32,42 @@ const NewsComponent = ({ data }) => {
// Function to determine the badge class based on item.type
function getBadgeClass(type) {
switch (type) {
case 'bug':
return 'danger';
case 'note':
return 'info';
case 'feature':
return 'success';
case 'news':
return 'info';
case "bug":
return "danger";
case "note":
return "info";
case "feature":
return "success";
case "news":
return "info";
default:
return 'primary'; // Provide a default class if type doesn't match the cases above
return "primary"; // Provide a default class if type doesn't match the cases above
}
}

// Function to render the description with links
function renderDescription(description) {
const parts = description.split(" ");
return (
<>
{parts.map((part, index) => (
<React.Fragment key={index}>
{index > 0 && " "}
{isWebLink(part) ? (
<a href={part} target="_blank" rel="noopener noreferrer">
{part}
</a>
) : (
<span>{part}</span>
)}
</React.Fragment>
))}
</>
);
}

// Function to check if a part is a web link
function isWebLink(part) {
return part.startsWith("http://") || part.startsWith("https://");
}
export default NewsComponent;
Loading

0 comments on commit 59ed4bc

Please sign in to comment.