Skip to content

Commit 91e9ea8

Browse files
ulysses4everGregory Coxpierluc-codes
authored
Switch to Markdown (#103)
* Fix unmatched paragraph tags * Capitalize Higher Order Functions title consistently * Change apostrophes in text to curved closing quotes * Write ellipsis as ... in markdown and as single character in html * Write em dash as a single character in html * Adjust HTML whitespace to make automatic replacement easier * Replace single quotes with &#39; in code blocks * Replace double quotes with &quot; in code blocks * Change double quotes in HTML text to curved double quote characters * Change &quot; to literal double quote in inline code in 1 location * Replace raw characters with entities (e.g. &lt;) in code blocks * Align use of no-break space U+00A0 and &nbsp; in markdown and HTML * Change <a name...> anchors to id attributes on h2 tags * Add id attributes to heading tags that do not have them * Change order of attributes in img tags * Delete px from img tag width and height attributes * Replace newline with space in img alt attributes * Change license link rel attribute from nofollow to license and adjust its position * Post-process pandoc output to add chapters class to chapter list * Change HTML chapter list to match markdown: remove enclosing paragraph and add type attribute * Add upper margin to chapter list to restore the spacing from the removed <p> tag * Change <b> and <em> tags to <strong> in HTML * Change <i> tags to <em> in HTML * Change hintbox tag from <p> to <div> in one location * Put <p> tag around contents of hintboxes * Change <span> tags to <code> and adjust CSS for inline code * Do all remaining changes to replace existing HTML with markdown-generated HTML * add github pages workflow Signed-off-by: Artem Pelenitsyn <[email protected]> * CI: make github pages workflow regenerate HTML from Markdown Removed duplicate checkout action in deploy workflow. * change em -> strong on index.html to preserve original formatting * fix formatting of an error message * Adjust alignment of snippet * Adjust style to make sure that inline snippet are line breakable (line wrap) * remove generated files (including docs/*.html except index), clean up generate.sh, add .gitignore & Makefile * clean up assets: remove dup CSS, move top-level sh-scripts under sh/Scripts * responsive design for mobile (manually cherry-pick 7c5423a from #64) --------- Signed-off-by: Artem Pelenitsyn <[email protected]> Co-authored-by: Gregory Cox <[email protected]> Co-authored-by: Pier-Luc Caron St-Pierre <[email protected]>
1 parent 6d7ff05 commit 91e9ea8

45 files changed

Lines changed: 217 additions & 15135 deletions

Some content is hidden

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

.github/workflows/deploy-pages.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ jobs:
1212
steps:
1313
- name: Checkout
1414
uses: actions/checkout@v5
15+
- name: Install pandoc
16+
run: |
17+
sudo apt install pandoc
18+
- name: Generate HTML from Markdown
19+
run: make
1520
- name: Upload artifact
1621
uses: actions/upload-pages-artifact@v4
1722
with:

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
docs/*.html
2+
!docs/index.html
3+
4+
.DS_Store

Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
##
2+
# Build LYAH web site from Markdown sources using Pandoc and sed
3+
#
4+
5+
all: site
6+
7+
site:
8+
cd markdown && ./generate.sh
9+
10+
clean:
11+
find ./docs -name '*.html' -not -name 'index.html' -delete
12+
13+
# end

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,13 @@ The whole thing is completely free to read online, but the original is also avai
2222
- [ ] refactor web code
2323
- [ ] make UI more modern (whilst retaining as much of the original "feel" as possible)
2424
- [x] make content pages mobile-friendly (*still needs work)
25-
- [ ] make homepage mobile-friendly
25+
- [ ] make index page mobile-friendly
2626
- [x] prepare "content edit request" interface on GitHub
2727
- [ ] add exercises
2828
- [ ] update content (just overall, the outdated parts)
2929

30+
For some of these points, there are more focused issues on GitHub.
31+
3032
Don't forget to star the GitHub repository if you like it! 🙂
3133

3234
## Discussion

0 commit comments

Comments
 (0)