Skip to content

Commit ed65353

Browse files
committed
Merge branch 'main' into intermediate-terminal-guide
2 parents 65a6637 + fcf98b1 commit ed65353

59 files changed

Lines changed: 1454 additions & 134 deletions

File tree

Some content is hidden

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

.devcontainer/devcontainer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@
4040
// Configure properties specific to VS Code.
4141
"vscode": {
4242
"settings": {
43-
"terminal.integrated.defaultProfile.linux": "zsh"
43+
"terminal.integrated.defaultProfile.linux": "zsh",
44+
"files.trimTrailingWhitespace": true,
45+
"files.autoSave": "onFocusChange"
4446
},
4547
// Add the IDs of extensions you want installed when the container is created.
4648
"extensions": [

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
run: |
4242
bundle exec htmlproofer _site \
4343
\-\-disable-external \
44-
\-\-ignore-urls "/^http:\/\/127.0.0.1/,/^http:\/\/0.0.0.0/,/^http:\/\/localhost/,http://www.mathmatique.com/articles/left-exercise-reader"
44+
\-\-ignore-urls "/^http:\/\/127.0.0.1/,/^http:\/\/0.0.0.0/,/^http:\/\/localhost/,http://www.mathmatique.com/articles/left-exercise-reader","#disqus_thread"
4545
4646
- name: Dry-run deployment to mattpopovich.com
4747
uses: easingthemes/ssh-deploy@v4.1.8

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ package-lock.json
2323
!.vscode/tasks.json
2424

2525
# Misc
26-
_sass/dist
26+
_sass/vendors
2727
assets/js/dist
2828

2929
# OSX

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "assets/lib"]
2+
path = assets/lib
3+
url = https://github.com/cotes2020/chirpy-static-assets.git

Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
source "https://rubygems.org"
44

5-
gem "jekyll-theme-chirpy", "~> 7.1"
5+
gem "jekyll-theme-chirpy", "~> 7.3", ">= 7.3.1"
66

77
gem "html-proofer", "~> 5.0", group: :test
88

@@ -11,4 +11,4 @@ platforms :mingw, :x64_mingw, :mswin, :jruby do
1111
gem "tzinfo-data"
1212
end
1313

14-
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
14+
gem "wdm", "~> 0.2.0", :platforms => [:mingw, :x64_mingw, :mswin]

Gemfile.lock

Lines changed: 41 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -5,38 +5,42 @@ GEM
55
addressable (2.8.7)
66
public_suffix (>= 2.0.2, < 7.0)
77
afm (0.2.2)
8-
async (2.20.0)
8+
async (2.23.1)
99
console (~> 1.29)
1010
fiber-annotation
11-
io-event (~> 1.6, >= 1.6.5)
12-
bigdecimal (3.1.8)
11+
io-event (~> 1.9)
12+
metrics (~> 0.12)
13+
traces (~> 0.15)
14+
base64 (0.3.0)
15+
bigdecimal (3.1.9)
1316
colorator (1.1.0)
14-
concurrent-ruby (1.3.4)
15-
console (1.29.0)
17+
concurrent-ruby (1.3.5)
18+
console (1.30.2)
1619
fiber-annotation
1720
fiber-local (~> 1.1)
1821
json
22+
csv (3.3.5)
1923
em-websocket (0.5.3)
2024
eventmachine (>= 0.12.9)
2125
http_parser.rb (~> 0)
2226
ethon (0.16.0)
2327
ffi (>= 1.15.0)
2428
eventmachine (1.2.7)
25-
ffi (1.17.0-aarch64-linux-gnu)
26-
ffi (1.17.0-x86_64-linux-gnu)
29+
ffi (1.17.1-aarch64-linux-gnu)
30+
ffi (1.17.1-x86_64-linux-gnu)
2731
fiber-annotation (0.2.0)
2832
fiber-local (1.1.0)
2933
fiber-storage
3034
fiber-storage (1.0.0)
3135
forwardable-extended (2.6.0)
32-
google-protobuf (4.28.3-aarch64-linux)
36+
google-protobuf (4.32.0-aarch64-linux-gnu)
3337
bigdecimal
3438
rake (>= 13)
35-
google-protobuf (4.28.3-x86_64-linux)
39+
google-protobuf (4.32.0-x86_64-linux-gnu)
3640
bigdecimal
3741
rake (>= 13)
3842
hashery (2.1.2)
39-
html-proofer (5.0.9)
43+
html-proofer (5.0.10)
4044
addressable (~> 2.3)
4145
async (~> 2.1)
4246
nokogiri (~> 1.13)
@@ -46,65 +50,66 @@ GEM
4650
yell (~> 2.0)
4751
zeitwerk (~> 2.5)
4852
http_parser.rb (0.8.0)
49-
i18n (1.14.6)
53+
i18n (1.14.7)
5054
concurrent-ruby (~> 1.0)
51-
io-event (1.7.3)
52-
jekyll (4.3.4)
55+
io-event (1.10.0)
56+
jekyll (4.4.1)
5357
addressable (~> 2.4)
58+
base64 (~> 0.2)
5459
colorator (~> 1.0)
60+
csv (~> 3.0)
5561
em-websocket (~> 0.5)
5662
i18n (~> 1.0)
5763
jekyll-sass-converter (>= 2.0, < 4.0)
5864
jekyll-watch (~> 2.0)
65+
json (~> 2.6)
5966
kramdown (~> 2.3, >= 2.3.1)
6067
kramdown-parser-gfm (~> 1.0)
6168
liquid (~> 4.0)
62-
mercenary (>= 0.3.6, < 0.5)
69+
mercenary (~> 0.3, >= 0.3.6)
6370
pathutil (~> 0.9)
6471
rouge (>= 3.0, < 5.0)
6572
safe_yaml (~> 1.0)
6673
terminal-table (>= 1.8, < 4.0)
6774
webrick (~> 1.7)
68-
jekyll-archives (2.2.1)
75+
jekyll-archives (2.3.0)
6976
jekyll (>= 3.6, < 5.0)
7077
jekyll-include-cache (0.2.1)
7178
jekyll (>= 3.7, < 5.0)
7279
jekyll-paginate (1.1.0)
73-
jekyll-redirect-from (0.16.0)
74-
jekyll (>= 3.3, < 5.0)
75-
jekyll-sass-converter (3.0.0)
76-
sass-embedded (~> 1.54)
80+
jekyll-sass-converter (3.1.0)
81+
sass-embedded (~> 1.75)
7782
jekyll-seo-tag (2.8.0)
7883
jekyll (>= 3.8, < 5.0)
7984
jekyll-sitemap (1.4.0)
8085
jekyll (>= 3.7, < 5.0)
81-
jekyll-theme-chirpy (7.1.1)
86+
jekyll-theme-chirpy (7.3.1)
8287
jekyll (~> 4.3)
8388
jekyll-archives (~> 2.2)
8489
jekyll-include-cache (~> 0.2)
8590
jekyll-paginate (~> 1.1)
86-
jekyll-redirect-from (~> 0.16)
8791
jekyll-seo-tag (~> 2.8)
8892
jekyll-sitemap (~> 1.4)
8993
jekyll-watch (2.2.1)
9094
listen (~> 3.0)
91-
json (2.8.2)
92-
kramdown (2.4.0)
93-
rexml
95+
json (2.10.2)
96+
kramdown (2.5.1)
97+
rexml (>= 3.3.9)
9498
kramdown-parser-gfm (1.1.0)
9599
kramdown (~> 2.0)
96100
liquid (4.0.4)
97101
listen (3.9.0)
98102
rb-fsevent (~> 0.10, >= 0.10.3)
99103
rb-inotify (~> 0.9, >= 0.9.10)
100104
mercenary (0.4.0)
101-
nokogiri (1.16.7-aarch64-linux)
105+
metrics (0.12.2)
106+
nokogiri (1.18.7-aarch64-linux-gnu)
102107
racc (~> 1.4)
103-
nokogiri (1.16.7-x86_64-linux)
108+
nokogiri (1.18.7-x86_64-linux-gnu)
104109
racc (~> 1.4)
105110
pathutil (0.16.2)
106111
forwardable-extended (~> 2.6)
107-
pdf-reader (2.13.0)
112+
pdf-reader (2.14.1)
108113
Ascii85 (>= 1.0, < 3.0, != 2.0.0)
109114
afm (~> 0.2.1)
110115
hashery (~> 2.0)
@@ -113,25 +118,26 @@ GEM
113118
public_suffix (6.0.1)
114119
racc (1.8.1)
115120
rainbow (3.1.1)
116-
rake (13.2.1)
121+
rake (13.3.0)
117122
rb-fsevent (0.11.2)
118123
rb-inotify (0.11.1)
119124
ffi (~> 1.0)
120-
rexml (3.3.9)
121-
rouge (4.5.1)
125+
rexml (3.4.1)
126+
rouge (4.6.0)
122127
ruby-rc4 (0.1.5)
123128
safe_yaml (1.0.5)
124-
sass-embedded (1.81.0)
125-
google-protobuf (~> 4.28)
129+
sass-embedded (1.90.0)
130+
google-protobuf (~> 4.31)
126131
rake (>= 13)
127132
terminal-table (3.0.2)
128133
unicode-display_width (>= 1.1.1, < 3)
134+
traces (0.15.2)
129135
ttfunk (1.8.0)
130136
bigdecimal (~> 3.1)
131137
typhoeus (1.4.1)
132138
ethon (>= 0.9.0)
133139
unicode-display_width (2.6.0)
134-
webrick (1.9.0)
140+
webrick (1.9.1)
135141
yell (2.2.2)
136142
zeitwerk (2.6.18)
137143

@@ -141,10 +147,10 @@ PLATFORMS
141147

142148
DEPENDENCIES
143149
html-proofer (~> 5.0)
144-
jekyll-theme-chirpy (~> 7.1)
150+
jekyll-theme-chirpy (~> 7.3, >= 7.3.1)
145151
tzinfo (>= 1, < 3)
146152
tzinfo-data
147-
wdm (~> 0.1.1)
153+
wdm (~> 0.2.0)
148154

149155
BUNDLED WITH
150156
2.4.17

README.md

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -25,25 +25,9 @@ Jekyll site. The following is a list of targets:
2525
To save you time, and also in case you lose some files while copying, we extract those files/configurations of the
2626
latest version of the **Chirpy** theme and the [CD][CD] workflow to here, so that you can start writing in minutes.
2727

28-
## Prerequisites
29-
30-
Follow the instructions in the [Jekyll Docs](https://jekyllrb.com/docs/installation/) to complete the installation of
31-
the basic environment. [Git](https://git-scm.com/) also needs to be installed.
32-
33-
## Installation
34-
35-
Sign in to GitHub and [**use this template**][use-template] to generate a brand new repository and name it
36-
`USERNAME.github.io`, where `USERNAME` represents your GitHub username.
37-
38-
Then clone it to your local machine and run:
39-
40-
```console
41-
$ bundle
42-
```
43-
4428
## Usage
4529

46-
Please see the [theme's docs](https://github.com/cotes2020/jekyll-theme-chirpy#documentation).
30+
Check out the [theme's docs](https://github.com/cotes2020/jekyll-theme-chirpy/wiki).
4731

4832
## Contributing
4933

@@ -55,6 +39,5 @@ This work is published under [MIT][mit] License.
5539

5640
[gem]: https://rubygems.org/gems/jekyll-theme-chirpy
5741
[chirpy]: https://github.com/cotes2020/jekyll-theme-chirpy/
58-
[use-template]: https://github.com/cotes2020/chirpy-starter/generate
5942
[CD]: https://en.wikipedia.org/wiki/Continuous_deployment
6043
[mit]: https://github.com/cotes2020/chirpy-starter/blob/master/LICENSE

_config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,9 @@ exclude:
214214
- tools
215215
- README.md
216216
- LICENSE
217+
- purgecss.js
217218
- "*.config.js"
218-
- package*.json
219+
- "package*.json"
219220

220221
jekyll-archives:
221222
enabled: [categories, tags]

_data/share.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ platforms:
1818
#
1919
- type: Linkedin
2020
icon: "fab fa-linkedin"
21-
link: "https://www.linkedin.com/sharing/share-offsite/?url=URL"
21+
link: "https://www.linkedin.com/feed/?shareActive=true&shareUrl=URL"
2222
#
2323
# - type: Weibo
2424
# icon: "fab fa-weibo"

_layouts/post.html

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@
66
tail_includes:
77
- related-posts
88
- post-nav
9-
- comments
9+
script_includes:
10+
- comment
1011
---
1112

1213
{% include lang.html %}
1314

14-
<article class="px-1">
15+
{% include toc-status.html %}
16+
17+
<article class="px-1" data-toc="{{ enable_toc }}">
1518
<header>
1619
<h1 data-toc-skip>{{ page.title }}</h1>
1720
{% if page.description %}
@@ -98,6 +101,30 @@ <h1 data-toc-skip>{{ page.title }}</h1>
98101
</div>
99102
</header>
100103

104+
{% if enable_toc %}
105+
<div id="toc-bar" class="d-flex align-items-center justify-content-between invisible">
106+
<span class="label text-truncate">{{ page.title }}</span>
107+
<button type="button" class="toc-trigger btn me-1">
108+
<i class="fa-solid fa-list-ul fa-fw"></i>
109+
</button>
110+
</div>
111+
112+
<button id="toc-solo-trigger" type="button" class="toc-trigger btn btn-outline-secondary btn-sm">
113+
<span class="label ps-2 pe-1">{{- site.data.locales[lang].panel.toc -}}</span>
114+
<i class="fa-solid fa-angle-right fa-fw"></i>
115+
</button>
116+
117+
<dialog id="toc-popup" class="p-0">
118+
<div class="header d-flex flex-row align-items-center justify-content-between">
119+
<div class="label text-truncate py-2 ms-4">{{- page.title -}}</div>
120+
<button id="toc-popup-close" type="button" class="btn mx-1 my-1 opacity-75">
121+
<i class="fas fa-close"></i>
122+
</button>
123+
</div>
124+
<div id="toc-popup-content" class="px-4 py-3 pb-4"></div>
125+
</dialog>
126+
{% endif %}
127+
101128
<div class="content">
102129
{{ content }}
103130
</div>

0 commit comments

Comments
 (0)