Skip to content

Commit

Permalink
github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
andreweatherman committed Dec 19, 2023
1 parent 19152e0 commit a7c9766
Showing 5 changed files with 119 additions and 65 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -5,3 +5,4 @@
^_pkgdown\.yml$
^docs$
^pkgdown$
^\.github$
1 change: 1 addition & 0 deletions .github/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.html
48 changes: 48 additions & 0 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
release:
types: [published]
workflow_dispatch:

name: pkgdown

jobs:
pkgdown:
runs-on: ubuntu-latest
# Only restrict concurrency for non-PR jobs
concurrency:
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
steps:
- uses: actions/checkout@v3

- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::pkgdown, local::.
needs: website

- name: Build site
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
shell: Rscript {0}

- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/github-pages-deploy-action@v4.4.1
with:
clean: false
branch: gh-pages
folder: docs
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -26,3 +26,4 @@ Imports:
stringr,
usethis
Roxygen: list(markdown = TRUE)
URL: https://andreweatherman.github.io/cbbdata/
133 changes: 68 additions & 65 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -1,82 +1,85 @@
url: http://www.aweatherman.com/cbbdata
url: https://andreweatherman.github.io/cbbdata/
template:
bootstrap: 5
theme: breeze-light
bslib:
base_font: {google: "Jost"}
heading_font: {google: "Oswald"}
code_font: {google: "JetBrains Mono"}
base_font:
google: Jost
heading_font:
google: Oswald
code_font:
google: JetBrains Mono
twitter:
creator: "@andreweatherman"
creator: '@andreweatherman'
card: summary_large_image

navbar:
structure:
left: [reference, news]
right: [search, github]

left:
- reference
- news
right:
- search
- github
home:
title: CBBData R Package
links:
- text: Andrew's Twitter
href: https://twitter.com/andreweatherman
target: "_blank"
target: _blank
- text: Andrew's Personal Site
href: https://www.aweatherman.com/
target: "_blank"

target: _blank
reference:
- title: "Metric Ratings"
desc: "Functions for grabbing metric ratings from T-Rank"
contents:
- cbd_torvik_ratings
- cbd_torvik_ratings_archive
- cbd_torvik_team_factors
- cbd_kenpom_ratings
- cbd_kenpom_ratings_archive
- title: "Player Data"
desc: "Functions for grabbing player-level data"
contents:
- cbd_torvik_player_game
- cbd_torvik_player_season
- cbd_torvik_player_split
- title: "Team + Conference Data"
desc: "Functions for grabbing team- and conference-level data"
contents:
- cbd_torvik_team_split
- cbd_torvik_team_history
- cbd_torvik_conf_factors
- title: "Game Data"
desc: "Functions for grabbing game-level data"
contents:
- cbd_torvik_game_box
- cbd_torvik_game_factors
- cbd_torvik_game_stats
- cbd_torvik_season_schedule
- title: "Predictions"
desc: "Functions for running T-Rank predictions and Monte Carlo simulations"
contents:
- cbd_torvik_game_prediction
- cbd_torvik_season_prediction
- cbd_torvik_season_simulation
- title: "Tournament Results + Resumes"
desc: "Functions for grabbing historical tournament performance and team sheets"
contents:
- cbd_torvik_current_resume
- cbd_torvik_ncaa_results
- cbd_torvik_ncaa_sheets
- cbd_torvik_resume_database
- cbd_torvik_similar_resumes
- title: "gt Utilities"
desc: "Utility functions for gt tables"
contents:
- gt_theme_athletic
- cbd_gt_logos
- title: "Other"
contents:
- cbd_create_account
- cbd_login
- cbd_kenpom_authorization
- cbd_teams

- title: Metric Ratings
desc: Functions for grabbing metric ratings from T-Rank
contents:
- cbd_torvik_ratings
- cbd_torvik_ratings_archive
- cbd_torvik_team_factors
- cbd_kenpom_ratings
- cbd_kenpom_ratings_archive
- title: Player Data
desc: Functions for grabbing player-level data
contents:
- cbd_torvik_player_game
- cbd_torvik_player_season
- cbd_torvik_player_split
- title: Team + Conference Data
desc: Functions for grabbing team- and conference-level data
contents:
- cbd_torvik_team_split
- cbd_torvik_team_history
- cbd_torvik_conf_factors
- title: Game Data
desc: Functions for grabbing game-level data
contents:
- cbd_torvik_game_box
- cbd_torvik_game_factors
- cbd_torvik_game_stats
- cbd_torvik_season_schedule
- title: Predictions
desc: Functions for running T-Rank predictions and Monte Carlo simulations
contents:
- cbd_torvik_game_prediction
- cbd_torvik_season_prediction
- cbd_torvik_season_simulation
- title: Tournament Results + Resumes
desc: Functions for grabbing historical tournament performance and team sheets
contents:
- cbd_torvik_current_resume
- cbd_torvik_ncaa_results
- cbd_torvik_ncaa_sheets
- cbd_torvik_resume_database
- cbd_torvik_similar_resumes
- title: gt Utilities
desc: Utility functions for gt tables
contents:
- gt_theme_athletic
- cbd_gt_logos
- title: Other
contents:
- cbd_create_account
- cbd_login
- cbd_kenpom_authorization
- cbd_teams

0 comments on commit a7c9766

Please sign in to comment.