From 8a4035e8db2087fd1d6a6bc6d9108614c078d1cf Mon Sep 17 00:00:00 2001 From: Kevin Lin <kevinl@cs.uw.edu> Date: Wed, 5 Feb 2020 19:19:29 -0800 Subject: [PATCH] Add generic setup for CSE courseweb runner --- .gitlab-ci.yml | 62 +++++++++++++++++++++++++++++++++++++++++++++++++ _config.yml | 17 ++++++++------ favicon.ico | Bin 0 -> 1150 bytes 3 files changed, 72 insertions(+), 7 deletions(-) create mode 100644 .gitlab-ci.yml create mode 100644 favicon.ico diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..5a6bfa1 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,62 @@ +stages: + - build + - deploy + +variables: + JEKYLL_ENV: production + LC_ALL: en_US.UTF-8 + +cache: + paths: + - _vendor/ruby + - _gems + key: dependencies-shared-across-all-branches + +before_script: + - export PATH="$(pwd)/_gems/bin:$PATH" + - export GEM_HOME="$(pwd)/_gems/" + - gem install bundler + - bundle config set path '_vendor' + - bundle install + +test: + stage: build + tags: + - courseweb + script: + - bundle exec jekyll build -d test + artifacts: + paths: + - test + except: + - master + +pages: + stage: build + tags: + - courseweb + script: + - bundle exec jekyll build -d public + artifacts: + paths: + - public + only: + - master + +courseweb: + stage: deploy + tags: + - courseweb + before_script: [] + script: /www/utils/deploycourseweb.sh + cache: {} + variables: + course: cseXXX + quarter: XXxx + source_path: public + delete: 'yes' # https://yaml.org/type/bool.html + GIT_STRATEGY: none + only: + - master + dependencies: + - pages diff --git a/_config.yml b/_config.yml index 89663cb..f7b55d3 100644 --- a/_config.yml +++ b/_config.yml @@ -17,9 +17,10 @@ title: Just the Class tagline: A Jekyll template for course websites description: A modern, highly customizable, responsive Jekyll template for course websites author: Kevin Lin -baseurl: '/just-the-class' # the subpath of your site, e.g. /blog -url: 'https://kevinl.info' # the base hostname & protocol for your site, e.g. http://example.com +baseurl: '/courses/cseXXX/XXxx' # the subpath of your site, e.g. /blog +url: 'https://courses.cs.washington.edu' # the base hostname & protocol for your site, e.g. http://example.com exclude: ["Gemfile", "Gemfile.lock", "LICENSE", "README.md"] +google_site_verification: 'QclY_1udbdKts462GzFHLmFoaioICIQ16kjZumjRJIg' # Theme settings remote_theme: pmarsceill/just-the-docs@v0.3.3 @@ -28,11 +29,12 @@ search_enabled: true heading_anchors: true permalink: pretty aux_links: - Kevin Lin: - - 'https://kevinl.info' - Just the Class on GitHub: - - 'https://github.com/kevinlin1/just-the-class' -footer_content: + Advising: + - 'https://cs.washington.edu/academics/ugrad/advising' + Feedback: + - 'https://feedback.cs.washington.edu/' +aux_links_new_tab: true +footer_content: 'Kevin Lin © 2020 <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">CC BY-NC-SA 4.0</a>' # Collections for website data collections: @@ -74,3 +76,4 @@ compress_html: plugins: - jekyll-seo-tag + - jekyll-sitemap diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..3398aef93280f1c3c1cab181ba8f8d60469d2b4f GIT binary patch literal 1150 zcmZQzU<5(|0R|wcz>vYhz#zuJz@P!dKp~(AL>x#lFaYJyLA1K%|KWs-TtojiMyCI- z4N3YRtzq>)M$`I#eRwKZEYC53pkJ?_I`<z0{`~&^KikIVe~Cu~m=7XO?>c~2f4r{U z|DWG~z|~L6ul_%$wgb-p{NdyOSfG1wg?DpwCRpvizkmOKc>VVO-WBWrAKthfEC%BL z1&UV(Cg9Y+dg3gw+P5!W{og!i$^YjM9{qpw>;+hC^X$d{LE_80rr^|n_4paE+7sLN z{%?-S{QvLYKQJFev?u2MKeBPh|BHu?W7VHz==A^F=PzLO3tRgBCmJ~Z|MKw@nE(CD z*Z*l|?*C_2wt&Sza>!u-l3Uz95o{mG&ShPb!RpT+JO<W(`@)s~iTaNJ=hk(A)qvE3 z^uWw$f`%JdF_Zv_E$x^D=7IcP;1mRoQ<xf%JWPLzu?skTfYJ>NgTzuz-N5`zE3g0Y Wy7vDYBGXXhVfu$Mjb0v*$_D`2C`W4m literal 0 HcmV?d00001 -- GitLab