Skip to content

Make preparations for switching to markdown-generated HTML #41

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 27 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
5c6089f
Fix unmatched paragraph tags
Nov 23, 2022
d7fde6e
Capitalize Higher Order Functions title consistently
Nov 20, 2022
143f05c
Change apostrophes in text to curved closing quotes
Nov 21, 2022
336356e
Write ellipsis as ... in markdown and as single character in html
Nov 21, 2022
150ee66
Write em dash as a single character in html
Nov 21, 2022
778b0d0
Adjust HTML whitespace to make automatic replacement easier
Nov 22, 2022
dc9ac90
Replace single quotes with ' in code blocks
Nov 23, 2022
5e065a3
Replace double quotes with " in code blocks
Nov 23, 2022
51249bf
Change double quotes in HTML text to curved double quote characters
Nov 23, 2022
0216c2a
Change " to literal double quote in inline code in 1 location
Nov 23, 2022
501c167
Replace raw characters with entities (e.g. <) in code blocks
Nov 23, 2022
2d7ac45
Align use of no-break space U+00A0 and   in markdown and HTML
Nov 24, 2022
4251b94
Change <a name...> anchors to id attributes on h2 tags
Nov 24, 2022
6b4fe39
Add id attributes to heading tags that do not have them
Nov 24, 2022
571b3ac
Change order of attributes in img tags
Nov 24, 2022
af2552c
Delete px from img tag width and height attributes
Nov 24, 2022
c84190a
Replace newline with space in img alt attributes
Nov 24, 2022
1c5b1a0
Change license link rel attribute from nofollow to license and adjust…
Nov 24, 2022
02209b5
Post-process pandoc output to add chapters class to chapter list
Nov 24, 2022
e1a6952
Change HTML chapter list to match markdown: remove enclosing paragrap…
Nov 24, 2022
e4771d8
Add upper margin to chapter list to restore the spacing from the remo…
Nov 26, 2022
8565206
Change <b> and <em> tags to <strong> in HTML
Nov 25, 2022
acf0b8a
Change <i> tags to <em> in HTML
Nov 25, 2022
469256b
Change hintbox tag from <p> to <div> in one location
Nov 25, 2022
11f0e05
Put <p> tag around contents of hintboxes
Nov 25, 2022
b403b15
Change <span> tags to <code> and adjust CSS for inline code
Nov 25, 2022
14e504c
Do all remaining changes to replace existing HTML with markdown-gener…
Nov 27, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3,121 changes: 1,158 additions & 1,963 deletions docs/a-fistful-of-monads.html

Large diffs are not rendered by default.

11 changes: 9 additions & 2 deletions docs/assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ a:hover {
text-decoration:none;
}
em {
font-style:italic;
}
strong {
font-style:normal;
font-weight:bold;
}
Expand All @@ -55,7 +58,7 @@ img.center {
margin:10px auto 25px auto;
display:block;
}
pre.code {
pre > code {
color:white;
/*background-color:#522812;*/
background-color:black;
Expand All @@ -77,6 +80,9 @@ pre.code {
margin-bottom:25px;
background-image:url(https://s3.amazonaws.com/lyah/note.jpg);
}
.hintbox > p {
margin-bottom:0px;
}
.label {
white-space:nowrap;
font-family:Consolas, "Courier New", monospace;
Expand All @@ -99,7 +105,7 @@ pre.code {
background-color:#99DDcc;
color:black;
}
.fixed {
:not(pre) > code:not(.label, .function, .type, .class, .law) {
white-space:nowrap;
font-family:Consolas, "Courier New", monospace;
background-color:#ddd;
Expand Down Expand Up @@ -127,6 +133,7 @@ pre.code {
padding-left:25px;
margin:0px;
color:#408156 ;
margin-top:25px;
margin-bottom:25px;
}
.chapters > li {
Expand Down
346 changes: 195 additions & 151 deletions docs/chapters.html

Large diffs are not rendered by default.

50 changes: 37 additions & 13 deletions docs/faq.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,43 @@
<body class="introcontent">
<div class="bgwrapper">
<div id="content">
<h1>FAQ</h1>
<img src="assets/images/faq/turtle.png" alt="turtle???" class="right" width="349" height="204">
<h2>Can I put this tutorial on my site or change it or whatever?</h2>
<p>Sure, it's licensed under a <a href="https://creativecommons.org/licenses/by-nc-sa/3.0/" rel="nofollow">creative commons</a> license, so you can share and change this, as long as you do it with a smile on your face and for non-commercial purposes.</p>
<h2>Do you recommend any other Haskell reading material?</h2>
<p>There are loads of awesome tutorials out there, but I'd just like to point out how great <a href="http://book.realworldhaskell.org/read/" rel="nofollow">Real World Haskell</a> is. It's really great. I feel it complements this tutorial nicely. This tutorial focuses mainly on using simple examples to ease beginners into learning Haskell, whereas Real World Haskell really shows you how to do useful stuff with it.</p>
<p>Another great Haskell resource is <a href="https://tryhaskell.org" rel="nofollow">Try Haskell</a>, which allows you to try Haskell right in your browser and offers a rad interactive walkthrough.</p>
<h2>How do I get in touch with you?</h2>
<p>The best way would be to shoot me an email to bonus at learnyouahaskell dot com. I kinda suck at email though, so please, please don't be mad if I don't reply in a timely fashion!</p>
<h2>Your book is cool but I want some exercises too!</h2>
<p>Coming soon! A lot of people have been asking me to add exercises, so I'll be putting some up soonish.</p>
<h2>Tell me about yourself!</h2>
<p>My name is Miran Lipovača, I reside in Ljubljana, Slovenia. Most of my time is spent on doing nothing in particular, but when I'm not doing nothing I'm either programming, drawing, boxing or playing bass. I even have a cool <a href="https://www.bigbasstabs.com">bass tabs</a> site. I also have a collection of stuffed owls and sometimes I talk to them and they talk back.</p>
<h1 id="faq">FAQ</h1>
<img src="assets/images/faq/turtle.png" class="right" width="349"
height="204" alt="turtle???">
<h2 id="can-i-put-this-tutorial-on-my-site-or-change-it-or-whatever">Can
I put this tutorial on my site or change it or whatever?</h2>
<p>Sure, it’s licensed under a <a
href="https://creativecommons.org/licenses/by-nc-sa/3.0/"
rel="license">creative commons</a> license, so you can share and change
this, as long as you do it with a smile on your face and for
non-commercial purposes.</p>
<h2 id="do-you-recommend-any-other-haskell-reading-material">Do you
recommend any other Haskell reading material?</h2>
<p>There are loads of awesome tutorials out there, but I’d just like to
point out how great <a href="http://book.realworldhaskell.org/read/"
rel="nofollow">Real World Haskell</a> is. It’s really great. I feel it
complements this tutorial nicely. This tutorial focuses mainly on using
simple examples to ease beginners into learning Haskell, whereas Real
World Haskell really shows you how to do useful stuff with it.</p>
<p>Another great Haskell resource is <a href="https://tryhaskell.org"
rel="nofollow">Try Haskell</a>, which allows you to try Haskell right in
your browser and offers a rad interactive walkthrough.</p>
<h2 id="how-do-i-get-in-touch-with-you">How do I get in touch with
you?</h2>
<p>The best way would be to shoot me an email to bonus at
learnyouahaskell dot com. I kinda suck at email though, so please,
please don’t be mad if I don’t reply in a timely fashion!</p>
<h2 id="your-book-is-cool-but-i-want-some-exercises-too">Your book is
cool but I want some exercises too!</h2>
<p>Coming soon! A lot of people have been asking me to add exercises, so
I’ll be putting some up soonish.</p>
<h2 id="tell-me-about-yourself">Tell me about yourself!</h2>
<p>My name is Miran Lipovača, I reside in Ljubljana, Slovenia. Most of
my time is spent on doing nothing in particular, but when I’m not doing
nothing I’m either programming, drawing, boxing or playing bass. I even
have a cool <a href="https://www.bigbasstabs.com">bass tabs</a> site. I
also have a collection of stuffed owls and sometimes I talk to them and
they talk back.</p>
<div class="footdiv">
<ul>
<li style="text-align:center">
Expand Down
Loading