Skip to content

Commit

Permalink
Update to Julia 1.10 + housekeeping (#157)
Browse files Browse the repository at this point in the history
* dep update

* update compat

* set julia version

* gh actions deps

* cleanup fonts

* some status update
  • Loading branch information
tpoisot authored Jun 11, 2024
1 parent 78f1c70 commit 3306d1c
Show file tree
Hide file tree
Showing 86 changed files with 65 additions and 457 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,13 @@ jobs:
build:
name: "Build the material"
runs-on: ubuntu-latest
strategy:
matrix:
julia: [1.8]
steps:
- name: "Checkout action"
uses: actions/checkout@v1.0.0
uses: actions/checkout@v3.3.0
- name: "Setup julia"
uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia }}
version: '1.10'
- name: "Build the core packages"
uses: julia-actions/julia-buildpkg@v1
env:
Expand All @@ -38,7 +35,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
message: ${{ steps.word-count.outputs.count }}
- name: Upload results
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
continue-on-error: true
with:
name: built-project
Expand All @@ -49,14 +46,14 @@ jobs:
name: "Make the website"
steps:
- name: "Checkout action"
uses: actions/checkout@v1.0.0
uses: actions/checkout@v3.3.0
- name: "Setup hugo"
uses: peaceiris/actions-hugo@v2
with:
hugo-version: "0.93.3"
hugo-version: "0.127.0"
extended: true
- name: Download built lessons
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: built-project
path: dist
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@v1.5.1
uses: lycheeverse/lychee-action@v1.6.1
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

Expand Down
11 changes: 6 additions & 5 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
BibInternal = "0.3"
Bibliography = "0.2"
CSV = "0.10"
CairoMakie = "0.8"
CairoMakie = "0.12"
Combinatorics = "1.0"
Distributions = "0.25"
HTTP = "1.4"
HTTP = "1.10"
JSON = "0.21"
Literate = "2.14"
Luxor = "3.5"
julia = "1.8"
Literate = "2.18"
Luxor = "4.0"
StatsBase = "0.34"
julia = "1.10"
2 changes: 1 addition & 1 deletion content/01_fundamentals/03_booleans.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ---
# title: Introduction to Boolean values
# status: rc
# status: release
# ---

# In this module, we will get acquainted with one of the most important type of
Expand Down
4 changes: 2 additions & 2 deletions content/01_fundamentals/04_short_circuit.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ---
# title: Short-circuit Boolean operations
# status: rc
# status: release
# ---

# In the [previous module][bool], we have introduce important notions about
Expand Down Expand Up @@ -63,7 +63,7 @@ true && "Hi!"
# same line, we can specify a check and an action. One of our favorite ways to
# use it is to check if a path exists, and if not create it:

ispath("foo") || mkdir("foo")
ispath("foo") || mkpath("foo")

# Let's be clean and remove this path, but only if it exists:s

Expand Down
2 changes: 1 addition & 1 deletion content/01_fundamentals/05_ternary.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ---
# title: The ternary operator
# status: rc
# status: release
# ---

# In this module, we will look at the "ternary operator", a very efficient
Expand Down
101 changes: 23 additions & 78 deletions dist/themes/shebang/assets/_callouts.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,26 @@
@mixin callout-block-before {
font-family: "Font Awesome 6 Free";
font-weight: 400;
color: white;
position: relative;
left: -32px;
top: -8px;
border-radius: 22px;
margin-right: -22px;
font-size: 14px;
line-height: 22px;
text-align: center;
width: 22px;
display: inline-block;
}

.callout {
padding: 0px 20px;
padding-bottom: 0px;
margin: 40px 0px;
color: $color_meta;
font-size: 95%;
font-variation-settings: "CASL" 0.6, "wght" 380;
code {
font-size: inherit;
font-stretch: normal;
Expand All @@ -13,125 +30,53 @@
.warning {
border-left: 2px solid $color_warning;
&:before {
font-family: "Font Awesome 6 Free";
font-weight: 400;
@include callout-block-before();
content: "\f071";
color: white;
position: relative;
left: -32px;
top: -8px;
border-radius: 22px;
margin-right: -22px;
font-size: 14px;
line-height: 22px;
text-align: center;
width: 22px;
display: inline-block;
background-color: $color_warning;
}
}

.information {
border-left: 2px solid $color_information;
&:before {
font-family: "Font Awesome 6 Free";
font-weight: 400;
@include callout-block-before();
content: "\f14e";
color: white;
position: relative;
left: -32px;
top: -8px;
border-radius: 22px;
margin-right: -22px;
font-size: 14px;
line-height: 22px;
text-align: center;
width: 22px;
display: inline-block;
background-color: $color_information;
}
}

.opinion {
border-left: 2px solid $color_opinion;
&:before {
font-family: "Font Awesome 6 Free";
font-weight: 400;
@include callout-block-before();
content: "\f4ad";
color: white;
position: relative;
left: -32px;
top: -8px;
border-radius: 22px;
margin-right: -22px;
font-size: 14px;
line-height: 22px;
text-align: center;
width: 22px;
display: inline-block;
background-color: $color_opinion;
}
}

.danger {
border-left: 2px solid $color_danger;
&:before {
font-family: "Font Awesome 6 Free";
font-weight: 400;
@include callout-block-before();
content: "\f0e7";
color: white;
position: relative;
left: -32px;
top: -8px;
border-radius: 22px;
margin-right: -22px;
font-size: 14px;
line-height: 22px;
text-align: center;
width: 22px;
display: inline-block;
background-color: $color_danger;
}
}

.domain {
border-left: 2px solid $color_theme;
&:before {
font-family: "Font Awesome 6 Free";
font-weight: 400;
@include callout-block-before();
content: "\f5dc";
color: white;
position: relative;
left: -32px;
top: -8px;
border-radius: 22px;
margin-right: -22px;
font-size: 14px;
line-height: 22px;
text-align: center;
width: 22px;
display: inline-block;
background-color: $color_theme;
}
}

.reference {
border-left: 2px solid $color_reference;
&:before {
font-family: "Font Awesome 6 Free";
font-weight: 400;
@include callout-block-before();
content: "\f5da";
color: white;
position: relative;
left: -32px;
top: -8px;
border-radius: 22px;
margin-right: -22px;
font-size: 14px;
line-height: 22px;
text-align: center;
width: 22px;
display: inline-block;
background-color: $color_reference;
}
}
4 changes: 3 additions & 1 deletion dist/themes/shebang/assets/_codeblocks.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ code {
}

pre {
padding-top: 10px;
padding-bottom: 10px;
line-height: normal;
font-stretch: normal;
white-space: pre-wrap;
Expand All @@ -26,7 +28,7 @@ pre {
color: $color_output;
font-size: 90%;
font-stretch: normal;
line-height: 120%;
line-height: 180%;
}
}

Expand Down
7 changes: 0 additions & 7 deletions dist/themes/shebang/assets/_fonts.scss

This file was deleted.

3 changes: 2 additions & 1 deletion dist/themes/shebang/assets/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ header {

h1 {
float: left;
font-variation-settings: "MONO" 0, "CASL" 0.2, "wght" 800, "slnt" 0, "CRSV" 0.5;
a {
text-decoration: none;
}
Expand All @@ -22,7 +23,7 @@ header {
padding-top: 0px;
padding-bottom: 0px;
color: $color_meta;
font-weight: 300;
font-variation-settings: "MONO" 0, "CASL" 1, "wght" 320, "slnt" -2.2, "CRSV" 0.5;
float: left;
padding-left: 10px;
}
Expand Down
Loading

0 comments on commit 3306d1c

Please sign in to comment.