Skip to content

Commit 6f29e44

Browse files
Added max width to images in css
1 parent 40eaae6 commit 6f29e44

9 files changed

+67
-24
lines changed

Diagrams/Generate.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def to_png(filename, options)
2020
to_png "RedGreenRefactor.svg", :density => 150
2121
to_png "RedGreenRefactor2.svg", :density => 150
2222
to_png "SenderRecipientMessage.svg", :density => 150
23-
to_png "WebOfObjects.rb", :density => 95
23+
to_png "WebOfObjects.svg", :density => 95
2424

2525

2626
#Pathname.glob("./*.svg") do |svg_image|
355 Bytes
Binary file not shown.

custom_commands.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ def generate_epub(subdir, filename)
9494
end
9595

9696
def generate_html(subdir, filename)
97+
9798
options = [
9899
$global_css,
99100
$pandoc_highlight_opts,
@@ -102,6 +103,7 @@ def generate_html(subdir, filename)
102103
"./Cover.md"
103104
]
104105
generate_format subdir, filename, options
106+
105107
end
106108

107109
def generate_pdf(subdir, filename)
@@ -134,7 +136,6 @@ def generate_format(subdir, filename, additional_options)
134136
puts sh( cmd_begin + cmd_custom + cmd_end)
135137
end
136138

137-
138139
class Git
139140
include FileUtils
140141

environment_setup.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ sudo apt-get install \
77
xdot \
88
git \
99
default-jdk \
10-
inkscape \
11-
ruby-kramdown
12-
13-
10+
inkscape
11+
1412
sudo -v && wget -nv -O- https://raw.githubusercontent.com/kovidgoyal/calibre/master/setup/linux-installer.py | sudo python -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main()"
1513

environment_setup.sh~

Lines changed: 0 additions & 14 deletions
This file was deleted.

manuscript/110_Constrained_Non_Determinism.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ and maybe two others that contain chapters on TDD. All of this sums up
2121
to about two or three thousands of paper pages, plus numerous posts on
2222
many blogs. And you know what I noticed? No two authors use exactly the
2323
same sets of techniques for test-driving their code! I mean, sometimes,
24-
when you look techniques they are suggesting, the suggestions from two
24+
when you look at the techniques they are suggesting, two
2525
authorities contradict each other. As each authority has their
2626
followers, it is not uncommon to observe and take part in discussions
2727
about whether this or that technique is better than a competing one or
@@ -34,8 +34,7 @@ There are certain sets of techniques that work together and choosing one
3434
technique leaves us with issues we have to resolve by adopting other
3535
techniques. This is how a style is created.
3636

37-
Developing a style starts with underlying set of principles. These
38-
principles lead us to adopt our first technique, which makes us adopt
37+
Developing a style starts with a set of problems to solve and an underlying set of principles we consider important. These principles lead us to adopt our first technique, which makes us adopt
3938
another one and, ultimately, a coherent style emerges. Using Constrained
4039
Non-Determinism as an example, I will try to show you how part of
4140
a style gets derived from a technique that is derived from a principle.
@@ -122,7 +121,7 @@ hand, for a behavior that occurs for all values other than
122121

123122
Now that the Statement itself is freed from the knowledge of the
124123
concrete value of `hostName` variable, the concrete value of
125-
“backup\_MY\_HOST\_NAME.zip" looks kinda weird. There is no clear
124+
“backup\_MY\_HOST\_NAME.zip" looks kind of weird. There is no clear
126125
indication of the kind of relationship between input and output and
127126
whether there is any at all (one may reason whether the output is always
128127
the same string or maybe it depends on the string length). It is unclear

manuscript/Stylesheets/Global.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
img
2+
{
3+
max-width: 60em;
4+
}
5+
16
div.achievement
27
{
38
border-top-width: 4px;

manuscript/Stylesheets/Global.css~

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
div.achievement
2+
{
3+
border-top-width: 4px;
4+
border-bottom-width: 4px;
5+
border-top-style: double;
6+
border-bottom-style: double;
7+
border-top-color: #E1A60A;
8+
border-bottom-color: #E1A60A;
9+
padding: 0.5em 1em;
10+
}
11+
12+
div.disclaimer
13+
{
14+
border-top-width: 1px;
15+
border-bottom-width: 1px;
16+
border-top-style: dashed;
17+
border-bottom-style: dashed;
18+
border-top-color: black;
19+
border-bottom-color: black;
20+
padding: 0.5em 1em;
21+
font-size: 0.9em;
22+
}
23+
24+
div.disclaimer h3 {
25+
font-size: 1em;
26+
font-weight: bold;
27+
}
28+
29+
30+
.achievement h3:before {
31+
content: "Achievement: ";
32+
}
33+
34+
.achievement p {
35+
font-style: italic;
36+
}
37+
38+
dt {
39+
padding-top: 0.2em;
40+
}
41+
42+
td, th {
43+
border: solid thin #C0C0C0;
44+
padding: 4px;
45+
}
46+
47+
table {
48+
width: 70%;
49+
}
50+
51+
html, body {
52+
widows: 0;
53+
orphans: 0;
54+
}

manuscript/images/WebOfObjects.png

659 Bytes
Loading

0 commit comments

Comments
 (0)