Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions docs/core/CSH Calendar.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
## Overview

This core component is used for all the fetching, formatting and structuring for the CSH calendar portion of Jumpstart.

---

### Yielding

During a fetch of the calendar, if any other clients attempt to connect, they will be yielding async until the initial calendar cache has returned.

---

### Documentation Overview
::: core.cshcalendar
8 changes: 8 additions & 0 deletions docs/core/Slack.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
## Overview

This component handles the Slack Bot and it's related functions. Such as responding to announcments, requesting to upload to Jumpstart, and the other handles with Slack.

---

### Documentation Overview
::: core.slack
14 changes: 14 additions & 0 deletions docs/core/Wiki-thoughts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# WARNING

*"Should be pretty simple, but just in case, you garbage children have to talk to a Wiki Maintainer before adding to this category. Either that, or we'll have a less friendly talk with <b>you</b> instead."*

As stated from the Wiki Maintainers, do not add any wiki page into the Jumpstart Curated category without prior approval from a Wiki Maintainer. All information being displayed publicly needs to be verified before it is able to be shown. Don't ruin this for the rest of us

## Overview

This component handles the fetching, caching and cycling of the CSH Wikithoughts, also known as Jumpstart Curated. This is a list of CSH wiki articles to be displayed on the Jumpstart application.

---

### Documentation Overview
::: core.wikithoughts
26 changes: 26 additions & 0 deletions docs/getting-started/getting-started.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

## Installing
1. Clone and cd into the repo: git clone https://github.com/WeatherGod3218/jumpstartV2
>> Make another branch if you are working on a large PR
2.

## Setup
1. Make sure you have docker installed
>> (OPTIONAL): You can use docker compose as well!!
2. Copy the .env.template file, rename it to .env and place it in the root folder
3. Ask an RTP for jumpstart secrets, add them to the .env accordingly

## Run
1. Build the docker file
```
docker build -t Jumpstart .
```
2. Run the newly built docker on port 8000
```
docker run -p 8080:80 Jumpstart
```

### Alternatively, you can run the docker compose file as well
```
docker compose up
```
44 changes: 19 additions & 25 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,28 @@
![Static Badge](https://img.shields.io/badge/%40gravy-made_by?style=flat-square&logo=github&labelColor=%230d1117&color=%23E11C52&link=https%3A%2F%2Fgithub.com%2FNikolaiStrong)


A graphical interface that displays information in the elevator lobby of Computer Science House.
A graphical interface that displays information in the elevator lobby of Computer Science House.
All information displayed has been authorized to been shown.

This project uses Python, [FastAPI](https://fastapi.tiangolo.com/), HTML/CSS, and Javascript.
See it live [here](http://jumpstart-squared.cs.house/)!

## Installing
1. Clone and cd into the repo: git clone https://github.com/WeatherGod3218/jumpstartV2
>> (OPTIONAL): Make another branch if your working on a large thing!

## Setup
1. Make sure you have docker installed
>> (OPTIONAL): You can use docker compose as well!!
2. Copy the .env.template file, rename it to .env and place it in the root folder
3. Ask an RTP for jumpstart secrets, add them to the .env accordingly

## Run
1. Build the docker file
```
docker build -t Jumpstart .
```
2. Run the newly built docker on port 8000
```
docker run -p 8080:80 Jumpstart
```

## Alternatively, you can run the docker compose file as well
```
docker compose up
```
The application has multiple features:
1. Displays the date & time

2. CSH Logo that changes colors based on time of day. The logo can also change for holidays

3. A spot for announcements, which E-Board members can make through our Slack. This is done using a custom Slack app that utilizes Slack’s APIs.

4. A section that displays a random title from r/showerthoughts every 30 seconds.

5. An informational that displays real-time status information from CSH’s server room.

6. Calendar module that uses the Python ICalendar to display a countdown to the next 10 events from the CSH calendar.

7. Displays a daily forecast.

### AUTHORS:
- Eli Mares
- Stella Hellinger
- Nikolai Strong
5 changes: 5 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ nav:
- Home: index.md
- Getting Started: getting-started/getting-started.md
- Endpoints:
- Endpoints: endpoints/endpoints.md
- Core:
- Calendar: core/CSH Calendar.md
- Slack: core/Slack.md
- Wikithoughts: core/Wiki-thoughts.md
- Calendar: endpoints/calendar_endpoint.md
- Announcements: endpoints/announcements.md
- Slack Bot: endpoints/slack_bot.md
Expand Down
3 changes: 3 additions & 0 deletions src/core/wikithoughts.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ def clean_wikitext(text: str) -> str:
# [[Page]] -> Page
text = re.sub(r"\[\[([^\]]+)\]\]", r"\1", text)

# ^^CSH Account^^ -> User CSH Account
text = re.sub(r"\^\^([^\]]+)\^\^", r"User \1", text)

# Remove templates {{...}}
text = re.sub(r"\{\{.*?\}\}", "", text, flags=re.DOTALL)

Expand Down
Loading