Skip to content

Commit 67149f1

Browse files
committed
Bump Theme 5.18
1 parent 1b93003 commit 67149f1

File tree

16 files changed

+72
-318
lines changed

16 files changed

+72
-318
lines changed

.github/workflows/gh-pages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ jobs:
2222
- name: Setup Hugo
2323
uses: peaceiris/actions-hugo@v2
2424
with:
25-
hugo-version: '0.101.0'
25+
hugo-version: '0.117.0'
2626
# extended: true
2727

2828
- name: Build
29-
run: hugo --config github.toml
29+
run: hugo -b "https://ksu-cs-textbooks.github.io/cis308/"
3030

3131
- name: Deploy
3232
uses: peaceiris/actions-gh-pages@v3

.gitlab-ci.yml

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,50 @@
1-
image: docker:20.10.11
1+
# image: docker:20.10.11
22

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
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
2323

24-
services:
25-
- docker:20.10.11-dind
24+
# services:
25+
# - docker:20.10.11-dind
2626

27-
before_script:
28-
- docker info
29-
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
27+
# before_script:
28+
# - docker info
29+
# - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
3030

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:
31+
# build-latest:
4232
# stage: build
43-
# except:
44-
# - master
45-
# - main
33+
# only:
34+
# - tags
4635
# 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 .
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 .
4938
# - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
50-
# - docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_BRANCH
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

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ FROM nginx:alpine as build
33
RUN apk add --update \
44
wget
55

6-
ARG HUGO_VERSION="0.101.1"
6+
ARG HUGO_VERSION="0.117.0"
77
RUN wget --quiet "https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_${HUGO_VERSION}_Linux-64bit.tar.gz" && \
88
tar xzf hugo_${HUGO_VERSION}_Linux-64bit.tar.gz && \
99
rm -r hugo_${HUGO_VERSION}_Linux-64bit.tar.gz && \
1010
mv hugo /usr/bin
1111

1212
COPY ./ /site
1313
WORKDIR /site
14-
RUN hugo --config docker.toml
14+
RUN hugo -b "https://cis301.textbooks.cs.ksu.edu/"
1515

1616
#Copy static files to Nginx
1717
FROM nginx:alpine

config.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ theme = "hugo-theme-relearn"
2020
# TELE - Teleprompter
2121
# EMBED - Embeddable Version
2222
[outputs]
23-
home = ["HTML", "RSS", "PRINT", "JSON"]
23+
home = ["HTML", "RSS", "PRINT", "SEARCH", "SEARCHPAGE"]
2424
section = ["HTML", "RSS", "PRINT", "TELE", "EMBED"]
2525
page = ["HTML", "RSS", "PRINT", "TELE", "EMBED"]
2626

@@ -87,7 +87,9 @@ theme = "hugo-theme-relearn"
8787
# this can be overridden in the pages frontmatter
8888
ordersectionsby = "weight"
8989
# Change default color scheme with a variant one. Eg. can be "red", "blue", "green" or an array like [ "blue", "green" ].
90-
themeVariant = ["light-theme", "dark-theme"]
90+
themeVariant = ["auto", "light-theme", "dark-theme"]
91+
# The first element is the variant for light mode, the second for dark mode
92+
themeVariantAuto = ["light-theme", "dark-theme"]
9193
# Change the title separator. Default to "::".
9294
# titleSeparator = "-"
9395
# If set to true, the menu in the sidebar will be displayed in a collapsible tree view.

content/0-chapter/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
title = "Getting Started"
33
date = 2018-08-24T10:53:05-05:00
44
weight = 1
5-
chapter = true
5+
archetype = "chapter"
6+
ordinal = "0"
67
pre = "<b>0. </b>"
78
+++
89

9-
# Getting Started

content/1-chapter/_index.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@
22
title = "C Basics"
33
date = 2018-08-24T10:53:05-05:00
44
weight = 2
5-
chapter = true
5+
archetype = "chapter"
6+
ordinal = "1"
67
pre = "<b>1. </b>"
78
+++
89

9-
### Chapter 1
10-
11-
# C Basics

content/2-chapter/_index.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
title = "Arrays, Strings, and Files"
33
date = 2018-08-24T10:53:05-05:00
44
weight = 3
5-
chapter = true
5+
archetype = "chapter"
6+
ordinal = "2"
67
pre = "<b>2. </b>"
78
+++
8-
### Chapter 2
99

10-
# Arrays, Strings, and Files

content/3-chapter/_index.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
title = "Pointers and Dynamic Memory"
33
date = 2018-08-24T10:53:05-05:00
44
weight = 4
5-
chapter = true
5+
archetype = "chapter"
6+
ordinal = "3"
67
pre = "<b>3. </b>"
78
+++
89

9-
### Chapter 3
1010

11-
# Pointers and Dynamic Memory

content/4-chapter/_index.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
title = "Structs"
33
date = 2018-08-24T10:53:05-05:00
44
weight = 5
5-
chapter = true
5+
archetype = "chapter"
6+
ordinal = "4"
67
pre = "<b>4. </b>"
78
+++
8-
9-
### Chapter 4
10-
11-
# Structs

content/5-chapter/_index.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,24 @@
22
title = "Multiple Files"
33
date = 2018-08-24T10:53:05-05:00
44
weight = 6
5-
chapter = true
5+
archetype = "chapter"
6+
ordinal = "5"
67
pre = "<b>5. </b>"
78
+++
89

9-
### Chapter 5
1010

11-
# Multiple Files
12-
13-
<div align="left">
1411
Up to this point, all of our programs have been written within a
1512
single file. There is nothing wrong with this – a C program is just
1613
a bunch of functions, and it's fine to group those functions within a
1714
single file. However, as your programs get bigger, it's nice to
1815
physically separate functions into different files. This makes it
1916
easier to find certain pieces of your program.
20-
</div>
21-
<div align="left">
17+
2218
Separating functions also promotes reuse. Right now, if we
2319
wanted to reuse a function we’d written in another program, we would
2420
have to copy it from our old program to our new one. With
2521
multiple files, we can separate the functions we want reused and
2622
just link to that file when we want to use them (this is like
2723
separating the C library functions and including them when we
2824
want to use them).
29-
</div>
25+

0 commit comments

Comments
 (0)