Skip to content

Commit

Permalink
To be continued: US-RSE'25 website start
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmundt committed Sep 24, 2024
0 parents commit 594a82f
Show file tree
Hide file tree
Showing 113 changed files with 37,993 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .circleci/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# CircleCI Website Previews

This directory and its files control CircleCI previews being generated
whenever a PR is opened. The files should be modified to the appropriate
conference year (e.g., usrse25).

3 changes: 3 additions & 0 deletions .circleci/circle_urls.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
BASEURL=https://output.circle-artifacts.com/output/job/${CIRCLE_WORKFLOW_JOB_ID}/artifacts/${CIRCLE_NODE_INDEX}/usrse.github.io/usrse25
sed -i "8 s,.*,baseurl: $BASEURL,g" "_config.yml"
sed -i "7 s,.*,url: \"\",g" "_config.yml"
79 changes: 79 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
version: 2.1

workflows:
version: 2

# The build workflow will build a preview for the site, intended for PRs
build:
jobs:
- build-site:
filters:
branches:
ignore: gh-pages

install: &install
name: Install dependencies for build
command: |
$HOME/conda/bin/pip install -r ~/repo/.circleci/requirements.txt
install_python_3: &install_python_3
name: Install Python dependencies
command: |
ls $HOME
if [ ! -d "/home/circleci/conda" ]; then
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
/bin/bash Miniconda3-latest-Linux-x86_64.sh -b -p $HOME/conda
export PATH=$HOME/conda/bin:$PATH
else
echo "Miniconda 3 is already installed, continuing to build."
fi
build_jekyll: &build_jekyll
name: Jekyll Build
command: |
if [ -z "$CIRCLECI_TRIGGER" ]; then
echo "Building US-RSE'25 website for Preview"
cp ~/repo/.circleci/circle_urls.sh ~/repo/circle_urls.sh
cd ~/repo
chmod u+x circle_urls.sh
bash circle_urls.sh
bundle exec jekyll build
else
echo "Nightly build detected, preview not needed."
fi
jobs:
build-site:
docker:
- image: cimg/ruby:3.1
working_directory: ~/repo
environment:
- JEKYLL_ENV: production
- NOKOGIRI_USE_SYSTEM_LIBRARIES: true
- BUNDLE_PATH: ~/repo/vendor/bundle
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies
- rubygems-v1
- run: *install_python_3
- run: *install
- save_cache:
paths:
- /home/circleci/conda
key: v1-dependencies
- run:
name: Bundle Install
command: |
cd ~/repo
bundle check || bundle install
- save_cache:
key: rubygems-v1
paths:
- vendor/bundle
- run: *build_jekyll
- store_artifacts:
path: ~/repo/_site
destination: usrse.github.io/usrse25
1 change: 1 addition & 0 deletions .circleci/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pyaml>=17.12.1
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
_site/
Gemfile.lock
27 changes: 27 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!--- Thank you for opening a pull request! Here are some helpful tips:
1. To solicit reviewers:
the Committee chairs are automatically notified when you open this pull request
If you need additional reviewers you can:
(if you have permission to do so) assign the label "reviewers-needed"
if you are on the usrse slack, post a link to your PR there and ask for reviewers
2. To get help:
you can ask the question directly in this pull request for the Committee chairs
-->

<!--- Provide a general summary of your changes in the Title above -->

## Description
<!--- Describe your changes in detail. -->


## Checklist:
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
- [ ] (Committee Chairs Only) I have posted the link for the PR to ask for content reviewers
- [ ] I have previewed changes locally
- [ ] I have updated the README.md if necessary

cc **ADD GITHUB HANDLES HERE**

45 changes: 45 additions & 0 deletions .github/workflows/linting.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Check Spelling and URLs

on: [pull_request]

# Kill concurrent jobs from the same PR/branch - only one will run at a time
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
urlcheck:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Check Spelling
uses: crate-ci/typos@c97d621b6b01d8b0258538ca15abeca5c5764601 # version 1.16.23
with:
config: ./.github/workflows/typo_config.toml

- name: URLs-checker

uses: urlstechie/[email protected]
with:
# A comma-separated list of file types to cover in the URL checks
file_types: .md,.py,.yml

# Choose whether to include file with no URLs in the prints.
print_all: false

# More verbose summary at the end of a run
verbose: true

# How many times to retry a failed request (defaults to 1)
retry_count: 3

# Google Forms is having enormous timeouts
timeout: 10

# Exclude these patterns from the checker
exclude_patterns: supercomputing.org,https://www.hyatt.com/shop/chixl?location=Hyatt%20House%20Chicago%20%2F%20West%20Loop-Fulton%20Market&checkinDate=2023-10-15&checkoutDate=2023-10-19&rooms=1&adults=1&kids=0&corp_id=g-uicf

# Exclude these files from the checker
exclude_files: README.md,SocialNetworks.yml,_config.yml,tests/test_,.github/workflows
14 changes: 14 additions & 0 deletions .github/workflows/typo_config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[files]
extend-exclude = [
".git/",
".github/workflows/typo_config.toml",
"assets/js/*.min.*",
]
ignore-hidden = false
[default]
extend-ignore-re = [
"Brain tailoRed stImulation protocoL",
"Vas Vasiliadis",
"SER",
"Mey",
]
19 changes: 19 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# project
_site
.sass-cache
.vagrant
Gemfile.lock

# VS Code
.vscode/*

# general
.DS_Store
Thumbs.db
ehthumbs.db

# python
__pycache__
*.pyc

*~
16 changes: 16 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
layout: default
title: 404 - Page not found
permalink: /404.html
---

<div class = "row">
<div class="col-md-6" style="margin:auto">
<img src="{{ site.baseurl }}/assets/img/new_trans_circular_logo.png" alt="404 Logo">
</div>
<div class ="col-md-6" style="margin:auto">
<h1>Sorry about that...</h1>
<p>Seems that we've misplaced that URL or it's pointing to something that doesn't exist.
<a href="{{ site.baseurl }}/">Let's try again!</a></p>
</div>
</div>
Loading

0 comments on commit 594a82f

Please sign in to comment.