Skip to content

Commit 681e5c9

Browse files
committed
Bump Theme 5.18
1 parent 4c968ff commit 681e5c9

File tree

51 files changed

+299
-213
lines changed

Some content is hidden

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

51 files changed

+299
-213
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/cis400/"
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

.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: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
[submodule "themes/ksucs-hugo-theme"]
2-
path = themes/ksucs-hugo-theme
3-
url = https://github.com/russfeld/ksucs-hugo-theme.git
41
[submodule "themes/hugo-theme-relearn"]
52
path = themes/hugo-theme-relearn
63
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
@@ -4,5 +4,6 @@
44
"codebehind",
55
"liquified",
66
"overreliance"
7-
]
7+
],
8+
"explorer.sortOrder": "mixed"
89
}

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://cis400.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

a.out

Whitespace-only changes.

config.bak.toml

Lines changed: 0 additions & 49 deletions
This file was deleted.

config.toml

Lines changed: 87 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,118 @@
1+
# Base URL where the site will be hosted
12
baseURL = "https://textbooks.cs.ksu.edu/cis400"
3+
# Default language for the site
24
languageCode = "en-us"
5+
# Site Title
36
title = "K-State CIS 400 Textbook"
7+
# This will fix URLs to match baseURL (for hosting in subfolders)
48
canonifyURLs = true
9+
# This displays last edited information at bottom of page
510
enableGitInfo = true
611

712
# Change the default theme to be use when building the site with Hugo
8-
theme = ["hugo-theme-relearn"]
13+
theme = "hugo-theme-relearn"
914

10-
# 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
1122
[outputs]
12-
home = ["HTML", "RSS", "PRINT", "JSON"]
23+
home = ["HTML", "RSS", "PRINT", "SEARCH", "SEARCHPAGE"]
1324
section = ["HTML", "RSS", "PRINT", "TELE", "EMBED"]
1425
page = ["HTML", "RSS", "PRINT", "TELE", "EMBED"]
1526

1627
[params]
17-
alwaysopen = false
1828
textbookURL = "https://textbooks.cs.ksu.edu/cis400"
19-
editURL = "https://gitlab.cs.ksu.edu/nhbean/ksucs-hugo/tree/master/cis400-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/cis400-textbook/edit/master/-/content/"
37+
# Author of the site, will be used in meta information
2038
author = "Nathan Bean"
39+
# Description of the site, will be used in meta information
2140
description = "K-State CIS 400 Textbook"
41+
# Shows a checkmark for visited pages on the menu
2242
showVisitedLinks = false
23-
disableSearch = false
24-
disableSeoHiddenPages = 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
2550
disableTagHiddenPages = true
26-
disableAssetBusting = true
27-
disableInlineCopyToClipboard = true
28-
disableShortcutsTitle = false
29-
disableLandingPageButton = 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.
3062
disableLanguageSwitchingButton = false
31-
disableBreadcrumbs = false
32-
disableToc = false
33-
disableMathJax = true
34-
disableMermaid = true
35-
disableSwagger = true
36-
disableNextPrev = false
37-
themeVariant = ["light-theme", "dark-theme"]
38-
collapsibleMenu = true
39-
additionalContentLanguage = ["en"]
40-
41-
#landingPageURL = "/cis642-643"
42-
#textbookURL = "https://textbooks.cs.ksu.edu/cis642-643"
43-
44-
linenumbers = true
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" ]
45100

46-
[blackfriday]
47-
plainIDAnchors = true
48-
hrefTargetBlank = true
101+
# [x] russfeld
102+
# Custom parameters
103+
commitURL = "https://gitlab.cs.ksu.edu/cs-textbooks/cis400-textbook/-/commit/"
49104

50105
[markup]
51106
[markup.highlight]
52107
# if set to `guessSyntax = true`, there will be no unstyled code even if no language
53108
# was given BUT mermaid code fences will not work anymore! So this is a mandatory
54109
# setting for your site
55110
guessSyntax = false
111+
112+
# choose a color theme or create your own
56113
style = "monokai"
57114
[markup.goldmark]
58115
[markup.goldmark.renderer]
116+
# Render raw HTML
59117
unsafe = true
118+

content/0-forward/01-course-structure.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ The course is organized into modules focused on a specific topic, accessible fro
2424
Most non-exam weeks will consist of _two_ video-guided tutorials and the weekly milestone. The first module will be due by Monday, the second Tuesday, and the milestone on Friday. Each regular tutorial will take several hours to complete, and milestones can often take ten hours or more. You should plan your learning schedule accordingly.
2525

2626
The modules, and all of their associated assignments, are available through Canvas. You must complete each module item _in order_, and the prior week's module must be finished before you can move on to those in the next week. Be aware that if you procrastinate and don't start until Friday, it is unlikely that you will finish. Which means you will fall behind. You can very quickly find yourself in a hole you cannot climb out of. So time management is a _critical_ skill you need to be developing.
27+
{{% /notice %}}
2728

2829
{{% notice warning %}}
2930
Remember that in the CS Professional Program, a grade of **less than C** in a professional program course (like CIS 400) results in a "**Warning of Unsatisfactory Progress**." This warning sticks with you the rest of your time in Computer Science at K-State. If you earn a second, similar grade, you will be dismissed from the CS Professional Program!

0 commit comments

Comments
 (0)