Skip to content

Commit 43f1949

Browse files
committed
Bump Theme 5.18
1 parent 03b469f commit 43f1949

File tree

161 files changed

+387
-229
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

161 files changed

+387
-229
lines changed

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
updates:
3+
# Maintain dependencies for GitHub Actions
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "daily"
8+
# Git Submosuldes
9+
- package-ecosystem: "gitsubmodule"
10+
directory: "/"
11+
schedule:
12+
interval: "daily"

.github/workflows/gh-pages.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# https://github.com/peaceiris/actions-hugo
2+
3+
name: GitHub Pages
4+
5+
on:
6+
push:
7+
branches:
8+
- master # Set a branch to deploy
9+
pull_request:
10+
11+
jobs:
12+
deploy:
13+
runs-on: ubuntu-20.04
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.ref }}
16+
steps:
17+
- uses: actions/checkout@v3
18+
with:
19+
submodules: true # Fetch Hugo themes (true OR recursive)
20+
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
21+
22+
- name: Setup Hugo
23+
uses: peaceiris/actions-hugo@v2
24+
with:
25+
hugo-version: '0.117.0'
26+
# extended: true
27+
28+
- name: Build
29+
run: hugo -b "https://ksu-cs-textbooks.github.io/cis580/"
30+
31+
- name: Deploy
32+
uses: peaceiris/actions-gh-pages@v3
33+
if: ${{ github.ref == 'refs/heads/master' }}
34+
with:
35+
github_token: ${{ secrets.GITHUB_TOKEN }}
36+
publish_dir: ./public

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
# Generated files at default location
33
/public/
44
/resources/_gen
5+
.hugo_build.lock

.gitlab-ci.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# image: docker:20.10.11
2+
3+
# variables:
4+
# # When using dind service, you must instruct docker to talk with the
5+
# # daemon started inside of the service. The daemon is available with
6+
# # a network connection instead of the default /var/run/docker.sock socket.
7+
# #
8+
# # The 'docker' hostname is the alias of the service container as described at
9+
# # https://docs.gitlab.com/ee/ci/docker/using_docker_images.html#accessing-the-services
10+
# #
11+
# # If you're using GitLab Runner 12.7 or earlier with the Kubernetes executor and Kubernetes 1.6 or earlier,
12+
# # the variable must be set to tcp://localhost:2375 because of how the
13+
# # Kubernetes executor connects services to the job container
14+
# # DOCKER_HOST: tcp://localhost:2375
15+
# #
16+
# DOCKER_HOST: tcp://docker:2375
17+
# #
18+
# # This instructs Docker not to start over TLS.
19+
# DOCKER_TLS_CERTDIR: ""
20+
# #
21+
# # Checkout submodules recursively
22+
# GIT_SUBMODULE_STRATEGY: recursive
23+
24+
# services:
25+
# - docker:20.10.11-dind
26+
27+
# before_script:
28+
# - docker info
29+
# - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
30+
31+
# build-latest:
32+
# stage: build
33+
# only:
34+
# - tags
35+
# script:
36+
# - docker pull $CI_REGISTRY_IMAGE:latest || true
37+
# - docker build --cache-from $CI_REGISTRY_IMAGE:latest --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA --tag $CI_REGISTRY_IMAGE:latest .
38+
# - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
39+
# - docker push $CI_REGISTRY_IMAGE:latest
40+
41+
# build-branches:
42+
# stage: build
43+
# except:
44+
# - master
45+
# - main
46+
# script:
47+
# - docker pull $CI_REGISTRY_IMAGE:$CI_COMMIT_BRANCH || true
48+
# - docker build --cache-from $CI_REGISTRY_IMAGE:latest --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_BRANCH .
49+
# - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
50+
# - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_BRANCH

.gitmodules

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
[submodule "themes/ksucs-hugo-theme"]
2-
path = themes/ksucs-hugo-theme
3-
url = https://github.com/russfeld/ksucs-hugo-theme.git
1+
[submodule "themes/hugo-theme-relearn"]
2+
path = themes/hugo-theme-relearn
3+
url = https://github.com/ksu-cs-textbooks/hugo-theme-relearn.git

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
"cSpell.words": [
33
"heightmap",
44
"heightmaps"
5-
]
5+
],
6+
"explorer.sortOrder": "mixed"
67
}

Dockerfile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
FROM nginx:alpine as build
2+
3+
RUN apk add --update \
4+
wget
5+
6+
ARG HUGO_VERSION="0.117.0"
7+
RUN wget --quiet "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz" && \
8+
tar xzf hugo_${HUGO_VERSION}_Linux-64bit.tar.gz && \
9+
rm -r hugo_${HUGO_VERSION}_Linux-64bit.tar.gz && \
10+
mv hugo /usr/bin
11+
12+
COPY ./ /site
13+
WORKDIR /site
14+
RUN hugo -b https://cis580.textbooks.cs.ksu.edu/
15+
16+
#Copy static files to Nginx
17+
FROM nginx:alpine
18+
COPY --from=build /site/public /usr/share/nginx/html
19+
20+
WORKDIR /usr/share/nginx/html

config.toml

Lines changed: 100 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,117 @@
1+
# Base URL where the site will be hosted
12
baseURL = "https://textbooks.cs.ksu.edu/cis580"
3+
# Default language for the site
24
languageCode = "en-us"
5+
# Site Title
36
title = "K-State CIS 580 Textbook"
4-
staticDir = ["static"]
7+
# This will fix URLs to match baseURL (for hosting in subfolders)
8+
canonifyURLs = true
9+
# This displays last edited information at bottom of page
10+
enableGitInfo = true
511

612
# Change the default theme to be use when building the site with Hugo
7-
theme = "ksucs-hugo-theme"
13+
theme = ["hugo-theme-relearn"]
814

9-
# For search functionality
15+
# Output Types
16+
# HTML - default page
17+
# RSS - for RSS feeds
18+
# PRINT - printable output
19+
# JSON - enables Lunr search engine
20+
# TELE - Teleprompter
21+
# EMBED - Embeddable Version
1022
[outputs]
11-
home = [ "HTML", "RSS", "JSON"]
12-
page = [ "HTML", "Iframeable", "Teleprompter"]
13-
section = [ "HTML", "Iframeable", "Teleprompter"]
23+
home = ["HTML", "RSS", "PRINT", "SEARCH", "SEARCHPAGE"]
24+
section = ["HTML", "RSS", "PRINT", "TELE", "EMBED"]
25+
page = ["HTML", "RSS", "PRINT", "TELE", "EMBED"]
1426

1527
[params]
1628
textbookUrl = "https://textbooks.cs.ksu.edu/cis580"
17-
editURL = "https://gitlab.cs.ksu.edu/nhbean/cis580-textbook/tree/master/content/"
18-
description = "K-State CIS 580 Textbook"
29+
# This controls whether submenus will be expanded (true), or collapsed (false) in the
30+
# menu; if no setting is given, the first menu level is set to false, all others to true;
31+
# this can be overridden in the pages frontmatter
32+
alwaysopen = false
33+
# Prefix URL to edit current page. Will display an "Edit" button on top right hand corner of every page.
34+
# Useful to give opportunity to people to create merge request for your doc.
35+
# See the config.toml file from this documentation site to have an example.
36+
editURL = "https://gitlab.cs.ksu.edu/-/ide/project/cs-textbooks/cis580-textbook/edit/master/-/content/"
37+
# Author of the site, will be used in meta information
1938
author = "Nathan H. Bean"
39+
# Description of the site, will be used in meta information
40+
description = "K-State CIS 580 Textbook"
41+
# Shows a checkmark for visited pages on the menu
2042
showVisitedLinks = false
21-
themeVariant = "purple"
22-
disableLanguageSwitchingButton = true
43+
# Disable search function. It will hide search bar
44+
disableSearch = false
45+
# Disable search in hidden pages, otherwise they will be shown in search box
46+
disableSearchHiddenPages = true
47+
# Disables hidden pages from showing up in the sitemap and on Google (et all), otherwise they may be indexed by search engines
48+
disableSeoHiddenPages = true
49+
# Disables hidden pages from showing up on the tags page although the tag term will be displayed even if all pages are hidden
50+
disableTagHiddenPages = true
51+
# Javascript and CSS cache are automatically busted when new version of site is generated.
52+
# Set this to true to disable this behavior (some proxies don't handle well this optimization)
53+
disableAssetsBusting = false
54+
# Set this to true to disable copy-to-clipboard button for inline code.
55+
disableInlineCopyToClipBoard = true
56+
# A title for shortcuts in menu is set by default. Set this to true to disable it.
57+
disableShortcutsTitle = false
58+
# If set to false, a Home button will appear below the search bar on the menu.
59+
# It is redirecting to the landing page of the current language if specified. (Default is "/")
60+
disableLandingPageButton = true
61+
# When using mulitlingual website, disable the switch language button.
62+
disableLanguageSwitchingButton = false
63+
# Hide breadcrumbs in the header and only show the current page title
64+
disableBreadcrumb = false
65+
# If set to true, hide table of contents menu in the header of all pages
66+
disableToc = false
67+
# If set to false, load the MathJax module on every page regardless if a MathJax shortcode is present
68+
disableMathJax = true
69+
# Specifies the remote location of the MathJax js
70+
# customMathJaxURL = "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"
71+
# Initialization parameter for MathJax, see MathJax documentation
72+
# mathJaxInitialize = "{}"
73+
# If set to false, load the Mermaid module on every page regardless if a Mermaid shortcode or Mermaid codefence is present
74+
disableMermaid = true
75+
# Specifies the remote location of the Mermaid js
76+
# customMermaidURL = "https://unpkg.com/mermaid/dist/mermaid.min.js"
77+
# Initialization parameter for Mermaid, see Mermaid documentation
78+
# mermaidInitialize = "{ \"theme\": \"default\" }"
79+
# If set to false, load the Swagger module on every page regardless if a Swagger shortcode is present
80+
disableSwagger = true
81+
# Specifies the remote location of the RapiDoc js
82+
# customSwaggerURL = "https://unpkg.com/rapidoc/dist/rapidoc-min.js"
83+
# Initialization parameter for Swagger, see RapiDoc documentation
84+
# swaggerInitialize = "{ \"theme\": \"light\" }"
85+
# Hide Next and Previous page buttons normally displayed full height beside content
86+
disableNextPrev = false
87+
# Order sections in menu by "weight" or "title". Default to "weight";
88+
# this can be overridden in the pages frontmatter
89+
ordersectionsby = "weight"
90+
# Change default color scheme with a variant one. Eg. can be "red", "blue", "green" or an array like [ "blue", "green" ].
91+
themeVariant = ["auto", "light-theme", "dark-theme"]
92+
# The first element is the variant for light mode, the second for dark mode
93+
themeVariantAuto = ["light-theme", "dark-theme"]
94+
# Change the title separator. Default to "::".
95+
# titleSeparator = "-"
96+
# If set to true, the menu in the sidebar will be displayed in a collapsible tree view.
97+
collapsibleMenu = true
98+
# If a single page can contain content in multiple languages, add those here
99+
additionalContentLanguage = [ "en" ]
23100

24-
[blackfriday]
25-
plainIDAnchors = true
26-
hrefTargetBlank = true
101+
# [x] russfeld
102+
# Custom parameters
103+
commitURL = "https://gitlab.cs.ksu.edu/cs-textbooks/cis580-textbook/-/commit/"
27104

28105
[markup]
106+
[markup.highlight]
107+
# if set to `guessSyntax = true`, there will be no unstyled code even if no language
108+
# was given BUT mermaid code fences will not work anymore! So this is a mandatory
109+
# setting for your site
110+
guessSyntax = false
111+
112+
# choose a color theme or create your own
113+
style = "monokai"
29114
[markup.goldmark]
30115
[markup.goldmark.renderer]
31-
unsafe = true
32-
33-
# Custom output format for iframes
34-
[outputFormats]
35-
[outputFormats.Iframeable]
36-
name = "Iframeable"
37-
baseName = "embed"
38-
mediaType = "text/html"
39-
isPlainText = false
40-
isHTML = true
41-
[outputFormats.Teleprompter]
42-
name = "Teleprompter"
43-
baseName = "tele"
44-
mediaType = "text/html"
45-
isPlainText = false
46-
isHtml = true
116+
# Render raw HTML
117+
unsafe = true

content/00-forward/01-introduction.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ All of our activities this semester will be informed by these goals.
2424
## Course Resources
2525

2626
* [Syllabus]({{<ref "00-forward/09-syllabus.md">}})
27-
* [Course Textbook]({{<param textbookURL>}})
27+
* [Course Textbook]({{<ref "/">}})
2828
* [Game Programming Patterns Textbook](https://gameprogrammingpatterns.com/)
2929
* [MonoGame Documentation](https://docs.monogame.net/)
3030

3131
## Welcome Message
3232
Hello students, and welcome to CIS 580 - Foundations of Game Programming. My name is Nathan Bean, and I will be your instructor for this course.
3333

34-
![Playing Sequence]({{<static "images/nathan-and-cait.jpg">}})
34+
![Playing Sequence](/images/nathan-and-cait.jpg)

content/00-forward/02-course-structure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Most modules will contain assigned readings and/or videos for you to study as a
3838
We will make heavy use of Robert Nystrom's _Game Programming Patterns_, an exploration of common design patterns used in video games. It can be bought in print, but he also has a free web version: https://gameprogrammingpatterns.com/contents.html.
3939

4040
### Course Tutorials
41-
Most modules will also contain a tutorial exploring implementing the covered topic with the MonoGame/XNA technologies we will be using in this course. These are organized into the course textbook (which you are reading now). It is available in its entirety at [{{< param textbookURL >}}]({{< param textbookURL >}}).
41+
Most modules will also contain a tutorial exploring implementing the covered topic with the MonoGame/XNA technologies we will be using in this course. These are organized into the course textbook (which you are reading now). It is available in its entirety at [{{< ref "/" >}}]({{< ref "/" >}}).
4242

4343
### Original Game Assignments
4444
Every few topics you will be challenged to create an original game that draws upon the techniques you have learned about. For each game, there will be a limited number of algorithms, data structures, or approaches you are required to implement. Each original game is worth 100 points.

0 commit comments

Comments
 (0)