Skip to content

Commit 2512e31

Browse files
committed
Bump Theme 5.18.0
1 parent 45b021c commit 2512e31

File tree

65 files changed

+257
-441
lines changed

Some content is hidden

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

65 files changed

+257
-441
lines changed

.github/workflows/gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
# extended: true
2727

2828
- name: Build
29-
run: hugo --config github.toml
29+
run: hugo -b "https://ksu-cs-textbooks.github.io/cc410/"
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

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/00-introduction/_index.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,9 @@
22
title = "Introduction"
33
date = 2020-12-08T00:53:05-05:00
44
weight = 3
5-
chapter = true
5+
archetype = "chapter"
6+
ordinal = "0"
67
pre = "<b>0. </b>"
78
+++
89

9-
### Chapter 0
10-
11-
# Introduction
12-
1310
Welcome to CC 410!

content/_index.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
+++
2-
title = "CC 410 Textbook"
3-
date = 2021-08-17
2+
title = "CC 410 - Advanced Programming"
3+
archetype = "home"
44
+++
55

6-
# CC 410 - Advanced Programming
7-
86
This is the textbook for **CC 410 - Advanced Programming**.
97

108
**Course Description:** Advanced programming techniques and projects. Concepts from simulation and modeling, media applications, secure design, information management, parallelism, and networking. Software development methodologies, processes, and design patterns. Practical experience with professional communication and collaboration.

content/i-oop/01-hello-real-world/_index.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,9 @@
22
title = "Hello Real World"
33
date = 2020-12-28T00:53:05-05:00
44
weight = 5
5-
chapter = true
5+
archetype = "chapter"
6+
ordinal = "1"
67
pre = "<b>1. </b>"
78
+++
89

9-
### Chapter 1
10-
11-
# Hello Real World
12-
1310
Hello World, but like the pros do it!

content/i-oop/02-object-oriented-programming/05-structs.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ Many object-oriented languages, such as C++ and C#, include the concept of a **s
77

88
{{< tabs >}}
99

10-
{{% tab name="Java" %}}
10+
{{% tab title="Java" %}}
1111

1212
```java
1313
double[] vector = {3.0, 4.0, 5.0};
1414
```
1515

1616
{{% /tab %}}
1717

18-
{{% tab name="Python" %}}
18+
{{% tab title="Python" %}}
1919

2020
```python
2121
vector: List[float] = [3.0, 4.0, 5.0]
@@ -29,7 +29,7 @@ However, other than the variable name, there is no indication to other programme
2929

3030
{{< tabs >}}
3131

32-
{{% tab name="Java" %}}
32+
{{% tab title="Java" %}}
3333

3434
```java
3535
public double dotProduct(double[] a, double[] b){
@@ -41,7 +41,7 @@ public double dotProduct(double[] a, double[] b){
4141
```
4242
{{% /tab %}}
4343

44-
{{% tab name="Python" %}}
44+
{{% tab title="Python" %}}
4545

4646
```python
4747
def dot_product(a: List[float], b: List[float]) -> float:
@@ -58,7 +58,7 @@ A struct provides a much cleaner option, by allowing us to define a type that is
5858

5959
{{< tabs >}}
6060

61-
{{% tab name="Java" %}}
61+
{{% tab title="Java" %}}
6262

6363
```java
6464
public class Vector3{
@@ -76,7 +76,7 @@ public class Vector3{
7676

7777
{{% /tab %}}
7878

79-
{{% tab name="Python" %}}
79+
{{% tab title="Python" %}}
8080

8181
```python
8282
class Vector3:
@@ -95,7 +95,7 @@ Then, our dot product method can take two arguments of the `Vector3` type:
9595

9696
{{< tabs >}}
9797

98-
{{% tab name="Java" %}}
98+
{{% tab title="Java" %}}
9999

100100
```java
101101
public double dotProduct(Vector3 a, Vector3 b){
@@ -105,7 +105,7 @@ public double dotProduct(Vector3 a, Vector3 b){
105105

106106
{{% /tab %}}
107107

108-
{{% tab name="Python" %}}
108+
{{% tab title="Python" %}}
109109

110110
```python
111111
def dot_product(a: Vector3, b: Vector3) -> float:

content/i-oop/02-object-oriented-programming/06-modules.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ It might seem like the kind of modules that Parnas was describing don't exist in
77

88
{{< tabs >}}
99

10-
{{% tab name="Java" %}}
10+
{{% tab title="Java" %}}
1111

1212
```java
1313
Math.sqrt(9.5);
1414
```
1515

1616
{{% /tab %}}
1717

18-
{{% tab name="Python" %}}
18+
{{% tab title="Python" %}}
1919

2020
```python
2121
math.sqrt(9.5)
@@ -30,7 +30,7 @@ We can define our own module-like classes by making them `static`, i.e. we could
3030

3131
{{< tabs >}}
3232

33-
{{% tab name="Java" %}}
33+
{{% tab title="Java" %}}
3434

3535
```java
3636
import java.lang.Math;
@@ -57,7 +57,7 @@ System.out.println(VectorMath.magnitude(vect1));
5757

5858
{{% /tab %}}
5959

60-
{{% tab name="Python" %}}
60+
{{% tab title="Python" %}}
6161

6262
```python
6363
import math

content/i-oop/02-object-oriented-programming/07-state-behavior/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ On the other hand, with encapsulation we can reason about state and behavior on
5252

5353
{{< tabs >}}
5454

55-
{{% tab name="Java" %}}
55+
{{% tab title="Java" %}}
5656

5757
```java
5858
public static Vector3 scale(Vector3 vec, double scale){
@@ -65,7 +65,7 @@ public static Vector3 scale(Vector3 vec, double scale){
6565

6666
{{% /tab %}}
6767

68-
{{% tab name="Python" %}}
68+
{{% tab title="Python" %}}
6969

7070
```python
7171
@staticmethod

content/i-oop/02-object-oriented-programming/08-classes-objects.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Let's re-write our `Vector3` struct using this concept.
1717

1818
{{< tabs >}}
1919

20-
{{% tab name="Java" %}}
20+
{{% tab title="Java" %}}
2121

2222
```java
2323
public class Vector3{
@@ -45,7 +45,7 @@ public class Vector3{
4545

4646
{{% /tab %}}
4747

48-
{{% tab name="Python" %}}
48+
{{% tab title="Python" %}}
4949

5050
```python
5151
class Vector3:
@@ -78,7 +78,7 @@ We can create as many objects from this class definition as we might want. Each
7878

7979
{{< tabs >}}
8080

81-
{{% tab name="Java" %}}
81+
{{% tab title="Java" %}}
8282

8383
```java
8484
Vector3 one = new Vector3(1.0, 1.0, 1.0);
@@ -88,7 +88,7 @@ Vector3 a = new Vector3(5.4, -21.4, 3.11);
8888

8989
{{% /tab %}}
9090

91-
{{% tab name="Python" %}}
91+
{{% tab title="Python" %}}
9292

9393
```python
9494
one: Vector3 = Vector3(1.0, 1.0, 1.0)

0 commit comments

Comments
 (0)