diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..5a6bfa185b32794f156186cbb299718c88bb0f40 --- /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 89663cb28b6d4ca0f3a1c3e9dc4e37df65db4356..f7b55d3e68eab1569512be1d461b7f334818a250 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 Binary files /dev/null and b/favicon.ico differ