Skip to content

Commit 2164e27

Browse files
committed
Move per-chapter extracted code to code/chapter. Put code symlink in html root
1 parent 23f46e9 commit 2164e27

23 files changed

+22
-36
lines changed

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/tex/*
22
/html/*.html
3-
/html/js/0*.js
4-
/html/js/1*.js
3+
/code/chapter/*
54
/node_modules
65
.tern-port
6+
toc.txt
7+
img/cover.xcf

00_intro.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
:next_link: 01_values
2-
:load_files: ["js/00_intro.js"]
2+
:load_files: ["code/chapter/00_intro.js"]
33

44
= Introduction =
55

04_data.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
:chap_num: 4
22
:prev_link: 03_functions
33
:next_link: 05_higher_order
4-
:load_files: ["js/code/jacques_journal.js", "js/04_data.js"]
4+
:load_files: ["code/jacques_journal.js", "code/chapter/04_data.js"]
55

66
= Data Structures: Objects and Arrays =
77

05_higher_order.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
:chap_num: 5
22
:prev_link: 04_data
33
:next_link: 06_object
4-
:load_files: ["js/code/ancestry.js", "js/00_intro.js", "js/05_higher_order.js"]
4+
:load_files: ["code/ancestry.js", "code/chapter/00_intro.js", "code/chapter/05_higher_order.js"]
55

66
= Higher-Order Functions =
77

06_object.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
:chap_num: 6
22
:prev_link: 05_higher_order
33
:next_link: 07_elife
4-
:load_files: ["js/code/mountains.js", "js/06_object.js"]
4+
:load_files: ["code/mountains.js", "code/chapter/06_object.js"]
55

66
= The Secret Life of Objects =
77

07_elife.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
:chap_num: 7
22
:prev_link: 06_object
33
:next_link: 08_error
4-
:load_files: ["js/07_elife.js", "js/animateworld.js"]
4+
:load_files: ["code/chapter/07_elife.js", "js/animateworld.js"]
55

66
= Project: Electronic Life =
77

08_error.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
:chap_num: 8
22
:prev_link: 07_elife
33
:next_link: 09_regexp
4-
:load_files: ["js/08_error.js"]
4+
:load_files: ["code/chapter/08_error.js"]
55

66
= Bugs and Error Handling =
77

10_modules.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
:chap_num: 10
22
:prev_link: 09_regexp
33
:next_link: 11_language
4-
:load_files: ["js/10_modules.js", "js/loadfile.js"]
4+
:load_files: ["code/chapter/10_modules.js", "js/loadfile.js"]
55

66
= Modules =
77

11_language.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
:chap_num: 11
22
:prev_link: 10_modules
33
:next_link: 12_browser
4-
:load_files: ["js/11_language.js"]
4+
:load_files: ["code/chapter/11_language.js"]
55

66
= Project: A Programming Language =
77

12_browser.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,10 +266,10 @@ the JavaScript program) to be fetched from a URL.
266266
[source,text/html]
267267
----
268268
<h1>Testing alert</h1>
269-
<script src="js/hello.js"></script>
269+
<script src="code/hello.js"></script>
270270
----
271271

272-
The _js/hello.js_ file included here contains the same simple program,
272+
The _code/hello.js_ file included here contains the same simple program,
273273
`alert("hello!")`. When an HTML page references other URLs as part of
274274
itself, for example an image file or a script, web browsers will
275275
retrieve those immediately, and include them in the page.

0 commit comments

Comments
 (0)