Skip to content

Commit d42c9f9

Browse files
committed
Reviewed posts and added Jekyll-based HTML generation.
1 parent d2465cf commit d42c9f9

33 files changed

+1411
-420
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_site/

Gemfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# frozen_string_literal: true
2+
3+
source "https://rubygems.org"
4+
5+
# gem "rails"
6+
7+
gem "jekyll", "~> 4.4"
8+
9+
gem "jekyll-redirect-from", "~> 0.16.0"
10+
11+
gem "jekyll-last-modified-at", "~> 1.3"
12+
13+
gem "activesupport", "~> 8.0"
14+
15+
gem "jekyll-feed", "~> 0.17.0"
16+
17+
# Avoid polling for changes on Windows
18+
gem 'wdm', '>= 0.1.0' if Gem.win_platform?
19+
gem "jekyll-toc", "~> 0.19.0"

Gemfile.lock

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
activesupport (8.0.1)
5+
base64
6+
benchmark (>= 0.3)
7+
bigdecimal
8+
concurrent-ruby (~> 1.0, >= 1.3.1)
9+
connection_pool (>= 2.2.5)
10+
drb
11+
i18n (>= 1.6, < 2)
12+
logger (>= 1.4.2)
13+
minitest (>= 5.1)
14+
securerandom (>= 0.3)
15+
tzinfo (~> 2.0, >= 2.0.5)
16+
uri (>= 0.13.1)
17+
addressable (2.8.7)
18+
public_suffix (>= 2.0.2, < 7.0)
19+
base64 (0.2.0)
20+
benchmark (0.4.0)
21+
bigdecimal (3.1.9)
22+
colorator (1.1.0)
23+
concurrent-ruby (1.3.5)
24+
connection_pool (2.5.0)
25+
csv (3.3.2)
26+
drb (2.2.1)
27+
em-websocket (0.5.3)
28+
eventmachine (>= 0.12.9)
29+
http_parser.rb (~> 0)
30+
eventmachine (1.2.7)
31+
ffi (1.17.1-x64-mingw-ucrt)
32+
forwardable-extended (2.6.0)
33+
google-protobuf (4.29.3-x64-mingw-ucrt)
34+
bigdecimal
35+
rake (>= 13)
36+
http_parser.rb (0.8.0)
37+
i18n (1.14.7)
38+
concurrent-ruby (~> 1.0)
39+
jekyll (4.4.1)
40+
addressable (~> 2.4)
41+
base64 (~> 0.2)
42+
colorator (~> 1.0)
43+
csv (~> 3.0)
44+
em-websocket (~> 0.5)
45+
i18n (~> 1.0)
46+
jekyll-sass-converter (>= 2.0, < 4.0)
47+
jekyll-watch (~> 2.0)
48+
json (~> 2.6)
49+
kramdown (~> 2.3, >= 2.3.1)
50+
kramdown-parser-gfm (~> 1.0)
51+
liquid (~> 4.0)
52+
mercenary (~> 0.3, >= 0.3.6)
53+
pathutil (~> 0.9)
54+
rouge (>= 3.0, < 5.0)
55+
safe_yaml (~> 1.0)
56+
terminal-table (>= 1.8, < 4.0)
57+
webrick (~> 1.7)
58+
jekyll-feed (0.17.0)
59+
jekyll (>= 3.7, < 5.0)
60+
jekyll-last-modified-at (1.3.2)
61+
jekyll (>= 3.7, < 5.0)
62+
jekyll-redirect-from (0.16.0)
63+
jekyll (>= 3.3, < 5.0)
64+
jekyll-sass-converter (3.1.0)
65+
sass-embedded (~> 1.75)
66+
jekyll-toc (0.19.0)
67+
jekyll (>= 3.9)
68+
nokogiri (~> 1.12)
69+
jekyll-watch (2.2.1)
70+
listen (~> 3.0)
71+
json (2.10.1)
72+
kramdown (2.5.1)
73+
rexml (>= 3.3.9)
74+
kramdown-parser-gfm (1.1.0)
75+
kramdown (~> 2.0)
76+
liquid (4.0.4)
77+
listen (3.9.0)
78+
rb-fsevent (~> 0.10, >= 0.10.3)
79+
rb-inotify (~> 0.9, >= 0.9.10)
80+
logger (1.6.6)
81+
mercenary (0.4.0)
82+
minitest (5.25.4)
83+
nokogiri (1.18.2-x64-mingw-ucrt)
84+
racc (~> 1.4)
85+
pathutil (0.16.2)
86+
forwardable-extended (~> 2.6)
87+
public_suffix (6.0.1)
88+
racc (1.8.1)
89+
rake (13.2.1)
90+
rb-fsevent (0.11.2)
91+
rb-inotify (0.11.1)
92+
ffi (~> 1.0)
93+
rexml (3.4.0)
94+
rouge (4.5.1)
95+
safe_yaml (1.0.5)
96+
sass-embedded (1.83.4-x64-mingw-ucrt)
97+
google-protobuf (~> 4.29)
98+
securerandom (0.4.1)
99+
terminal-table (3.0.2)
100+
unicode-display_width (>= 1.1.1, < 3)
101+
tzinfo (2.0.6)
102+
concurrent-ruby (~> 1.0)
103+
unicode-display_width (2.6.0)
104+
uri (1.0.2)
105+
wdm (0.2.0)
106+
webrick (1.9.1)
107+
108+
PLATFORMS
109+
x64-mingw-ucrt
110+
111+
DEPENDENCIES
112+
activesupport (~> 8.0)
113+
jekyll (~> 4.4)
114+
jekyll-feed (~> 0.17.0)
115+
jekyll-last-modified-at (~> 1.3)
116+
jekyll-redirect-from (~> 0.16.0)
117+
jekyll-toc (~> 0.19.0)
118+
wdm (>= 0.1.0)
119+
120+
BUNDLED WITH
121+
2.5.22

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,8 @@ This repo contains the source and images of the chains used by PostSharp Technol
33
The publishing process is the following:
44

55
- There is a GitHub action that publishes all static files to https://emails.postsharp.net/. The reason for this is to publish _images_.
6-
- Use https://markdowntohtml.com/ to convert the Markdown file of each email to HTML. Copy the raw HTML.
6+
- Run Jekyll (`run-all.ps1`) to generate all HTML emails from Markdown.
77
- In ConvertKit:
88
- Create an HTML field and paste the raw HTML.
9-
* Change all images to add the `https://emails.postsharp.net/metalama-email-course` prefix before any image `src`.
10-
* Fix all markdown notes (using the `> [!NOTE]` syntax) manually. Add `class="note"` to the `blockquote` element and remove the `NOTE` text.
11-
- Make sure that you're using a template with a CSS field that has the CSS of Highlight.JS.
12-
139

1410

_config.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Welcome to Jekyll!
2+
#
3+
# This config file is meant for settings that affect your whole blog, values
4+
# which you are expected to set up once and rarely need to edit after that.
5+
# For technical reasons, this file is *NOT* reloaded automatically when you use
6+
# 'jekyll serve'. If you change this file, please restart the server process.
7+
8+
# Site settings
9+
title: Metalama
10+
11+
base_path: "" # the subpath of your site, e.g. /blog
12+
url: "https://metalama.net" # the base hostname & protocol for your site
13+
14+
15+
strict_front_matter: true
16+
17+
title_separator: "|"
18+
19+
20+
exclude: ["*.ps1", "README.md", "package.json", "package-lock.json", "gulpfile.js", "eng/**"]
21+
include: ["solutions/*.md"]
22+
23+
sass:
24+
style: compressed
25+
sourcemap: always
26+
silence_deprecations: ["import", "slash-div"]
27+
28+
29+
defaults:
30+
- scope:
31+
path: ""
32+
type: "pages"
33+
values:
34+
layout: "email"
35+
- scope:
36+
path: "metalama-email-course"
37+
values:
38+
images_url: "https://emails.postsharp.net/metalama-email-course/images"
39+
40+
markdown: kramdown
41+
kramdown:
42+
highlighter: rouge
43+
syntax_highlighter: rouge
44+
syntax_highlighter_opts:
45+
line_numbers: false

0 commit comments

Comments
 (0)