├── LICENSE ├── README.assets ├── banner.png └── info.png ├── README.md ├── jemdoc ├── jemdoc_files ├── MENU ├── Makefile ├── cheatsheet.jemdoc ├── contact.jemdoc ├── download.jemdoc ├── example.jemdoc ├── extra.jemdoc ├── group.jemdoc ├── htmlchanges.jemdoc ├── index.jemdoc ├── latex.jemdoc ├── link.jemdoc ├── mathjax.jemdoc ├── menu.jemdoc ├── modelines.jemdoc ├── mysite.conf ├── nomenu.jemdoc ├── post1.jemdoc ├── profile.jemdoc ├── projects.jemdoc ├── revision.jemdoc ├── stuff.jemdoc ├── tables.jemdoc ├── underscore.jemdoc └── using.jemdoc └── www ├── cheatsheet.html ├── contact.html ├── download.html ├── example.html ├── extra.html ├── font-awesome ├── HELP-US-OUT.txt ├── css │ ├── font-awesome.css │ └── font-awesome.min.css ├── fonts │ ├── FontAwesome.otf │ ├── fontawesome-webfont.eot │ ├── fontawesome-webfont.svg │ ├── fontawesome-webfont.ttf │ ├── fontawesome-webfont.woff │ └── fontawesome-webfont.woff2 ├── less │ ├── animated.less │ ├── bordered-pulled.less │ ├── core.less │ ├── fixed-width.less │ ├── font-awesome.less │ ├── icons.less │ ├── larger.less │ ├── list.less │ ├── mixins.less │ ├── path.less │ ├── rotated-flipped.less │ ├── screen-reader.less │ ├── stacked.less │ └── variables.less └── scss │ ├── _animated.scss │ ├── _bordered-pulled.scss │ ├── _core.scss │ ├── _fixed-width.scss │ ├── _icons.scss │ ├── _larger.scss │ ├── _list.scss │ ├── _mixins.scss │ ├── _path.scss │ ├── _rotated-flipped.scss │ ├── _screen-reader.scss │ ├── _stacked.scss │ ├── _variables.scss │ └── font-awesome.scss ├── group.html ├── htmlchanges.html ├── images ├── banner.png ├── banner2.png ├── groups │ ├── group_all.png │ ├── outing │ │ ├── falls2.png │ │ ├── mist.png │ │ ├── mountainskies.png │ │ ├── nature.png │ │ ├── ocean.png │ │ ├── paris.png │ │ ├── rocks.png │ │ ├── underwater.png │ │ └── wedding.png │ └── people │ │ ├── p1.png │ │ ├── p10.png │ │ ├── p11.png │ │ ├── p12.png │ │ ├── p13.png │ │ ├── p14.png │ │ ├── p15.png │ │ ├── p16.png │ │ ├── p2.png │ │ ├── p3.png │ │ ├── p4.png │ │ ├── p5.png │ │ ├── p6.png │ │ ├── p7.png │ │ ├── p8.png │ │ └── p9.png ├── icon.png ├── info.png ├── pic01.png ├── pic02.png ├── pic03.png ├── pic04.png ├── pic05.png ├── pic06.png ├── profile.png ├── profile.svg └── profile2.png ├── index.html ├── latex.html ├── link.html ├── main.css ├── mathjax.html ├── menu.html ├── modelines.html ├── nomenu.css ├── nomenu.html ├── post1.html ├── profile.html ├── projects.html ├── revision.html ├── stuff.html ├── table.css ├── tables.html ├── underscore.html └── using.html /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018-2020 the Deno authors 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.assets/banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/README.assets/banner.png -------------------------------------------------------------------------------- /README.assets/info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/README.assets/info.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | banner 2 | 3 | [jemdoc](https://jemdoc.jaboc.net/) (or [jemdoc+MathJax](http://www.mit.edu/~wsshin/jemdoc+mathjax.html)) has always been a good choice for light static website generating. 4 | 5 | Yet, now it has a new design. If you know how to use [jemdoc](https://jemdoc.jaboc.net/), there is no learning curve. The usage is exactly the same. 6 | 7 | **Demo:** [https://szl2.github.io/jemdoc-new-design/www/index.html](https://szl2.github.io/jemdoc-new-design/www/index.html) 8 | 9 | ![info](README.assets/info.png) 10 | 11 | ## Download 12 | 13 | You need to download `./jemdoc`,`./www/main.css`, `./www/table.css` and `./jemdoc_files/mysite.conf` files. 14 | 15 | Notice that, **you have to download the `./jemdoc` excutable, because there were some modification from the original one in [`jemdox+Mathjax`](https://szl2.github.io/jemdoc-new-design/www/index.html)**. 16 | 17 | The usage is exactly the same as [`jemdoc`](https://jemdoc.jaboc.net/). Refer [this page](https://jemdoc.jaboc.net/) for how to jemdoc. 18 | 19 | ## Usage 20 | 21 | Assuming you have already install the `jemdoc+MathJax`, notice that 22 | 23 | in `./jemdoc_files/`, we store `.jemdoc` files and `mysite.conf` 24 | 25 | in `./www/`, we store the output `.html` / `.css` / `.js` files and website assets. 26 | 27 | Suppose you are currently in `./jemdoc_files/`, we use the following to compile 28 | 29 | ``` 30 | python ../jemdoc -c mysite.conf -o ../www/ *.jemdoc 31 | ``` 32 | 33 | You can also use this for single page generation or all page generation by using `*.jemdoc`. 34 | -------------------------------------------------------------------------------- /jemdoc_files/MENU: -------------------------------------------------------------------------------- 1 | About [index.html] 2 | 3 | My Templates 4 | Profile Page [profile.html] 5 | Blog Post Page [post1.html] 6 | Project Page [projects.html] 7 | Group Page [group.html] 8 | 9 | Jemdoc 10 | download [download.html] 11 | version/bug info [revision.html] 12 | contact [contact.html] 13 | 14 | User's guide 15 | running jemdoc [using.html] 16 | example page [example.html] 17 | example page (no menu) [nomenu.html] 18 | cheat sheet [cheatsheet.html] 19 | extra syntax [extra.html] 20 | 21 | Configuration 22 | html changes [htmlchanges.html] 23 | adding a menu [menu.html] 24 | modelines [modelines.html] 25 | 26 | Goodies 27 | vim, make [stuff.html] 28 | latex equations [latex.html] 29 | tables [tables.html] 30 | 31 | Additional Features 32 | MathJax [mathjax.html] 33 | Underscore [underscore.html] 34 | Link [link.html] 35 | Open in New Tab [\http://www.google.com] 36 | -------------------------------------------------------------------------------- /jemdoc_files/Makefile: -------------------------------------------------------------------------------- 1 | DOCS=index cheatsheet contact download revision using menu stuff extra example modelines htmlchanges latex tables 2 | 3 | HDOCS=$(addsuffix .html, $(DOCS)) 4 | PHDOCS=$(addprefix html/, $(HDOCS)) 5 | 6 | .PHONY : update 7 | update : $(PHDOCS) 8 | @echo -n 'Copying to (hidden) server...' 9 | @rsync -a --delete --copy-unsafe-links *.jemdoc html/* dist eqs ~/jemdoc/stage/ 10 | @echo ' done.' 11 | 12 | .PHONY : extra 13 | extra : 14 | cp ~/.vim/syntax/jemdoc.vim dist/ 15 | 16 | .PHONY : docs 17 | docs : $(PHDOCS) 18 | 19 | html/%.html : %.jemdoc MENU jemdoc.conf 20 | ~/jemdoc/jemdoc -o $@ -c jemdoc.conf $< 21 | 22 | example.jemdoc : exampleIN.jemdoc procexample.py 23 | @echo 'making exampleIN' 24 | @./procexample.py 25 | 26 | .PHONY : realupdate 27 | realupdate : $(PHDOCS) 28 | @echo -n 'Copying to (hidden) server...' 29 | @rsync -a --delete --copy-unsafe-links *.jemdoc html/* dist ~/jemdoc/stage/ 30 | @echo ' done.' 31 | @echo 'Copying to moa...' 32 | rsync -a --delete --copy-unsafe-links *.jemdoc ~/jemdoc/stage/ moa:/var/www/jemdoc/ 33 | @echo ' done.' 34 | 35 | .PHONY : clean 36 | clean : 37 | -rm -f html/*.html 38 | -------------------------------------------------------------------------------- /jemdoc_files/cheatsheet.jemdoc: -------------------------------------------------------------------------------- 1 | # jemdoc: menu{MENU}{cheatsheet.html} 2 | = jemdoc -- cheatsheet 3 | 4 | == Basic formatting 5 | - /\/italics\// 6 | - *\*bold\** 7 | - +\+monospace\++ 8 | - +\-+ is a hyphen (-) 9 | - +\-\-+ is an en-dash (--) 10 | - +\-\-\-+ is an em-dash (---) 11 | - +\.\.\.+ is an ellipsis (...) 12 | - +\~+ is a non-breaking space (~) 13 | - +\#+ begins a comment, for the remainder of the line 14 | - +\\C+ is \C 15 | - +\\R+ is \R 16 | - +\\M+ is \M 17 | - `singly quoted text' is written +\`singly quoted text\'+ 18 | - "doubly quoted text" is written +\"doubly quoted text\"+ 19 | - jemdoc's apostrophes are converted automatically from +jemdoc\'s+ input 20 | - the sequence +\\n+ \n forces a manual line break 21 | - paragraphs are separated by blank lines 22 | - +\$inline LaTeX equation\$+ 23 | - +\\( LaTeX equation on its own line \\)+ 24 | - +\#+s (and only +\#+s) must be quoted in URLs 25 | 26 | == Blocks 27 | ~~~ 28 | {Code block syntax}{} 29 | \~~~ 30 | \{Optionally empty title}{Optionally empty highlight mode} 31 | Code block with monospaced text. 32 | \~~~ 33 | ~~~ 34 | 35 | ~~~ 36 | {Information block} 37 | Omit the second pair of braces in the first line of the block (or omit the whole 38 | first line altogether if you don't want a title) and you will get an 39 | /information block/. All the usual conventions apply in here. 40 | ~~~ 41 | 42 | == Headings and lists 43 | Headings are defined by starting a line with +=+. 44 | - += Heading level 1+ 45 | - +== Heading level 2+, /etc./ 46 | 47 | Lists are defined with +-+ for bulleted lists, +.+ for numbered lists and +:+ 48 | for lists of definitions. Here is some code and the resulting list: 49 | 50 | ~~~ 51 | {}{} 52 | - Bullet level one 53 | -- Bullet level two 54 | 55 | . Number level one 56 | .. Number level two 57 | .. Number level two (again) 58 | 59 | : {jemdoc} light markup 60 | : {asciidoc} a great alternative, but more complicated 61 | ~~~ 62 | 63 | ~~~ 64 | - Bullet level one 65 | -- Bullet level two 66 | 67 | . Number level one 68 | .. Number level two 69 | .. Number level two (again) 70 | 71 | : {jemdoc} light markup 72 | : {asciidoc} a great alternative, but more complicated 73 | ~~~ 74 | 75 | == Preventing matches 76 | - a literal backslash (\\) is written +{{\\\\}}+ 77 | - the literal characters \/, \*, \+ and \~ and \# are written +\\/+, +\\*+, 78 | +\\\++, +\\\~+ and +\\\#+ to avoid the above formatting 79 | - +\\\...+ avoids an ellipsis 80 | - +-\\-+ avoids an en-dash 81 | - +-\\-\\-+ avoids an em-dash 82 | - +\\\`+ gives a back-tick (\`) 83 | - +\\\'+ gives an ordinary single quotation mark (\') 84 | - +\\\"+ gives an ordinary double quotation mark (\") 85 | 86 | == Other stuff 87 | - +\{\{html text\}\}+ will insert +html text+ directly into the output document 88 | without performing any substitutions. (This is for inline escaping; use 89 | [extra.html raw blocks] for larger amounts of html.) 90 | - +\%quoted tt\%+ is an alias for +\+{\{quoted tt\}\}\++. It's not quite as 91 | robust, so use +\+{\{plus signs with double brace blocks}\}\++ if you run into 92 | problems with some characters. 93 | - +{\\{text}\\}+ /will/ perform replacements and insert {\{text}\}. 94 | 95 | This page is not exhaustive. 96 | -------------------------------------------------------------------------------- /jemdoc_files/contact.jemdoc: -------------------------------------------------------------------------------- 1 | # jemdoc: menu{MENU}{contact.html} 2 | = jemdoc -- contact details 3 | 4 | == Development 5 | jemdoc is developed by [http://stanford.edu/~jacobm/ Jacob Mattingley]. 6 | Please [jacobm@stanford.edu contact Jacob] with any bug reports and 7 | comments. 8 | If reporting a bug, please run the command +jemdoc -\-version+ and include the 9 | result in your email. 10 | 11 | There are two levels of support: 12 | - Basic jemdoc, which I will attempt to support well, and 13 | - LaTeX equations in jemdoc, which I may attempt to support. 14 | -------------------------------------------------------------------------------- /jemdoc_files/download.jemdoc: -------------------------------------------------------------------------------- 1 | # jemdoc: menu{MENU}{download.html} 2 | = jemdoc -- download 3 | 4 | Here is {{jemdoc.py}} 6 | (+v0.7.3+). You can also download this [dist/jemdoc.css example css 7 | file] to get you started. You can easily modify the css to adjust colours, fonts 8 | and general layout elements to your taste. 9 | 10 | You may like to %sudo cp jemdoc.py /usr/bin/jemdoc% 11 | so that you can just type 12 | +jemdoc+; alternatively, you could add a line to your %~/.bashrc% or 13 | similar like %alias jemdoc='/somepath/jemdoc.py'%. Remember to +chmod \+x+ your 14 | file to make it executable. 15 | 16 | jemdoc requires Python~2.3 or later. If you have a working installation of 17 | Python, you should be ready to go. This includes all Macs, and almost any 18 | fairly modern unix or linux. 19 | 20 | [dist/ Old versions] can still be found. Mahesh Shastry provides a package with 21 | [http://www.personal.psu.edu/mcs312/miscellany.html\#portablejemdoc 22 | jemdoc compiled for Windows]. 23 | 24 | == Where to next? 25 | Read about [using.html how to use jemdoc], check out an [example.html example 26 | page], then refer to the [cheatsheet.html cheat sheet] once you're underway. 27 | You could also download sample jemdoc code, like the [index.jemdoc index page] 28 | for this website. 29 | -------------------------------------------------------------------------------- /jemdoc_files/example.jemdoc: -------------------------------------------------------------------------------- 1 | # jemdoc: menu{MENU}{example.html} 2 | = jemdoc -- example page 3 | [https://jemnz.com/ Jacob Mattingley] ([www@jemnz.com]) 4 | 5 | If the first line of the file starts with +\# jemdoc+, special functions like [menu.html menus] will be used. 6 | 7 | == Example 8 | Here are some *text* /features/. I could [http://cvxmod.net/ link somewhere] or insert a raw link to another page like [download.html]. I could use +monospace+, too. 9 | 10 | I could write special characters like \#, \$ and \+ by just using a backslash (\\) in front of those characters. Or automatically detect an [www@jemnz.com email address]. 11 | 12 | ~~~ 13 | Save the file as +index.jemdoc+, say, and simply call +jemdoc index+ (after [download.html downloading jemdoc], of course). 14 | ~~~ 15 | 16 | == Next bit, next heading level two 17 | === Getting into level three now 18 | 19 | Why not use a list 20 | - to explain the way you do lists? 21 | - to demonstrate how a line\n break might work? 22 | 23 | 24 | Or perhaps a 25 | . Multilevel 26 | .. Numbered list 27 | .. Is more 28 | . Useful? 29 | 30 | 31 | 32 | : {Definition} lists, especially when there are many definitions 33 | : {Can be useful} for explaining things 34 | 35 | 36 | == Finally, a few more blocks 37 | This `section' features "smart quotes". 38 | 39 | ~~~ 40 | {Simple block} 41 | This is a simple text block, with a title. Notice how the previous line has only one set of braces (\{\}). 42 | ~~~ 43 | 44 | ~~~ 45 | {Interactive Python listing}{pyint} 46 | >>> print 'Interactive Python code.' 47 | 'Interactive Python code.' 48 | ~~~ 49 | 50 | ~~~ 51 | {}{} 52 | Plain code block with no title. 53 | ~~~ 54 | 55 | You might need 2--3 different-sized dashes---they can be useful. Now we're done! 56 | -------------------------------------------------------------------------------- /jemdoc_files/extra.jemdoc: -------------------------------------------------------------------------------- 1 | # jemdoc: menu{MENU}{extra.html} 2 | = jemdoc -- extra syntax elements 3 | 4 | These are some extended syntax options that may come in useful. 5 | 6 | == Left aligned image blocks 7 | As seen [http://stanford.edu/~jacobm here], for example, 8 | left-aligned image blocks place an image and allow ordinary jemdoc marked-up 9 | text to flow around the right-hand side. 10 | ~~~ 11 | {Left-aligned image block syntax}{} 12 | \~~~ 13 | \{}{img_left}{FILENAME.IMG}{alt text}{WIDTHpx}{HEIGHTpx}{IMGLINKTARGET} 14 | Ordinary jemdoc markup goes here. 15 | \~~~ 16 | ~~~ 17 | 18 | All arguments may be left blank, though you should specify an image filename, 19 | and alt text should be descriptive for reasons like 20 | [http://en.wikipedia.org/wiki/Wikipedia:Alternative_text_for_images those given 21 | by Wikipedia]. 22 | 23 | == Raw blocks 24 | When placing large amounts of raw html, you should use a raw block instead of 25 | +\{\{inline html escaping\}\}+. As well as cleaner syntax, raw blocks will avoid 26 | having +

+ tags in the wrong places. 27 | ~~~ 28 | {Raw block syntax}{} 29 | \~~~ 30 | \{}{raw} 31 | Any text here will be copied straight to the output file without processing. 32 | \~~~ 33 | ~~~ 34 | 35 | == Other character sets 36 | Here's a quick example of how to include text in a language with a different 37 | character set. 38 | 39 | To include Korean ({{}}한국말{{}}), 40 | use something like this: 41 | ~~~ 42 | {}{} 43 | {{}}한국말{{}} 44 | ~~~ 45 | 46 | ([jacobm@stanford.edu Let me know] if you need better support for your 47 | language.) 48 | 49 | == Including other files 50 | The line 51 | ~~~ 52 | {}{} 53 | \#include{otherfile.jemdoc} 54 | ~~~ 55 | will include the contents of +otherfile.jemdoc+ as if the contents were actually 56 | in the ordinary input file (that is, with full jemdoc substitutions). 57 | The line 58 | ~~~ 59 | {}{} 60 | \#includeraw{otherfile.html} 61 | ~~~ 62 | will copy the contents of +otherfile.html+ verbatim to the current position in 63 | the output file (that is, without any jemdoc substitutions). 64 | 65 | == Other packages 66 | - [http://www.polytekniker.dk/about.html Jacob Grunnet] has written 67 | [http://bibover.polytekniker.dk Bibover], a bibtex reference extension for 68 | jemdoc. 69 | - [http://www.seas.upenn.edu/~nghiem/ Truong Nghiem] has written a 70 | [http://www.seas.upenn.edu/~nghiem/software.html filter for exporting 71 | references from JabRef to 72 | jemdoc]. 73 | -------------------------------------------------------------------------------- /jemdoc_files/group.jemdoc: -------------------------------------------------------------------------------- 1 | # jemdoc: menu{MENU}{group.html} 2 | = Group 3 | This page contains all photos of our group. 4 | 5 | ~~~ 6 | {}{img_left}{images/groups/group_all.png}{}{100%}{}{} 7 | ~~~ 8 | 9 | 10 | == Members 11 | {{ 12 |

13 |
14 | 15 |

16 | Lorem Ipsum
17 | PI, EE 18 |

19 |
20 |
21 | 22 |

23 | Quisque Velit Odio
24 | Assistant Prof, Statistic 25 |

26 |
27 |
28 | 29 |

30 | Sollicitudin Quis
31 | Assistant Prof, CS 32 |

33 |
34 |
35 | 36 |

37 | Dictum Vitae
38 | PhD Student, EE 39 |

40 |
41 |
42 | 43 |

44 | Condimentum Non
45 | PhD Student, EE 46 |

47 |
48 |
49 | 50 |

51 | Nibh Morbi
52 | Student, EE 53 |

54 |
55 |
56 | 57 |

58 | Convallis Volutpat
59 | PhD Student, EE 60 |

61 |
62 |
63 | 64 |

65 | Feugiat Donec
66 | PhD Student, EE 67 |

68 |
69 |
70 | 71 |

72 | Nec Purus
73 | PhD Student, Statistic 74 |

75 |
76 |
77 | 78 |

79 | Gravida Lacinia
80 | PhD Student, Statistic 81 |

82 |
83 |
84 | 85 |

86 | Proin Consectetur
87 | PhD Student, CS 88 |

89 |
90 |
91 | 92 |

93 | Sapien Sit
94 | PhD Student, CS 95 |

96 |
97 |
98 | 99 |

100 | Amet Sagittis
101 | MS Student, EE 102 |

103 |
104 |
105 | 106 |

107 | Pharetra Volutpat
108 | MS Student, EE 109 |

110 |
111 |
112 | 113 |

114 | Pellentesque ibh
115 | MS Student, Statistic 116 |

117 |
118 |
119 | 120 |

121 | Vel Futrum
122 | MS Student, CS 123 |

124 |
125 |
126 | 127 |

128 | Ut Vitae
129 | MS Student, CS 130 |

131 |
132 |
133 | }} 134 | 135 | 136 | 137 | == Group Outings 138 | {{ 139 |
140 |
141 | 142 | 143 | 144 |
145 |
146 | 147 | 148 | 149 | 150 |
151 |
152 | 153 | 154 | 155 | 156 |
157 |
158 | 159 | 160 | 161 |
162 |
163 | }} 164 | -------------------------------------------------------------------------------- /jemdoc_files/htmlchanges.jemdoc: -------------------------------------------------------------------------------- 1 | # jemdoc: menu{MENU}{htmlchanges.html} 2 | = jemdoc -- html changes 3 | 4 | jemdoc has a built-in default configuration. This configuration includes the 5 | particular html tags used when producing html. If you wish to adjust the html 6 | that jemdoc produces, you can provide a configuration file to override the 7 | built-in defaults. 8 | 9 | == Example html change 10 | Suppose you wanted to add [http://www.google.com/analytics/ Google 11 | Analytics] tracking to your website. That requires adding a short section of 12 | html before the ++ tag. 13 | 14 | First, find out which block needs to be changed by using 15 | 16 | ~~~ 17 | {}{} 18 | jemdoc --show-config 19 | ~~~ 20 | 21 | This prints the default html configuration. From this, the relevant 22 | configuration block (the one which includes the ++ tag) has a title 23 | +\[bodyend\]+, and looks like 24 | 25 | ~~~ 26 | {}{} 27 | [bodyend] 28 | 29 | 30 | ~~~ 31 | 32 | Create a new file +mysite.conf+, say, and put a new +\[bodyend\]+ block 33 | inside it. The new file looks like this: 34 | 35 | ~~~ 36 | {}{} 37 | [bodyend] 38 | 40 | 44 | 45 | 46 | ~~~ 47 | 48 | Include your new configuration file, with the +-c+ option ([using.html more 49 | details here]): 50 | ~~~ 51 | {}{} 52 | jemdoc -c mysite.conf index.jemdoc 53 | ~~~ 54 | 55 | This will pull in the new +\[bodyend\]+ block from +mysite.conf+, but otherwise 56 | work as before. 57 | -------------------------------------------------------------------------------- /jemdoc_files/index.jemdoc: -------------------------------------------------------------------------------- 1 | # jemdoc: menu{MENU}{index.html} 2 | 3 | ~~~ 4 | {}{img_left}{./images/banner.png}{profile pic}{100%}{}{https://github.com/szl2/jemdoc-new-design} 5 | ~~~ 6 | 7 | ~~~ 8 | {}{img_left}{./images/info.png}{info pic}{100%}{}{} 9 | ~~~ 10 | -------------------------------------------------------------------------------- /jemdoc_files/latex.jemdoc: -------------------------------------------------------------------------------- 1 | # jemdoc: menu{MENU}{latex.html}, showsource 2 | = jemdoc -- latex equations 3 | 4 | jemdoc includes support for LaTeX equations. LaTeX source embedded in jemdoc 5 | files is processed by calling [http://www.latex-project.org/ +latex+] and 6 | [http://www.nongnu.org/dvipng/ +dvipng+] (which must both be available for this 7 | feature). Resulting PNG images are then placed on the web page. Equations are 8 | typeset using pure LaTeX. 9 | 10 | ~~~ 11 | jemdoc equation support relies on several pieces, any of which may break. No 12 | guarantees! Support may be limited. 13 | ~~~ 14 | 15 | == Inline equations 16 | The conjugate function $f^\star(y) = \sup_{x \in X}(y^Tx - f(x))$ appears here 17 | inline, and is in the variable $y$. Dollar signs (+\$+) surround the LaTeX 18 | equation in the jemdoc source. 19 | 20 | ~~~ 21 | {Syntax}{} 22 | The sample function $f^\star(y) = \sup_{x \in X}(y^Tx - f(x))$ 23 | appears here inline, and is in the variable $y$. 24 | ~~~ 25 | 26 | == Equations on separate lines 27 | To render an equation on its own line, use backslash-escaped round brackets 28 | (+\\(+ and +\\)+). For example, the identity 29 | \( 30 | (I + XY)^{-1} = I - X(I + YX)^{-1}Y 31 | \) 32 | is typeset on its own line. Yes, round brackets instead of square 33 | brackets---this is to avoid a conflict with ordinary square brackets that are 34 | escaped to avoid being a link. Sorry. 35 | 36 | ~~~ 37 | {Syntax}{} 38 | The identity 39 | \( 40 | (I \+ XY)^{-1} = I - X(I \+ YX)^{-1}Y 41 | \) 42 | is typeset on its own line. 43 | ~~~ 44 | 45 | Here, the line breaks (and other whitespace) are ignored. As always, the exact 46 | formatting details can be adjusted using CSS. 47 | 48 | == Notes 49 | - The baseline is carefully adjusted. The sequences m$m$m and y$y$y (+m\$m\$m+ 50 | and +y\$y\$y+), for example, should be neatly aligned (modulo bad browsers). 51 | - Definition by cases will work as expected, for example, $f(x)$, where 52 | \( 53 | f(x) = \left\{ 54 | \begin{array}{ll} 55 | 3, & x \leq 0 \\ 56 | 5, & x > 0. \\ 57 | \end{array}\right. 58 | \) 59 | (You can view the [latex.jemdoc jemdoc source] for this page.) 60 | - A random inequality might look like $3x + 2y^{4k + 6} \geq z$. 61 | - This page takes about 0.7 seconds to process on an average machine, including 62 | making all the equations from scratch. 63 | - There are several configuration options for equations. They are detailed on 64 | the [modelines.html modelines] page. 65 | -------------------------------------------------------------------------------- /jemdoc_files/link.jemdoc: -------------------------------------------------------------------------------- 1 | # jemdoc: menu{MENU}{link.html} 2 | == Link Example 3 | 4 | You can control the behavior of a link: by default the link opens in a new web broswer tab, but by putting a slash (+\/+) character at the beginning of the link address you can make it open in the current web broswer tab. 5 | 6 | For example, [mathjax.html \[mathjax.html\]] opens in a new web broswer tab, but [/mathjax.html \[\/mathjax.html\]] opens in the current web browser tab. The link opening in a new tab is useful for linking an external website (like [http://www.google.com]), whereas the link opening in the current tab is useful for liking your jemdoc page (such as the page linked as a jemdoc menu item on the left panel). 7 | 8 | Unlike the link in the main text, a jemdoc menu item link on the left panel opens in the current tab by default, because you want to stay in the same tab while navigating menu items. However, you can override this default behavior and make it open in a new tab by putting a backslash (+\\+) character in the beginning of the link of the menu item. This is useful when putting an external website as a menu item. See this usage in "Open in New Tab" menu item on the left panel, which is defined in MENU file. 9 | -------------------------------------------------------------------------------- /jemdoc_files/mathjax.jemdoc: -------------------------------------------------------------------------------- 1 | # jemdoc: menu{MENU}{mathjax.html} 2 | == MathJax Example 3 | 4 | In this modified version of +jemdoc+, a LaTeX equation block can be typed in as 5 | \( 6 | \nabla \cdot \mathbf{D} = \rho_f\\ 7 | \nabla \cdot \mathbf{B} = 0,\\ 8 | \nabla \times \mathbf{E} = -\frac{\partial\mathbf{B}}{\partial t}\\ 9 | \nabla \times \mathbf{H} = \mathbf{J}_f - \frac{\partial\mathbf{D}}{\partial t}. 10 | \) 11 | 12 | You can also align equations using LaTeX's +aligned+ block: 13 | \( 14 | \begin{aligned} 15 | \nabla \cdot \mathbf{D} &= \rho_f\\ 16 | \nabla \cdot \mathbf{B} &= 0\\ 17 | \nabla \times \mathbf{E} &= -\frac{\partial\mathbf{B}}{\partial t}\\ 18 | \nabla \times \mathbf{H} &= \mathbf{J}_f - \frac{\partial\mathbf{D}}{\partial t}. 19 | \end{aligned} 20 | \) 21 | 22 | To number the equation block, wrap the equations with LaTeX's +equation+ block: 23 | \( 24 | \begin{equation} 25 | \begin{aligned} 26 | \nabla \cdot \mathbf{D} &= \rho_f\\ 27 | \nabla \cdot \mathbf{B} &= 0\\ 28 | \nabla \times \mathbf{E} &= -\frac{\partial\mathbf{B}}{\partial t}\\ 29 | \nabla \times \mathbf{H} &= \mathbf{J}_f - \frac{\partial\mathbf{D}}{\partial t}. 30 | \end{aligned} 31 | \end{equation} 32 | \) 33 | 34 | Instead, you can use LaTeX's +align+ (not +aligned+) block to number the individual equations: 35 | \( 36 | \begin{align} 37 | \nabla \cdot \mathbf{D} &= \rho_f\label{eq:D}\\ 38 | \nabla \cdot \mathbf{B} &= 0\label{eq:B}\\ 39 | \nabla \times \mathbf{E} &= -\frac{\partial\mathbf{B}}{\partial t}\label{eq:E}\\ 40 | \nabla \times \mathbf{H} &= \mathbf{J}_f - \frac{\partial\mathbf{D}}{\partial t}\label{eq:H} 41 | \end{align} 42 | \) 43 | 44 | You can also type inline equations as $A x = b$. Referencing equations is done as Eqs.~$\eqref{eq:E}$ and $\eqref{eq:H}$. 45 | -------------------------------------------------------------------------------- /jemdoc_files/menu.jemdoc: -------------------------------------------------------------------------------- 1 | # jemdoc: menu{MENU}{menu.html} 2 | = jemdoc -- add a menu 3 | 4 | jemdoc provides an easy way to add a `menu' like the one you see at the left of 5 | this page. You should create a file called +MENU+, for example, in the current 6 | directory. This website's +MENU+ looks something like this: 7 | 8 | ~~~ 9 | {}{} 10 | jemdoc 11 | home [index.html] 12 | download [download.html] 13 | revision history [revision.html] 14 | contact [contact.html] 15 | 16 | user's guide 17 | cheat sheet [cheatsheet.html] 18 | using [using.html] 19 | 20 | goodies 21 | add a menu [menu.html] 22 | other stuff [stuff.html] 23 | ~~~ 24 | 25 | To use the menu, start the first line of /each/ source file with a special 26 | comment like this one: 27 | 28 | ~~~ 29 | {}{} 30 | # jemdoc: menu{MENU}{index.html} 31 | ~~~ 32 | 33 | (Replace +index.html+ with the name of the relevant html page.) This will add a 34 | menu from the file called +MENU+, and underline and darken the menu entry 35 | corresponding to +index.html+. 36 | 37 | == Relative paths 38 | Optionally, include a +prefix+ which instructs jemdoc where the root of the menu 39 | is located relative to a particular page. 40 | ~~~ 41 | {}{} 42 | # jemdoc: menu{MENU}{pageinsubdir.html}{prefix} 43 | ~~~ 44 | 45 | == A note on menu widths 46 | jemdoc will create menu entries that do not wrap. If you have a particularly 47 | long title, or menu item, insert manual linebreaks using +\\++n+ in your 48 | MENU file. Multi-line menu items will (by default) have their second and 49 | subsequent lines slightly indented. 50 | -------------------------------------------------------------------------------- /jemdoc_files/modelines.jemdoc: -------------------------------------------------------------------------------- 1 | # jemdoc: menu{MENU}{modelines.html}, showsource, analytics{UA-2725246-3} 2 | = jemdoc -- modelines 3 | 4 | jemdoc includes a mechanism for specifying options inside a source file. It is 5 | called a /modeline/, after the same concept in [http://www.vim.org vim]. To use 6 | a modeline, start your jemdoc source file (on the first line) with the exact 7 | string +\#~jemdoc:+. Follow this string with one or more /modeline options/, 8 | separated with commas (and any amount of white space). 9 | 10 | Multiple modelines can be included if they are all at the beginning of the file, 11 | and start with the same string. The modeline can be omitted altogether. 12 | 13 | == Modeline options 14 | === General 15 | - +menu{MENUFILENAME}{CURRENTFILENAME}+\n 16 | Place a [menu.html menu] at the left of the page. 17 | - +nodefaultcss+\n 18 | Clear the list of CSS stylesheets included by the page. 19 | - +addcss{CSSSHEET}+\n 20 | Explicitly include an additional custom CSS stylesheet. 21 | - +addjs{scriptname}+\n 22 | Explicitly include the javascript file %scriptname.js%. 23 | - +fwtitle+\n 24 | Makes the page title /full width/ so the menu /and/ the body lie underneath 25 | the title. 26 | - +title{NEW TITLE}+\n 27 | Manually sets the titlebar text to +NEW TITLE+. 28 | 29 | === Extras 30 | - +analytics{ANALYTICS KEY}+\n 31 | Adds Google Analytics support. The key is typically in the form 32 | %UA-0000000-0%. Sign up for Google Analytics 33 | [http://www.google.com/analytics/ here]. 34 | 35 | === Footers 36 | - +notime+\n 37 | Withhold the time from the `Page generated' footer. 38 | - +nodate+\n 39 | Withhold the date and the time from the `Page generated' footer. 40 | - +showsource+\n 41 | Include a link, in the footer, to the jemdoc source. 42 | - +nofooter+\n 43 | Withhold the footer altogether (overrides the above options). 44 | 45 | === Equations 46 | - +noeqs+\n 47 | Disable LaTeX equation support. 48 | - +eqsize{SIZE}+\n 49 | Adjust the size of the equations (default +130+). 50 | - +eqdir{EQDIR}+\n 51 | Adjust the equation directory (default +eqs+). 52 | - +noeqcache+\n 53 | Disable equation caching. 54 | - +addpackage{LATEX_PACKAGE_NAME}+\n 55 | Includes support for +LATEX_PACKAGE_NAME+ when compiling the equations. 56 | 57 | == Examples 58 | ~~~ 59 | {This page}{} 60 | # jemdoc: menu{MENU}{modelines.html}, showsource 61 | ~~~ 62 | 63 | ~~~ 64 | {Use a different stylesheet altogether}{} 65 | # jemdoc: nodefaultcss, addcss{custom.css} 66 | ~~~ 67 | 68 | ~~~ 69 | {Combine various options}{} 70 | # jemdoc: nodefaultcss, addcss{custom.css}{another.css} 71 | # jemdoc: showsource, addcss{yetanother.css} 72 | ~~~ 73 | -------------------------------------------------------------------------------- /jemdoc_files/mysite.conf: -------------------------------------------------------------------------------- 1 | [firstbit] 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | [defaultcss] 12 | 13 | 14 | 15 | [windowtitle] 16 | 17 | jemdoc + new design 18 | 19 | [fwtitlestart] 20 |
21 | 22 | [fwtitleend] 23 |
24 | 25 | [doctitle] 26 |
27 |

|

28 | 29 | [subtitle] 30 |
|
31 | 32 | [doctitleend] 33 |
34 | 35 | [bodystart] 36 | 37 | 39 | 44 | 45 | 46 | 47 |
48 |
49 | 62 |
63 | 64 | [analytics] 65 | 69 | 74 | 75 | [menustart] 76 |
77 |
78 |
79 | 80 | 81 | [menuend] 82 |
83 |
84 |
85 |
86 | 87 | [menucategory] 88 | 89 | 90 | [menuitem] 91 | 92 | 93 | [specificcss] 94 | 95 | 96 | [specificjs] 97 | 98 | 99 | [currentmenuitem] 100 | 101 | 102 | [nomenu] 103 |
104 | 105 | [menulastbit] 106 |
107 | 108 | 109 | [nomenulastbit] 110 |
111 | 112 | [bodyend] 113 |
114 |
115 | 135 | 136 | 137 | 138 | [infoblock] 139 |
140 | 141 | [codeblock] 142 |
143 | 144 | [blocktitle] 145 |
|
146 | 147 | [infoblockcontent] 148 |
149 | 150 | [codeblockcontent] 151 |
152 | 
153 | [codeblockend]
154 | 
155 | 156 | [codeblockcontenttt] 157 |
158 | 159 | [codeblockendtt] 160 |
161 | 162 | [infoblockend] 163 |
164 | 165 | [footerstart] 166 |
167 | 175 | 176 | [lastupdated] 177 | Last edited on |.
178 | Powered by jemdoc + new design. 179 | 180 | [sourcelink] 181 | (source)>  182 | -------------------------------------------------------------------------------- /jemdoc_files/nomenu.jemdoc: -------------------------------------------------------------------------------- 1 | # jemdoc: nomenu, addcss{nomenu.css} 2 | = jemdoc -- example page 3 | [https://jemnz.com/ Jacob Mattingley] ([www@jemnz.com]) 4 | 5 | ~~~ 6 | == Go back to [./index.html homepage] 7 | This is a +nomenu+ example of the example page. 8 | ~~~ 9 | 10 | For +nomenu+ option, the first line is 11 | 12 | ~~~ 13 | {}{} 14 | # jemdoc: nomenu, addcss{nomenu.css} 15 | ~~~ 16 | 17 | If the first line of the file starts with +\# jemdoc+, special functions like [menu.html menus] will be used. 18 | 19 | == Example 20 | Here are some *text* /features/. I could [http://cvxmod.net/ link somewhere] or insert a raw link to another page like [download.html]. I could use +monospace+, too. 21 | 22 | I could write special characters like \#, \$ and \+ by just using a backslash (\\) in front of those characters. Or automatically detect an [www@jemnz.com email address]. 23 | 24 | ~~~ 25 | Save the file as +index.jemdoc+, say, and simply call +jemdoc index+ (after [download.html downloading jemdoc], of course). 26 | ~~~ 27 | 28 | == Next bit, next heading level two 29 | === Getting into level three now 30 | 31 | Why not use a list 32 | - to explain the way you do lists? 33 | - to demonstrate how a line\n break might work? 34 | 35 | 36 | Or perhaps a 37 | . Multilevel 38 | .. Numbered list 39 | .. Is more 40 | . Useful? 41 | 42 | 43 | 44 | : {Definition} lists, especially when there are many definitions 45 | : {Can be useful} for explaining things 46 | 47 | 48 | == Finally, a few more blocks 49 | This `section' features "smart quotes". 50 | 51 | ~~~ 52 | {Simple block} 53 | This is a simple text block, with a title. Notice how the previous line has only one set of braces (\{\}). 54 | ~~~ 55 | 56 | ~~~ 57 | {Interactive Python listing}{pyint} 58 | >>> print 'Interactive Python code.' 59 | 'Interactive Python code.' 60 | ~~~ 61 | 62 | ~~~ 63 | {}{} 64 | Plain code block with no title. 65 | ~~~ 66 | 67 | You might need 2--3 different-sized dashes---they can be useful. Now we're done! 68 | -------------------------------------------------------------------------------- /jemdoc_files/post1.jemdoc: -------------------------------------------------------------------------------- 1 | # jemdoc: menu{MENU}{post1.html} 2 | == Blog Post Page 3 | 4 | 5 | == Utterances 6 | 7 | When you use +jemdoc+ to write a blog post with a valid comment section, we use this extension --- [https://utteranc.es/ +Utterances+]. 8 | 9 | We do this by just adding this code to the end of your post. 10 | 11 | ~~~ 12 | {}{} 13 | {{ 14 | 21 | }} 22 | ~~~ 23 | 24 | Although it may show up locally, when your website is host on a github server. 25 | 26 | 27 | {{ 28 | 35 | }} 36 | -------------------------------------------------------------------------------- /jemdoc_files/profile.jemdoc: -------------------------------------------------------------------------------- 1 | # jemdoc: menu{MENU}{profile.html} 2 | 3 | ~~~ 4 | {}{img_left}{./images/banner2.png}{profile pic}{100%}{}{} 5 | ~~~ 6 | 7 | ~~~ 8 | {}{img_left}{./images/profile.png}{profile pic}{200px}{200px}{} 9 | = Lorem Ipsum \n 10 | === dolor sit amet, [http://www-ee.stanford.edu/ Department of Electrical Engineering]\n 11 | Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. 12 | ~~~ 13 | 14 | == Biography 15 | Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. 16 | 17 | == Research statement 18 | Pellentesque gravida metus purus, non blandit ligula dignissim a. Etiam vulputate nibh condimentum dui congue tempor. Vestibulum consequat non neque at tincidunt. Mauris accumsan a augue at consectetur. Praesent non nunc accumsan, feugiat nisl quis, ullamcorper est. Fusce a ex ornare libero venenatis tincidunt sed vel sem. Suspendisse id nibh at nisl pellentesque pellentesque non sit amet nisl. 19 | 20 | Cras convallis ex et felis ullamcorper, ut blandit velit efficitur. Nunc et ullamcorper lectus. Maecenas accumsan tortor volutpat dolor viverra lobortis. Duis elit justo, interdum vitae augue a, gravida lacinia nibh. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Nullam in nulla eget magna vehicula vehicula quis id libero. Suspendisse elit sem, dignissim quis quam vitae, lacinia placerat nulla. Cras vehicula quis eros luctus condimentum. Pellentesque urna nunc, elementum ut mauris eu, pulvinar congue dui. Curabitur finibus egestas dolor vitae gravida. Integer venenatis, nisi sed iaculis tincidunt, tellus neque vehicula felis, sed viverra leo nunc at lorem. Curabitur in finibus purus. Aliquam dictum velit enim, sed vestibulum eros fringilla vitae. Donec tristique sapien dictum nisl pharetra dictum. Etiam non laoreet nisi, nec convallis quam. In commodo massa lacus, eget tincidunt odio elementum et. 21 | 22 | == Current Project 23 | Donec tellus eros, rhoncus nec imperdiet in, tempus et mi. Quisque id feugiat enim. Suspendisse porta consequat velit, ac ullamcorper purus suscipit ac. Mauris laoreet varius urna. Suspendisse potenti. In et laoreet augue, et lobortis tellus. Etiam nec tortor tempus, lobortis turpis id, fermentum dolor. Mauris orci ante, porttitor ac viverra et, facilisis in lectus. Praesent faucibus non elit sit amet cursus. Duis eu viverra lectus, nec blandit magna. Nullam id ante semper, vestibulum neque tristique, accumsan ipsum. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Etiam mollis velit fermentum ex bibendum, eget molestie nisl porta. 24 | -------------------------------------------------------------------------------- /jemdoc_files/projects.jemdoc: -------------------------------------------------------------------------------- 1 | # jemdoc: menu{MENU}{projects.html} 2 | = Projects 3 | This page contains all my projects. 4 | 5 | == 2020 6 | ~~~ 7 | {}{img_left}{./images/pic01.png}{}{280px}{}{} 8 | == Possibly broke spacetime 9 | === Lorem ipsum dolor sit amet nullam id egestas urna aliquam 10 | Integer eu ante ornare amet commetus vestibulum blandit integer in curae ac faucibus integer adipiscing ornare amet. 11 | ~~~ 12 | 13 | 14 | == 2019 15 | ~~~ 16 | {}{img_left}{./images/pic02.png}{}{280px}{}{} 17 | == Terraformed a small moon 18 | === Lorem ipsum dolor sit amet nullam id egestas urna aliquam 19 | Integer eu ante ornare amet commetus vestibulum blandit integer in curae ac faucibus integer adipiscing ornare amet. 20 | ~~~ 21 | 22 | ~~~ 23 | {}{img_left}{./images/pic03.png}{}{280px}{}{} 24 | == Snapped dark matter in the wild 25 | === Lorem ipsum dolor sit amet nullam id egestas urna aliquam 26 | Integer eu ante ornare amet commetus vestibulum blandit integer in curae ac faucibus integer adipiscing ornare amet. 27 | ~~~ 28 | 29 | 30 | 31 | ~~~ 32 | {}{img_left}{./images/pic04.png}{}{280px}{}{} 33 | == Sed eu mauris sed dolor commodo efficitur eget at augue 34 | === Proin consectetur sapien sit amet sagittis pharetra 35 | Mauris ut massa placerat, pellentesque nibh sit amet, sodales diam. Mauris leo odio, rhoncus et consectetur ut, suscipit et elit. Praesent non mollis nibh, at rhoncus est. 36 | ~~~ 37 | 38 | == 2018 39 | 40 | ~~~ 41 | {}{img_left}{./images/pic05.png}{}{280px}{}{} 42 | == Donec gravida rutrum libero 43 | === Curabitur mollis elementum mauris in volutpat 44 | Aenean posuere erat vel rutrum mollis. Aliquam mattis augue erat. Sed tellus turpis, laoreet id turpis vel, fringilla pulvinar nisi. Ut vitae euismod diam, et luctus tellus. 45 | ~~~ 46 | 47 | ~~~ 48 | {}{img_left}{./images/pic06.png}{}{280px}{}{} 49 | == Aliquet scelerisque risus tincidunt a 50 | === Pellentesque dapibus, odio quis varius consequat 51 | Nunc eget ex et odio tempus convallis sed in eros. Aliquam laoreet bibendum erat, vitae accumsan tellus. 52 | ~~~ 53 | -------------------------------------------------------------------------------- /jemdoc_files/revision.jemdoc: -------------------------------------------------------------------------------- 1 | # jemdoc: menu{MENU}{revision.html} 2 | = jemdoc -- version and bug information 3 | 4 | == Open bugs 5 | - Including +\#+ within a +{\{quoted block}}+ will fail. Use instead a +raw+ 6 | block or place the +\#+ outside like in +{\{a~}}\\\#{\{2}}+ workaround. 7 | [jacobm@stanford.edu Tell me] if this becomes annoying. 8 | - You may require an extra line break at the end of your file if it ends with a 9 | raw quoted section like +{\{<\/asdasd>}\}+. 10 | - You may also require an extra line break at the end of your file if it ends 11 | with an equation. (And perhaps only on Windows.) 12 | 13 | == Revision details 14 | === Changes from +v0.7.2+ to +v0.7.3+ (2012-11-27) 15 | . Repaired the handling of whole-line equations written on a single line. 16 | . Enhanced the handling of the current menu link so it works across 17 | subdirectories. 18 | 19 | === Changes from +v0.7.1+ to +v0.7.2+ (2012-04-03) 20 | . Allowed HTML-escaped sequences in menu items. 21 | 22 | === Changes from +v0.7.0+ to +v0.7.1+ (2011-06-14) 23 | . Changed file opening mode to avoid Windows bugs where blank lines failed to 24 | separate sections properly. 25 | 26 | === Changes from +v0.6.8+ to +v0.7.0+ (2011-03-17) 27 | . Added +{filter_through}{external_prog}+ option for code blocks to filter 28 | through an external program. This can be used to customize syntax 29 | highlighting. 30 | . +img.eqwl+s from full-line tex equations are now enclosed in a +div.eqwl+. 31 | This permits alternative CSS styling for full-size tex equations. 32 | . Added an [modelines.html +analytics+] modeline for use with Google Analytics. 33 | . Improved C syntax highlighting. 34 | . Improved Matlab syntax highlighting. 35 | . Various bug fixes, especially for Windows. Thanks to Danilo Silva for helpful 36 | bug reports and fixes. 37 | 38 | === Changes from +v0.6.7+ to +v0.6.8+ (2010-03-22) 39 | . Added binary file identifiers to attempt a Windows fix for +IOError+s. 40 | 41 | === Changes from +v0.6.6+ to +v0.6.7+ (2009-11-17) 42 | . Added more syntax highlighing elements, including for +ruby+ and +c\+\++. 43 | . Added syntax highlighting support for inline comments. 44 | . Improved handling of the apostrophe. 45 | . Added support for the middot (\M), with %\M%. 46 | . Added preliminary support for environment variables (with syntax 47 | %!%+\$ENVIRON_VAR\$+%!%). 48 | 49 | === Changes from +v0.6.5+ to +v0.6.6+ (2009-07-11) 50 | . Fixed the labelling of table rows and columns. 51 | . Added some more syntax highlighing elements (mostly for +sh+). 52 | 53 | === Changes from +v0.6.4+ to +v0.6.5+ (2008-11-19) 54 | . Added some more syntax highlighting elements for Python (+py+). 55 | . Fixed some small bugs. 56 | 57 | === Changes from +v0.6.3+ to +v0.6.4+ (2008-08-06) 58 | . Added more syntax highlighting support. 59 | . Other minor program changes. 60 | . Slight tweaks to the style files. 61 | 62 | === Changes from +v0.6.2+ to +v0.6.3+ (2008-06-18) 63 | . Fixed a bug where double braces in equations caused strange pieces of html to 64 | appear. 65 | 66 | === Changes from +v0.6.1+ to +v0.6.2+ (2008-06-08) 67 | . Fixed a few bugs, including fixing invalid html for +imgtable+s. 68 | 69 | === Changes from +v0.6.0+ to +v0.6.1+ (2008-05-28) 70 | . Fixed minor regression with +img_left+ blocks having borders by accident. 71 | 72 | === Changes from +v0.5.4+ to +v0.6.0+ (2008-05-26) 73 | . Added support for tables. 74 | . Added better syntax highlighting support. 75 | . Added hair space around em dashes. 76 | 77 | === Changes from +v0.5.3+ to +v0.5.4+ (2008-04-14) 78 | . Added equation caching: equations are only regenerated if needed. 79 | 80 | === Changes from +v0.5.2+ to +v0.5.3+ (2008-03-29) 81 | . Percents work properly when inside links; square brackets work properly when 82 | inside percents. 83 | . Quoted hashes work inside URLs. 84 | . Updated +jemdoc.css+ to prevent blue boxes around LaTeX equations. 85 | 86 | === Changes from +v0.5.1+ to +v0.5.2+ (2008-01-24) 87 | . Fixed a bug with equation filenames colliding in edge cases. 88 | . Silenced unnecessary dvipng warnings. 89 | 90 | === Changes from +v0.5.0+ to +v0.5.1+ (2008-01-23) 91 | . Forward slashes instead of backslashes on Windows for equations. 92 | 93 | === Changes from +v0.4.0+ to +v0.5.0+ (2008-01-22) 94 | . Added support for LaTeX equations. 95 | . Added several new modeline options to support LaTeX equations. 96 | . Tweaked CSS for various improvements. 97 | . Fixed a bug with lists not nesting properly. 98 | . Added a +fwtitle+ modeline option for choosing a /full-width/ title. 99 | . Added a +nofooter+ modeline option to more easily turn off the footer. 100 | 101 | === Changes from +v0.3.6+ to +v0.4.0+ (2007-12-02) 102 | . Added new syntax items +\#include{FILE}+ and +\#includeraw{FILE}+. 103 | . Corrected various bugs in link handling. 104 | . Added a +title{Page title}+ modeline option. 105 | . Added a +notime+ modeline option. 106 | . Tweaked CSS for various improvements. 107 | 108 | === Changes from +v0.3.5+ to +0.3.6+ (2007-11-28) 109 | . Changed the way menus are laid out, preventing unwanted wrapping. 110 | . Improved the vim syntax highlighting file. 111 | . Added the command +\\p+ to create a manual paragraph break in lists. 112 | . Added +jemdoc -\-version+ as a command line option. 113 | 114 | === Changes from +v0.3.4+ to +v0.3.5+ (2007-11-26) 115 | . Added a +showsource+ modeline option. 116 | . Corrected a minor bug with whitespace appearing in the titles. 117 | 118 | === Changes from +v0.3.3+ to +v0.3.4+ (2007-11-17) 119 | . Corrected a (Windows) platform specific time-stamp issue. 120 | 121 | === Changes from +v0.3.0+ to +v0.3.3+ (2007-11-16) 122 | . Added support for image blocks. 123 | . Added support for raw blocks. 124 | . Fixed handling of ampersands (&). 125 | . Changed footer message to `Page generated ...' instead of `Last updated ...'. 126 | . Fixed handling of comments within lists. 127 | . Several other minor bug fixes. 128 | 129 | === Changes from +v0.2.0+ to +v0.3.0+ (2007-11-09) 130 | . Added per-file css specification. Use\n 131 | +\# jemdoc addcss{file1}{file2}.\.., +\n as the 132 | first line. To prevent loading the +\[defaultcss\]+ configuration section, 133 | use\n 134 | +\# jemdoc nodefaultcss, +. 135 | . Added +jemdoc filename+ as an implicit alternative for +jemdoc filename.jemdoc+. 136 | . Added the ability to process mutliple files, as in +jemdoc *.jemdoc+. 137 | . Added the syntax\n +\[img{width}{height}{alt text} img.jpg\]+\n for 138 | inserting pictures. The width, height, and alt text parameters are all 139 | optional. 140 | . Deprecated the +\$quoted tt\$+ syntax, replacing it with +\%quoted tt\%+. 141 | 142 | === Changes from +v0.1.0+ to +v0.2.0+ (2007-10-19) 143 | . Embedded default configuration file within jemdoc, to eliminate the need for a 144 | default configuration file. 145 | . Rearranged the arguments to +{{jemdoc [OPTIONS] [INFILE]}}+. 146 | . Added better formatting to document titles. 147 | . Added support for definintion lists via +{{: {item} definition}}+. 148 | . Added +\$quoted tt\$+ as an alias for +\+\{\{quoted tt\}\}\++. 149 | -------------------------------------------------------------------------------- /jemdoc_files/stuff.jemdoc: -------------------------------------------------------------------------------- 1 | # jemdoc: menu{MENU}{stuff.html} 2 | = jemdoc -- vim, make 3 | 4 | == Vim syntax highlighting 5 | Here is a vim syntax file {{jemdoc.vim}}. 7 | You should download it to 8 | +\~\/.vim\/syntax\/+. You may also need to add the following lines in your 9 | +\~\/.vimrc+: 10 | 11 | ~~~ 12 | {Additional +\~\/.vimrc+ lines}{} 13 | filetype plugin on 14 | augroup filetypedetect 15 | au! BufNewFile,BufRead *.jemdoc setf jemdoc 16 | augroup END 17 | 18 | " Last line is for proper wrapping of jemdoc lists, etc. 19 | autocmd Filetype jemdoc setlocal comments=:#,fb:-,fb:.,fb:--,fb:..,fb:\: 20 | ~~~ 21 | 22 | == Makefile 23 | Here's a small example of a {{Makefile}}. 25 | A listing of it follows. 26 | 27 | This file would be used as follows: 28 | - Edit +index.jemdoc+ and +otherpage.jemdoc+ at will. 29 | - Type +make+ in the same directory, and files +html\/index.html+ and 30 | +html\/otherpage.html+ will be updated as necessary. 31 | - Type +make update+ and your files will be copied to the server. 32 | - Type +make clean+ and old +html+ files in +html\/+ will be removed. 33 | 34 | Rinse and repeat. 35 | 36 | ~~~ 37 | {Makefile example}{} 38 | DOCS=index otherpage 39 | 40 | HDOCS=$(addsuffix .html, $(DOCS)) 41 | PHDOCS=$(addprefix html/, $(HDOCS)) 42 | 43 | .PHONY : docs 44 | docs : $(PHDOCS) 45 | 46 | .PHONY : update 47 | update : $(PHDOCS) 48 | @echo -n 'Copying to server...' 49 | # insert code for copying to server here. 50 | @echo ' done.' 51 | 52 | html/%.html : %.jemdoc MENU 53 | jemdoc -o $@ $< 54 | 55 | .PHONY : clean 56 | clean : 57 | -rm -f html/*.html 58 | ~~~ 59 | -------------------------------------------------------------------------------- /jemdoc_files/tables.jemdoc: -------------------------------------------------------------------------------- 1 | # jemdoc: menu{MENU}{tables.html}, showsource, addcss{table} 2 | = jemdoc -- tables 3 | 4 | jemdoc includes preliminary support for tables. 5 | 6 | ~~~ 7 | {Table syntax}{} 8 | \~~~ 9 | {}{table}{TABLENAME} 10 | first entry | another entry || 11 | as many rows | as you like || 12 | bottom row | last entry 13 | \~~~ 14 | ~~~ 15 | 16 | +TABLENAME+ should either be replaced with a name---which becomes the table's 17 | +css+ +id+---or be omitted. 18 | 19 | 20 | == Notes 21 | - There is no need to line up the +|+ symbols. Extra whitespace is ignored. 22 | - The last row does not need a terminating +||+. 23 | - Individual tables can be customised by replacing +TABLENAME+ with a unique 24 | name, and using custom css. For example, within 25 | a css file, +\#countries { background: gray; }+ will make the background of 26 | the +countries+ table gray. 27 | - Rows in a table are numbered sequentially for easy formatting with css. For 28 | example, to make the entries in the first row of a table called +countries+ 29 | bold, use +\#countries tr.r1 { font-weight: bold; }+. 30 | 31 | == Example 32 | 33 | ~~~ 34 | {}{table}{countries} 35 | country | population | people per square km || 36 | Canada | 33 million | 3.2 || 37 | {{中华人民共和国}}\n | 38 | 1300 million | 140 || 39 | Kingdom of Denmark | 5.5 million | 130 || 40 | New Zealand | 4.3 million | 15 || 41 | United States of America | 300 million | 31 42 | ~~~ 43 | -------------------------------------------------------------------------------- /jemdoc_files/underscore.jemdoc: -------------------------------------------------------------------------------- 1 | # jemdoc: menu{MENU}{underscore.html}, nofooter 2 | == Underscore Example 3 | 4 | Like *bold* and /italic/, _underscore_ can be used for emphasis in this modified version of +jemdoc+. Useful for highlighting different parts of a bibliography item as: 5 | 6 | 1. _First Author_, Second Author, and *Corresponding Author*, "Amazing Paper," /High-impact Journal/, vol.~1, pp.~1--10 (2014). 7 | -------------------------------------------------------------------------------- /jemdoc_files/using.jemdoc: -------------------------------------------------------------------------------- 1 | # jemdoc: menu{MENU}{using.html} 2 | = jemdoc -- running jemdoc 3 | 4 | Make sure 5 | [http://www.python.org/ Python] is installed, put jemdoc in your path somewhere, 6 | type in your file, and run 7 | 8 | ~~~ 9 | {}{} 10 | jemdoc index.jemdoc 11 | ~~~ 12 | 13 | This will use a default configuration for the html elements, and create an 14 | +index.html+. 15 | 16 | Even simpler, you can omit the extension, and jemdoc will still 17 | process the +index.jemdoc+ file, as in 18 | ~~~ 19 | {}{} 20 | jemdoc index 21 | ~~~ 22 | 23 | == CSS 24 | You will need to provide a [http://www.w3.org/Style/CSS/ CSS] file on your 25 | server. By default it should be called +jemdoc.css+. Here is an example 26 | [dist/jemdoc.css jemdoc.css] file: download it and place it in the same 27 | directory as your html files. (Or customize it, or start from scratch!) 28 | 29 | == Change the configuration 30 | To choose a different output file, use +-o+: 31 | 32 | ~~~ 33 | {}{} 34 | jemdoc -o html/index.html index 35 | ~~~ 36 | 37 | You can specify a different output directory with +-o+: 38 | ~~~ 39 | {}{} 40 | jemdoc -o html/ index 41 | ~~~ 42 | 43 | This will instead output to +html\/index.html+. 44 | 45 | To change the html configuration ([htmlchanges.html details here]), use +-c+: 46 | ~~~ 47 | {}{} 48 | jemdoc -c mysite.conf index 49 | ~~~ 50 | 51 | Command line options may be combined. For example, the following command will 52 | use +mysite.conf+, reading syntax from +index.jemdoc+ and outputting to 53 | +html\/index.html+: 54 | ~~~ 55 | {}{} 56 | jemdoc -c mysite.conf -o html/ index 57 | ~~~ 58 | 59 | == Other command line options 60 | To check which version of jemdoc you are using, run the command 61 | ~~~ 62 | {}{} 63 | jemdoc --version 64 | ~~~ 65 | 66 | To get simple command-line help, you can run +jemdoc+ without arguments, or 67 | ~~~ 68 | {}{} 69 | jemdoc --help 70 | ~~~ 71 | 72 | To show the html configuration ([htmlchanges.html details here]), run 73 | ~~~ 74 | {}{} 75 | jemdoc --show-config 76 | ~~~ 77 | 78 | -------------------------------------------------------------------------------- /www/contact.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | jemdoc + new design 13 | 14 | 16 | 21 | 22 | 23 | 24 |
25 |
26 | 39 |
40 |
41 |
42 |
43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 |
74 |
75 |
76 |
77 |
78 |

jemdoc – contact details

79 |
80 |

Development

81 |

jemdoc is developed by Jacob Mattingley. 82 | Please contact Jacob with any bug reports and 83 | comments. 84 | If reporting a bug, please run the command jemdoc --version and include the 85 | result in your email.

86 |

There are two levels of support:

87 |
    88 |
  • Basic jemdoc, which I will attempt to support well, and

    89 |
  • 90 |
  • LaTeX equations in jemdoc, which I may attempt to support.

    91 |
  • 92 |
93 |
94 | 102 |
103 |
104 |
105 | 125 | 126 | 127 | -------------------------------------------------------------------------------- /www/download.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | jemdoc + new design 13 | 14 | 16 | 21 | 22 | 23 | 24 |
25 |
26 | 39 |
40 |
41 |
42 |
43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 |
74 |
75 |
76 |
77 |
78 |

jemdoc – download

79 |
80 |

Here is jemdoc.py 82 | (v0.7.3). You can also download this example css 83 | file to get you started. You can easily modify the css to adjust colours, fonts 84 | and general layout elements to your taste.

85 |

You may like to sudo cp jemdoc.py /usr/bin/jemdoc 86 | so that you can just type 87 | jemdoc; alternatively, you could add a line to your ~/.bashrc or 88 | similar like alias jemdoc='/somepath/jemdoc.py'. Remember to chmod +x your 89 | file to make it executable.

90 |

jemdoc requires Python 2.3 or later. If you have a working installation of 91 | Python, you should be ready to go. This includes all Macs, and almost any 92 | fairly modern unix or linux.

93 |

Old versions can still be found. Mahesh Shastry provides a package with 94 | jemdoc compiled for Windows.

95 |

Where to next?

96 |

Read about how to use jemdoc, check out an example 97 | page, then refer to the cheat sheet once you're underway. 98 | You could also download sample jemdoc code, like the index page 99 | for this website.

100 |
101 | 109 |
110 |
111 |
112 | 132 | 133 | 134 | -------------------------------------------------------------------------------- /www/example.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | jemdoc + new design 13 | 14 | 16 | 21 | 22 | 23 | 24 |
25 |
26 | 39 |
40 |
41 |
42 |
43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 |
74 |
75 |
76 |
77 |
78 |

jemdoc – example page

79 | 80 |
81 |

If the first line of the file starts with # jemdoc, special functions like menus will be used.

82 |

Example

83 |

Here are some text features. I could link somewhere or insert a raw link to another page like download.html. I could use monospace, too.

84 |

I could write special characters like #, $ and + by just using a backslash (\) in front of those characters. Or automatically detect an email address.

85 |
86 |
87 |

Save the file as index.jemdoc, say, and simply call jemdoc index (after downloading jemdoc, of course).

88 |
89 |

Next bit, next heading level two

90 |

Getting into level three now

91 |

Why not use a list

92 |
    93 |
  • to explain the way you do lists?

    94 |
  • 95 |
  • to demonstrate how a line
    break might work?

    96 |
  • 97 |
98 |

Or perhaps a

99 |
    100 |
  1. Multilevel

    101 |
      102 |
    1. Numbered list

      103 |
    2. 104 |
    3. Is more

      105 |
    106 |
  2. 107 |
  3. Useful?

    108 |
  4. 109 |
110 |
111 |
Definition
112 |

lists, especially when there are many definitions

113 |
Can be useful
114 |

for explaining things

115 |
116 |

Finally, a few more blocks

117 |

This ‘section’ features “smart quotes”.

118 |
119 |
Simple block
120 |
121 |

This is a simple text block, with a title. Notice how the previous line has only one set of braces ({}).

122 |
123 |
124 |
Interactive Python listing
125 |
126 | >>> print 'Interactive Python code.'
127 | 'Interactive Python code.'
128 | 
129 |
130 |
131 | Plain code block with no title.
132 | 
133 |

You might need 2–3 different-sized dashes — they can be useful. Now we're done!

134 |
135 | 143 |
144 |
145 |
146 | 166 | 167 | 168 | -------------------------------------------------------------------------------- /www/extra.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | jemdoc + new design 13 | 14 | 16 | 21 | 22 | 23 | 24 |
25 |
26 | 39 |
40 |
41 |
42 |
43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 |
74 |
75 |
76 |
77 |
78 |

jemdoc – extra syntax elements

79 |
80 |

These are some extended syntax options that may come in useful.

81 |

Left aligned image blocks

82 |

As seen here, for example, 83 | left-aligned image blocks place an image and allow ordinary jemdoc marked-up 84 | text to flow around the right-hand side.

85 |
86 |
Left-aligned image block syntax
87 |
 88 | ~~~
 89 | {}{img_left}{FILENAME.IMG}{alt text}{WIDTHpx}{HEIGHTpx}{IMGLINKTARGET}
 90 | Ordinary jemdoc markup goes here.
 91 | ~~~
 92 | 
93 |

All arguments may be left blank, though you should specify an image filename, 94 | and alt text should be descriptive for reasons like 95 | those given 96 | by Wikipedia.

97 |

Raw blocks

98 |

When placing large amounts of raw html, you should use a raw block instead of 99 | {{inline html escaping}}. As well as cleaner syntax, raw blocks will avoid 100 | having <p> tags in the wrong places.

101 |
102 |
Raw block syntax
103 |
104 | ~~~
105 | {}{raw}
106 | Any text here will be copied straight to the output file without processing.
107 | ~~~
108 | 
109 |

Other character sets

110 |

Here's a quick example of how to include text in a language with a different 111 | character set.

112 |

To include Korean (한국말), 113 | use something like this:

114 |
115 |
116 | {{<span lang="ko" xml:lang="ko">}}한국말{{</span>}}
117 | 
118 |

(Let me know if you need better support for your 119 | language.)

120 |

Including other files

121 |

The line

122 |
123 |
124 | #include{otherfile.jemdoc}
125 | 
126 |

will include the contents of otherfile.jemdoc as if the contents were actually 127 | in the ordinary input file (that is, with full jemdoc substitutions). 128 | The line

129 |
130 |
131 | #includeraw{otherfile.html}
132 | 
133 |

will copy the contents of otherfile.html verbatim to the current position in 134 | the output file (that is, without any jemdoc substitutions).

135 |

Other packages

136 | 147 |
148 | 156 |
157 |
158 |
159 | 179 | 180 | 181 | -------------------------------------------------------------------------------- /www/font-awesome/HELP-US-OUT.txt: -------------------------------------------------------------------------------- 1 | I hope you love Font Awesome. If you've found it useful, please do me a favor and check out my latest project, 2 | Fort Awesome (https://fortawesome.com). It makes it easy to put the perfect icons on your website. Choose from our awesome, 3 | comprehensive icon sets or copy and paste your own. 4 | 5 | Please. Check it out. 6 | 7 | -Dave Gandy 8 | -------------------------------------------------------------------------------- /www/font-awesome/fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/www/font-awesome/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /www/font-awesome/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/www/font-awesome/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /www/font-awesome/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/www/font-awesome/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /www/font-awesome/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/www/font-awesome/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /www/font-awesome/fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/www/font-awesome/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /www/font-awesome/less/animated.less: -------------------------------------------------------------------------------- 1 | // Animated Icons 2 | // -------------------------- 3 | 4 | .@{fa-css-prefix}-spin { 5 | -webkit-animation: fa-spin 2s infinite linear; 6 | animation: fa-spin 2s infinite linear; 7 | } 8 | 9 | .@{fa-css-prefix}-pulse { 10 | -webkit-animation: fa-spin 1s infinite steps(8); 11 | animation: fa-spin 1s infinite steps(8); 12 | } 13 | 14 | @-webkit-keyframes fa-spin { 15 | 0% { 16 | -webkit-transform: rotate(0deg); 17 | transform: rotate(0deg); 18 | } 19 | 100% { 20 | -webkit-transform: rotate(359deg); 21 | transform: rotate(359deg); 22 | } 23 | } 24 | 25 | @keyframes fa-spin { 26 | 0% { 27 | -webkit-transform: rotate(0deg); 28 | transform: rotate(0deg); 29 | } 30 | 100% { 31 | -webkit-transform: rotate(359deg); 32 | transform: rotate(359deg); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /www/font-awesome/less/bordered-pulled.less: -------------------------------------------------------------------------------- 1 | // Bordered & Pulled 2 | // ------------------------- 3 | 4 | .@{fa-css-prefix}-border { 5 | padding: .2em .25em .15em; 6 | border: solid .08em @fa-border-color; 7 | border-radius: .1em; 8 | } 9 | 10 | .@{fa-css-prefix}-pull-left { float: left; } 11 | .@{fa-css-prefix}-pull-right { float: right; } 12 | 13 | .@{fa-css-prefix} { 14 | &.@{fa-css-prefix}-pull-left { margin-right: .3em; } 15 | &.@{fa-css-prefix}-pull-right { margin-left: .3em; } 16 | } 17 | 18 | /* Deprecated as of 4.4.0 */ 19 | .pull-right { float: right; } 20 | .pull-left { float: left; } 21 | 22 | .@{fa-css-prefix} { 23 | &.pull-left { margin-right: .3em; } 24 | &.pull-right { margin-left: .3em; } 25 | } 26 | -------------------------------------------------------------------------------- /www/font-awesome/less/core.less: -------------------------------------------------------------------------------- 1 | // Base Class Definition 2 | // ------------------------- 3 | 4 | .@{fa-css-prefix} { 5 | display: inline-block; 6 | font: normal normal normal @fa-font-size-base/@fa-line-height-base FontAwesome; // shortening font declaration 7 | font-size: inherit; // can't have font-size inherit on line above, so need to override 8 | text-rendering: auto; // optimizelegibility throws things off #1094 9 | -webkit-font-smoothing: antialiased; 10 | -moz-osx-font-smoothing: grayscale; 11 | 12 | } 13 | -------------------------------------------------------------------------------- /www/font-awesome/less/fixed-width.less: -------------------------------------------------------------------------------- 1 | // Fixed Width Icons 2 | // ------------------------- 3 | .@{fa-css-prefix}-fw { 4 | width: (18em / 14); 5 | text-align: center; 6 | } 7 | -------------------------------------------------------------------------------- /www/font-awesome/less/font-awesome.less: -------------------------------------------------------------------------------- 1 | /*! 2 | * Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome 3 | * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) 4 | */ 5 | 6 | @import "variables.less"; 7 | @import "mixins.less"; 8 | @import "path.less"; 9 | @import "core.less"; 10 | @import "larger.less"; 11 | @import "fixed-width.less"; 12 | @import "list.less"; 13 | @import "bordered-pulled.less"; 14 | @import "animated.less"; 15 | @import "rotated-flipped.less"; 16 | @import "stacked.less"; 17 | @import "icons.less"; 18 | @import "screen-reader.less"; 19 | -------------------------------------------------------------------------------- /www/font-awesome/less/larger.less: -------------------------------------------------------------------------------- 1 | // Icon Sizes 2 | // ------------------------- 3 | 4 | /* makes the font 33% larger relative to the icon container */ 5 | .@{fa-css-prefix}-lg { 6 | font-size: (4em / 3); 7 | line-height: (3em / 4); 8 | vertical-align: -15%; 9 | } 10 | .@{fa-css-prefix}-2x { font-size: 2em; } 11 | .@{fa-css-prefix}-3x { font-size: 3em; } 12 | .@{fa-css-prefix}-4x { font-size: 4em; } 13 | .@{fa-css-prefix}-5x { font-size: 5em; } 14 | -------------------------------------------------------------------------------- /www/font-awesome/less/list.less: -------------------------------------------------------------------------------- 1 | // List Icons 2 | // ------------------------- 3 | 4 | .@{fa-css-prefix}-ul { 5 | padding-left: 0; 6 | margin-left: @fa-li-width; 7 | list-style-type: none; 8 | > li { position: relative; } 9 | } 10 | .@{fa-css-prefix}-li { 11 | position: absolute; 12 | left: -@fa-li-width; 13 | width: @fa-li-width; 14 | top: (2em / 14); 15 | text-align: center; 16 | &.@{fa-css-prefix}-lg { 17 | left: (-@fa-li-width + (4em / 14)); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /www/font-awesome/less/mixins.less: -------------------------------------------------------------------------------- 1 | // Mixins 2 | // -------------------------- 3 | 4 | .fa-icon() { 5 | display: inline-block; 6 | font: normal normal normal @fa-font-size-base/@fa-line-height-base FontAwesome; // shortening font declaration 7 | font-size: inherit; // can't have font-size inherit on line above, so need to override 8 | text-rendering: auto; // optimizelegibility throws things off #1094 9 | -webkit-font-smoothing: antialiased; 10 | -moz-osx-font-smoothing: grayscale; 11 | 12 | } 13 | 14 | .fa-icon-rotate(@degrees, @rotation) { 15 | -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=@{rotation})"; 16 | -webkit-transform: rotate(@degrees); 17 | -ms-transform: rotate(@degrees); 18 | transform: rotate(@degrees); 19 | } 20 | 21 | .fa-icon-flip(@horiz, @vert, @rotation) { 22 | -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=@{rotation}, mirror=1)"; 23 | -webkit-transform: scale(@horiz, @vert); 24 | -ms-transform: scale(@horiz, @vert); 25 | transform: scale(@horiz, @vert); 26 | } 27 | 28 | 29 | // Only display content to screen readers. A la Bootstrap 4. 30 | // 31 | // See: http://a11yproject.com/posts/how-to-hide-content/ 32 | 33 | .sr-only() { 34 | position: absolute; 35 | width: 1px; 36 | height: 1px; 37 | padding: 0; 38 | margin: -1px; 39 | overflow: hidden; 40 | clip: rect(0,0,0,0); 41 | border: 0; 42 | } 43 | 44 | // Use in conjunction with .sr-only to only display content when it's focused. 45 | // 46 | // Useful for "Skip to main content" links; see http://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1 47 | // 48 | // Credit: HTML5 Boilerplate 49 | 50 | .sr-only-focusable() { 51 | &:active, 52 | &:focus { 53 | position: static; 54 | width: auto; 55 | height: auto; 56 | margin: 0; 57 | overflow: visible; 58 | clip: auto; 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /www/font-awesome/less/path.less: -------------------------------------------------------------------------------- 1 | /* FONT PATH 2 | * -------------------------- */ 3 | 4 | @font-face { 5 | font-family: 'FontAwesome'; 6 | src: url('@{fa-font-path}/fontawesome-webfont.eot?v=@{fa-version}'); 7 | src: url('@{fa-font-path}/fontawesome-webfont.eot?#iefix&v=@{fa-version}') format('embedded-opentype'), 8 | url('@{fa-font-path}/fontawesome-webfont.woff2?v=@{fa-version}') format('woff2'), 9 | url('@{fa-font-path}/fontawesome-webfont.woff?v=@{fa-version}') format('woff'), 10 | url('@{fa-font-path}/fontawesome-webfont.ttf?v=@{fa-version}') format('truetype'), 11 | url('@{fa-font-path}/fontawesome-webfont.svg?v=@{fa-version}#fontawesomeregular') format('svg'); 12 | // src: url('@{fa-font-path}/FontAwesome.otf') format('opentype'); // used when developing fonts 13 | font-weight: normal; 14 | font-style: normal; 15 | } 16 | -------------------------------------------------------------------------------- /www/font-awesome/less/rotated-flipped.less: -------------------------------------------------------------------------------- 1 | // Rotated & Flipped Icons 2 | // ------------------------- 3 | 4 | .@{fa-css-prefix}-rotate-90 { .fa-icon-rotate(90deg, 1); } 5 | .@{fa-css-prefix}-rotate-180 { .fa-icon-rotate(180deg, 2); } 6 | .@{fa-css-prefix}-rotate-270 { .fa-icon-rotate(270deg, 3); } 7 | 8 | .@{fa-css-prefix}-flip-horizontal { .fa-icon-flip(-1, 1, 0); } 9 | .@{fa-css-prefix}-flip-vertical { .fa-icon-flip(1, -1, 2); } 10 | 11 | // Hook for IE8-9 12 | // ------------------------- 13 | 14 | :root .@{fa-css-prefix}-rotate-90, 15 | :root .@{fa-css-prefix}-rotate-180, 16 | :root .@{fa-css-prefix}-rotate-270, 17 | :root .@{fa-css-prefix}-flip-horizontal, 18 | :root .@{fa-css-prefix}-flip-vertical { 19 | filter: none; 20 | } 21 | -------------------------------------------------------------------------------- /www/font-awesome/less/screen-reader.less: -------------------------------------------------------------------------------- 1 | // Screen Readers 2 | // ------------------------- 3 | 4 | .sr-only { .sr-only(); } 5 | .sr-only-focusable { .sr-only-focusable(); } 6 | -------------------------------------------------------------------------------- /www/font-awesome/less/stacked.less: -------------------------------------------------------------------------------- 1 | // Stacked Icons 2 | // ------------------------- 3 | 4 | .@{fa-css-prefix}-stack { 5 | position: relative; 6 | display: inline-block; 7 | width: 2em; 8 | height: 2em; 9 | line-height: 2em; 10 | vertical-align: middle; 11 | } 12 | .@{fa-css-prefix}-stack-1x, .@{fa-css-prefix}-stack-2x { 13 | position: absolute; 14 | left: 0; 15 | width: 100%; 16 | text-align: center; 17 | } 18 | .@{fa-css-prefix}-stack-1x { line-height: inherit; } 19 | .@{fa-css-prefix}-stack-2x { font-size: 2em; } 20 | .@{fa-css-prefix}-inverse { color: @fa-inverse; } 21 | -------------------------------------------------------------------------------- /www/font-awesome/scss/_animated.scss: -------------------------------------------------------------------------------- 1 | // Spinning Icons 2 | // -------------------------- 3 | 4 | .#{$fa-css-prefix}-spin { 5 | -webkit-animation: fa-spin 2s infinite linear; 6 | animation: fa-spin 2s infinite linear; 7 | } 8 | 9 | .#{$fa-css-prefix}-pulse { 10 | -webkit-animation: fa-spin 1s infinite steps(8); 11 | animation: fa-spin 1s infinite steps(8); 12 | } 13 | 14 | @-webkit-keyframes fa-spin { 15 | 0% { 16 | -webkit-transform: rotate(0deg); 17 | transform: rotate(0deg); 18 | } 19 | 100% { 20 | -webkit-transform: rotate(359deg); 21 | transform: rotate(359deg); 22 | } 23 | } 24 | 25 | @keyframes fa-spin { 26 | 0% { 27 | -webkit-transform: rotate(0deg); 28 | transform: rotate(0deg); 29 | } 30 | 100% { 31 | -webkit-transform: rotate(359deg); 32 | transform: rotate(359deg); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /www/font-awesome/scss/_bordered-pulled.scss: -------------------------------------------------------------------------------- 1 | // Bordered & Pulled 2 | // ------------------------- 3 | 4 | .#{$fa-css-prefix}-border { 5 | padding: .2em .25em .15em; 6 | border: solid .08em $fa-border-color; 7 | border-radius: .1em; 8 | } 9 | 10 | .#{$fa-css-prefix}-pull-left { float: left; } 11 | .#{$fa-css-prefix}-pull-right { float: right; } 12 | 13 | .#{$fa-css-prefix} { 14 | &.#{$fa-css-prefix}-pull-left { margin-right: .3em; } 15 | &.#{$fa-css-prefix}-pull-right { margin-left: .3em; } 16 | } 17 | 18 | /* Deprecated as of 4.4.0 */ 19 | .pull-right { float: right; } 20 | .pull-left { float: left; } 21 | 22 | .#{$fa-css-prefix} { 23 | &.pull-left { margin-right: .3em; } 24 | &.pull-right { margin-left: .3em; } 25 | } 26 | -------------------------------------------------------------------------------- /www/font-awesome/scss/_core.scss: -------------------------------------------------------------------------------- 1 | // Base Class Definition 2 | // ------------------------- 3 | 4 | .#{$fa-css-prefix} { 5 | display: inline-block; 6 | font: normal normal normal #{$fa-font-size-base}/#{$fa-line-height-base} FontAwesome; // shortening font declaration 7 | font-size: inherit; // can't have font-size inherit on line above, so need to override 8 | text-rendering: auto; // optimizelegibility throws things off #1094 9 | -webkit-font-smoothing: antialiased; 10 | -moz-osx-font-smoothing: grayscale; 11 | 12 | } 13 | -------------------------------------------------------------------------------- /www/font-awesome/scss/_fixed-width.scss: -------------------------------------------------------------------------------- 1 | // Fixed Width Icons 2 | // ------------------------- 3 | .#{$fa-css-prefix}-fw { 4 | width: (18em / 14); 5 | text-align: center; 6 | } 7 | -------------------------------------------------------------------------------- /www/font-awesome/scss/_larger.scss: -------------------------------------------------------------------------------- 1 | // Icon Sizes 2 | // ------------------------- 3 | 4 | /* makes the font 33% larger relative to the icon container */ 5 | .#{$fa-css-prefix}-lg { 6 | font-size: (4em / 3); 7 | line-height: (3em / 4); 8 | vertical-align: -15%; 9 | } 10 | .#{$fa-css-prefix}-2x { font-size: 2em; } 11 | .#{$fa-css-prefix}-3x { font-size: 3em; } 12 | .#{$fa-css-prefix}-4x { font-size: 4em; } 13 | .#{$fa-css-prefix}-5x { font-size: 5em; } 14 | -------------------------------------------------------------------------------- /www/font-awesome/scss/_list.scss: -------------------------------------------------------------------------------- 1 | // List Icons 2 | // ------------------------- 3 | 4 | .#{$fa-css-prefix}-ul { 5 | padding-left: 0; 6 | margin-left: $fa-li-width; 7 | list-style-type: none; 8 | > li { position: relative; } 9 | } 10 | .#{$fa-css-prefix}-li { 11 | position: absolute; 12 | left: -$fa-li-width; 13 | width: $fa-li-width; 14 | top: (2em / 14); 15 | text-align: center; 16 | &.#{$fa-css-prefix}-lg { 17 | left: -$fa-li-width + (4em / 14); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /www/font-awesome/scss/_mixins.scss: -------------------------------------------------------------------------------- 1 | // Mixins 2 | // -------------------------- 3 | 4 | @mixin fa-icon() { 5 | display: inline-block; 6 | font: normal normal normal #{$fa-font-size-base}/#{$fa-line-height-base} FontAwesome; // shortening font declaration 7 | font-size: inherit; // can't have font-size inherit on line above, so need to override 8 | text-rendering: auto; // optimizelegibility throws things off #1094 9 | -webkit-font-smoothing: antialiased; 10 | -moz-osx-font-smoothing: grayscale; 11 | 12 | } 13 | 14 | @mixin fa-icon-rotate($degrees, $rotation) { 15 | -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation})"; 16 | -webkit-transform: rotate($degrees); 17 | -ms-transform: rotate($degrees); 18 | transform: rotate($degrees); 19 | } 20 | 21 | @mixin fa-icon-flip($horiz, $vert, $rotation) { 22 | -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation}, mirror=1)"; 23 | -webkit-transform: scale($horiz, $vert); 24 | -ms-transform: scale($horiz, $vert); 25 | transform: scale($horiz, $vert); 26 | } 27 | 28 | 29 | // Only display content to screen readers. A la Bootstrap 4. 30 | // 31 | // See: http://a11yproject.com/posts/how-to-hide-content/ 32 | 33 | @mixin sr-only { 34 | position: absolute; 35 | width: 1px; 36 | height: 1px; 37 | padding: 0; 38 | margin: -1px; 39 | overflow: hidden; 40 | clip: rect(0,0,0,0); 41 | border: 0; 42 | } 43 | 44 | // Use in conjunction with .sr-only to only display content when it's focused. 45 | // 46 | // Useful for "Skip to main content" links; see http://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1 47 | // 48 | // Credit: HTML5 Boilerplate 49 | 50 | @mixin sr-only-focusable { 51 | &:active, 52 | &:focus { 53 | position: static; 54 | width: auto; 55 | height: auto; 56 | margin: 0; 57 | overflow: visible; 58 | clip: auto; 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /www/font-awesome/scss/_path.scss: -------------------------------------------------------------------------------- 1 | /* FONT PATH 2 | * -------------------------- */ 3 | 4 | @font-face { 5 | font-family: 'FontAwesome'; 6 | src: url('#{$fa-font-path}/fontawesome-webfont.eot?v=#{$fa-version}'); 7 | src: url('#{$fa-font-path}/fontawesome-webfont.eot?#iefix&v=#{$fa-version}') format('embedded-opentype'), 8 | url('#{$fa-font-path}/fontawesome-webfont.woff2?v=#{$fa-version}') format('woff2'), 9 | url('#{$fa-font-path}/fontawesome-webfont.woff?v=#{$fa-version}') format('woff'), 10 | url('#{$fa-font-path}/fontawesome-webfont.ttf?v=#{$fa-version}') format('truetype'), 11 | url('#{$fa-font-path}/fontawesome-webfont.svg?v=#{$fa-version}#fontawesomeregular') format('svg'); 12 | // src: url('#{$fa-font-path}/FontAwesome.otf') format('opentype'); // used when developing fonts 13 | font-weight: normal; 14 | font-style: normal; 15 | } 16 | -------------------------------------------------------------------------------- /www/font-awesome/scss/_rotated-flipped.scss: -------------------------------------------------------------------------------- 1 | // Rotated & Flipped Icons 2 | // ------------------------- 3 | 4 | .#{$fa-css-prefix}-rotate-90 { @include fa-icon-rotate(90deg, 1); } 5 | .#{$fa-css-prefix}-rotate-180 { @include fa-icon-rotate(180deg, 2); } 6 | .#{$fa-css-prefix}-rotate-270 { @include fa-icon-rotate(270deg, 3); } 7 | 8 | .#{$fa-css-prefix}-flip-horizontal { @include fa-icon-flip(-1, 1, 0); } 9 | .#{$fa-css-prefix}-flip-vertical { @include fa-icon-flip(1, -1, 2); } 10 | 11 | // Hook for IE8-9 12 | // ------------------------- 13 | 14 | :root .#{$fa-css-prefix}-rotate-90, 15 | :root .#{$fa-css-prefix}-rotate-180, 16 | :root .#{$fa-css-prefix}-rotate-270, 17 | :root .#{$fa-css-prefix}-flip-horizontal, 18 | :root .#{$fa-css-prefix}-flip-vertical { 19 | filter: none; 20 | } 21 | -------------------------------------------------------------------------------- /www/font-awesome/scss/_screen-reader.scss: -------------------------------------------------------------------------------- 1 | // Screen Readers 2 | // ------------------------- 3 | 4 | .sr-only { @include sr-only(); } 5 | .sr-only-focusable { @include sr-only-focusable(); } 6 | -------------------------------------------------------------------------------- /www/font-awesome/scss/_stacked.scss: -------------------------------------------------------------------------------- 1 | // Stacked Icons 2 | // ------------------------- 3 | 4 | .#{$fa-css-prefix}-stack { 5 | position: relative; 6 | display: inline-block; 7 | width: 2em; 8 | height: 2em; 9 | line-height: 2em; 10 | vertical-align: middle; 11 | } 12 | .#{$fa-css-prefix}-stack-1x, .#{$fa-css-prefix}-stack-2x { 13 | position: absolute; 14 | left: 0; 15 | width: 100%; 16 | text-align: center; 17 | } 18 | .#{$fa-css-prefix}-stack-1x { line-height: inherit; } 19 | .#{$fa-css-prefix}-stack-2x { font-size: 2em; } 20 | .#{$fa-css-prefix}-inverse { color: $fa-inverse; } 21 | -------------------------------------------------------------------------------- /www/font-awesome/scss/font-awesome.scss: -------------------------------------------------------------------------------- 1 | /*! 2 | * Font Awesome 4.7.0 by @davegandy - http://fontawesome.io - @fontawesome 3 | * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) 4 | */ 5 | 6 | @import "variables"; 7 | @import "mixins"; 8 | @import "path"; 9 | @import "core"; 10 | @import "larger"; 11 | @import "fixed-width"; 12 | @import "list"; 13 | @import "bordered-pulled"; 14 | @import "animated"; 15 | @import "rotated-flipped"; 16 | @import "stacked"; 17 | @import "icons"; 18 | @import "screen-reader"; 19 | -------------------------------------------------------------------------------- /www/htmlchanges.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | jemdoc + new design 13 | 14 | 16 | 21 | 22 | 23 | 24 |
25 |
26 | 39 |
40 |
41 |
42 |
43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 |
74 |
75 |
76 |
77 |
78 |

jemdoc – html changes

79 |
80 |

jemdoc has a built-in default configuration. This configuration includes the 81 | particular html tags used when producing html. If you wish to adjust the html 82 | that jemdoc produces, you can provide a configuration file to override the 83 | built-in defaults.

84 |

Example html change

85 |

Suppose you wanted to add Google 86 | Analytics tracking to your website. That requires adding a short section of 87 | html before the </body> tag.

88 |

First, find out which block needs to be changed by using

89 |
90 |
 91 | jemdoc --show-config
 92 | 
93 |

This prints the default html configuration. From this, the relevant 94 | configuration block (the one which includes the </body> tag) has a title 95 | [bodyend], and looks like

96 |
97 |
 98 | [bodyend]
 99 | </body>
100 | </html>
101 | 
102 |

Create a new file mysite.conf, say, and put a new [bodyend] block 103 | inside it. The new file looks like this:

104 |
105 |
106 | [bodyend]
107 | <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
108 | </script>
109 | <script type="text/javascript">
110 | _uacct = "UA-0000000-0";
111 | urchinTracker();
112 | </script>
113 | </body>
114 | </html>
115 | 
116 |

Include your new configuration file, with the -c option (more 117 | details here):

118 |
119 |
120 | jemdoc -c mysite.conf index.jemdoc
121 | 
122 |

This will pull in the new [bodyend] block from mysite.conf, but otherwise 123 | work as before.

124 |
125 | 133 |
134 |
135 |
136 | 156 | 157 | 158 | -------------------------------------------------------------------------------- /www/images/banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/www/images/banner.png -------------------------------------------------------------------------------- /www/images/banner2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/www/images/banner2.png -------------------------------------------------------------------------------- /www/images/groups/group_all.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/www/images/groups/group_all.png -------------------------------------------------------------------------------- /www/images/groups/outing/falls2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/www/images/groups/outing/falls2.png -------------------------------------------------------------------------------- /www/images/groups/outing/mist.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/www/images/groups/outing/mist.png -------------------------------------------------------------------------------- /www/images/groups/outing/mountainskies.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/www/images/groups/outing/mountainskies.png -------------------------------------------------------------------------------- /www/images/groups/outing/nature.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/www/images/groups/outing/nature.png -------------------------------------------------------------------------------- /www/images/groups/outing/ocean.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/www/images/groups/outing/ocean.png -------------------------------------------------------------------------------- /www/images/groups/outing/paris.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/www/images/groups/outing/paris.png -------------------------------------------------------------------------------- /www/images/groups/outing/rocks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/www/images/groups/outing/rocks.png -------------------------------------------------------------------------------- /www/images/groups/outing/underwater.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/www/images/groups/outing/underwater.png -------------------------------------------------------------------------------- /www/images/groups/outing/wedding.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/www/images/groups/outing/wedding.png -------------------------------------------------------------------------------- /www/images/groups/people/p1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/www/images/groups/people/p1.png -------------------------------------------------------------------------------- /www/images/groups/people/p10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/www/images/groups/people/p10.png -------------------------------------------------------------------------------- /www/images/groups/people/p11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/www/images/groups/people/p11.png -------------------------------------------------------------------------------- /www/images/groups/people/p12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/www/images/groups/people/p12.png -------------------------------------------------------------------------------- /www/images/groups/people/p13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/www/images/groups/people/p13.png -------------------------------------------------------------------------------- /www/images/groups/people/p14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/www/images/groups/people/p14.png -------------------------------------------------------------------------------- /www/images/groups/people/p15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/www/images/groups/people/p15.png -------------------------------------------------------------------------------- /www/images/groups/people/p16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/www/images/groups/people/p16.png -------------------------------------------------------------------------------- /www/images/groups/people/p2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/www/images/groups/people/p2.png -------------------------------------------------------------------------------- /www/images/groups/people/p3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/www/images/groups/people/p3.png -------------------------------------------------------------------------------- /www/images/groups/people/p4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/www/images/groups/people/p4.png -------------------------------------------------------------------------------- /www/images/groups/people/p5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/www/images/groups/people/p5.png -------------------------------------------------------------------------------- /www/images/groups/people/p6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/www/images/groups/people/p6.png -------------------------------------------------------------------------------- /www/images/groups/people/p7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/www/images/groups/people/p7.png -------------------------------------------------------------------------------- /www/images/groups/people/p8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/www/images/groups/people/p8.png -------------------------------------------------------------------------------- /www/images/groups/people/p9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/www/images/groups/people/p9.png -------------------------------------------------------------------------------- /www/images/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/www/images/icon.png -------------------------------------------------------------------------------- /www/images/info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/www/images/info.png -------------------------------------------------------------------------------- /www/images/pic01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/www/images/pic01.png -------------------------------------------------------------------------------- /www/images/pic02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/www/images/pic02.png -------------------------------------------------------------------------------- /www/images/pic03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/www/images/pic03.png -------------------------------------------------------------------------------- /www/images/pic04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/www/images/pic04.png -------------------------------------------------------------------------------- /www/images/pic05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/www/images/pic05.png -------------------------------------------------------------------------------- /www/images/pic06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/www/images/pic06.png -------------------------------------------------------------------------------- /www/images/profile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/www/images/profile.png -------------------------------------------------------------------------------- /www/images/profile2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/www/images/profile2.png -------------------------------------------------------------------------------- /www/index.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | jemdoc + new design 13 | 14 | 16 | 21 | 22 | 23 | 24 |
25 |
26 | 39 |
40 |
41 |
42 |
43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 |
74 |
75 |
76 |
77 |
78 | profile pic
79 |
80 |
81 | info pic
82 |
83 |
84 | 92 |
93 |
94 |
95 | 115 | 116 | 117 | -------------------------------------------------------------------------------- /www/latex.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | jemdoc + new design 13 | 14 | 16 | 21 | 22 | 23 | 24 |
25 |
26 | 39 |
40 |
41 |
42 |
43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 |
74 |
75 |
76 |
77 |
78 |

jemdoc – latex equations

79 |
80 |

jemdoc includes support for LaTeX equations. LaTeX source embedded in jemdoc 81 | files is processed by calling latex and 82 | dvipng (which must both be available for this 83 | feature). Resulting PNG images are then placed on the web page. Equations are 84 | typeset using pure LaTeX.

85 |
86 |
87 |

jemdoc equation support relies on several pieces, any of which may break. No 88 | guarantees! Support may be limited.

89 |
90 |

Inline equations

91 |

The conjugate function \(f^\star(y) = \sup_{x \in X}(y^Tx - f(x))\) appears here 92 | inline, and is in the variable \(y\). Dollar signs ($) surround the LaTeX 93 | equation in the jemdoc source.

94 |
95 |
Syntax
96 |
 97 | The sample function $f^\star(y) = \sup_{x \in X}(y^Tx - f(x))$
 98 | appears here inline, and is in the variable $y$.
 99 | 
100 |

Equations on separate lines

101 |

To render an equation on its own line, use backslash-escaped round brackets 102 | (\( and \)). For example, the identity

103 |

104 | \[ 105 | (I + XY)^{-1} = I - X(I + YX)^{-1}Y 106 | \] 107 |

is typeset on its own line. Yes, round brackets instead of square 108 | brackets — this is to avoid a conflict with ordinary square brackets that are 109 | escaped to avoid being a link. Sorry.

110 |
111 |
Syntax
112 |
113 | The identity
114 | \(
115 |     (I \+ XY)^{-1} = I - X(I \+ YX)^{-1}Y
116 | \)
117 | is typeset on its own line.
118 | 
119 |

Here, the line breaks (and other whitespace) are ignored. As always, the exact 120 | formatting details can be adjusted using CSS.

121 |

Notes

122 |
    123 |
  • The baseline is carefully adjusted. The sequences m\(m\)m and y\(y\)y (m$m$m 124 | and y$y$y), for example, should be neatly aligned (modulo bad browsers).

    125 |
  • 126 |
  • Definition by cases will work as expected, for example, \(f(x)\), where

    127 |
  • 128 |
129 |

130 | \[ 131 | f(x) = \left\{ 132 | \begin{array}{ll} 133 | 3, & x \leq 0 \\ 134 | 5, & x > 0. \\ 135 | \end{array}\right. 136 | \] 137 |

(You can view the jemdoc source for this page.)

138 |
    139 |
  • A random inequality might look like \(3x + 2y^{4k + 6} \geq z\).

    140 |
  • 141 |
  • This page takes about 0.7 seconds to process on an average machine, including 142 | making all the equations from scratch.

    143 |
  • 144 |
  • There are several configuration options for equations. They are detailed on 145 | the modelines page.

    146 |
  • 147 |
148 |
149 | 158 |
159 |
160 |
161 | 181 | 182 | 183 | -------------------------------------------------------------------------------- /www/link.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | jemdoc + new design 13 | 14 | 16 | 21 | 22 | 23 | 24 |
25 |
26 | 39 |
40 |
41 |
42 |
43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 |
74 |
75 |
76 |
77 |
78 |

Link Example

79 |
80 |

You can control the behavior of a link: by default the link opens in a new web broswer tab, but by putting a slash (/) character at the beginning of the link address you can make it open in the current web broswer tab.

81 |

For example, [mathjax.html] opens in a new web broswer tab, but [/mathjax.html] opens in the current web browser tab. The link opening in a new tab is useful for linking an external website (like http://www.google.com), whereas the link opening in the current tab is useful for liking your jemdoc page (such as the page linked as a jemdoc menu item on the left panel).

82 |

Unlike the link in the main text, a jemdoc menu item link on the left panel opens in the current tab by default, because you want to stay in the same tab while navigating menu items. However, you can override this default behavior and make it open in a new tab by putting a backslash (\) character in the beginning of the link of the menu item. This is useful when putting an external website as a menu item. See this usage in “Open in New Tab” menu item on the left panel, which is defined in MENU file.

83 |
84 | 92 |
93 |
94 |
95 | 115 | 116 | 117 | -------------------------------------------------------------------------------- /www/mathjax.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | jemdoc + new design 13 | 14 | 16 | 21 | 22 | 23 | 24 |
25 |
26 | 39 |
40 |
41 |
42 |
43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 |
74 |
75 |
76 |
77 |
78 |

MathJax Example

79 |
80 |

In this modified version of jemdoc, a LaTeX equation block can be typed in as

81 |

82 | \[ 83 | \nabla \cdot \mathbf{D} = \rho_f\\ 84 | \nabla \cdot \mathbf{B} = 0,\\ 85 | \nabla \times \mathbf{E} = -\frac{\partial\mathbf{B}}{\partial t}\\ 86 | \nabla \times \mathbf{H} = \mathbf{J}_f - \frac{\partial\mathbf{D}}{\partial t}. 87 | \] 88 |

You can also align equations using LaTeX's aligned block:

89 |

90 | \[ 91 | \begin{aligned} 92 | \nabla \cdot \mathbf{D} &= \rho_f\\ 93 | \nabla \cdot \mathbf{B} &= 0\\ 94 | \nabla \times \mathbf{E} &= -\frac{\partial\mathbf{B}}{\partial t}\\ 95 | \nabla \times \mathbf{H} &= \mathbf{J}_f - \frac{\partial\mathbf{D}}{\partial t}. 96 | \end{aligned} 97 | \] 98 |

To number the equation block, wrap the equations with LaTeX's equation block:

99 |

100 | \[ 101 | \begin{equation} 102 | \begin{aligned} 103 | \nabla \cdot \mathbf{D} &= \rho_f\\ 104 | \nabla \cdot \mathbf{B} &= 0\\ 105 | \nabla \times \mathbf{E} &= -\frac{\partial\mathbf{B}}{\partial t}\\ 106 | \nabla \times \mathbf{H} &= \mathbf{J}_f - \frac{\partial\mathbf{D}}{\partial t}. 107 | \end{aligned} 108 | \end{equation} 109 | \] 110 |

Instead, you can use LaTeX's align (not aligned) block to number the individual equations:

111 |

112 | \[ 113 | \begin{align} 114 | \nabla \cdot \mathbf{D} &= \rho_f\label{eq:D}\\ 115 | \nabla \cdot \mathbf{B} &= 0\label{eq:B}\\ 116 | \nabla \times \mathbf{E} &= -\frac{\partial\mathbf{B}}{\partial t}\label{eq:E}\\ 117 | \nabla \times \mathbf{H} &= \mathbf{J}_f - \frac{\partial\mathbf{D}}{\partial t}\label{eq:H} 118 | \end{align} 119 | \] 120 |

You can also type inline equations as \(A x = b\). Referencing equations is done as Eqs. \(\eqref{eq:E}\) and \(\eqref{eq:H}\).

121 |
122 | 130 |
131 |
132 |
133 | 153 | 154 | 155 | -------------------------------------------------------------------------------- /www/menu.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | jemdoc + new design 13 | 14 | 16 | 21 | 22 | 23 | 24 |
25 |
26 | 39 |
40 |
41 |
42 |
43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 |
74 |
75 |
76 |
77 |
78 |

jemdoc – add a menu

79 |
80 |

jemdoc provides an easy way to add a ‘menu’ like the one you see at the left of 81 | this page. You should create a file called MENU, for example, in the current 82 | directory. This website's MENU looks something like this:

83 |
84 |
 85 | jemdoc
 86 |     home                [index.html]
 87 |     download            [download.html]
 88 |     revision history    [revision.html]
 89 |     contact             [contact.html]
 90 | 
 91 | user's guide
 92 |     cheat sheet         [cheatsheet.html]
 93 |     using               [using.html]
 94 | 
 95 | goodies
 96 |     add a menu          [menu.html]
 97 |     other stuff         [stuff.html]
 98 | 
99 |

To use the menu, start the first line of each source file with a special 100 | comment like this one:

101 |
102 |
103 | # jemdoc: menu{MENU}{index.html}
104 | 
105 |

(Replace index.html with the name of the relevant html page.) This will add a 106 | menu from the file called MENU, and underline and darken the menu entry 107 | corresponding to index.html.

108 |

Relative paths

109 |

Optionally, include a prefix which instructs jemdoc where the root of the menu 110 | is located relative to a particular page.

111 |
112 |
113 | # jemdoc: menu{MENU}{pageinsubdir.html}{prefix}
114 | 
115 |

A note on menu widths

116 |

jemdoc will create menu entries that do not wrap. If you have a particularly 117 | long title, or menu item, insert manual linebreaks using \n in your 118 | MENU file. Multi-line menu items will (by default) have their second and 119 | subsequent lines slightly indented.

120 |
121 | 129 |
130 |
131 |
132 | 152 | 153 | 154 | -------------------------------------------------------------------------------- /www/nomenu.css: -------------------------------------------------------------------------------- 1 | /* not show close and open button */ 2 | 3 | @media screen and (max-width: 1200px) { 4 | .openbtn { 5 | font-size: 0; 6 | cursor: pointer; 7 | background: none; 8 | color: none; 9 | padding: 0; 10 | border: none; 11 | width: 0; 12 | } 13 | 14 | .openbtn:hover { 15 | background-color: none; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /www/nomenu.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | jemdoc + new design 14 | 15 | 17 | 22 | 23 | 24 | 25 |
26 |
27 | 40 |
41 |
42 |
43 |

jemdoc – example page

44 | 45 |
46 |
47 |
48 |

Go back to homepage

49 |

This is a nomenu example of the example page.

50 |
51 |

For nomenu option, the first line is

52 |
53 |
 54 | # jemdoc: nomenu, addcss{nomenu.css}
 55 | 
56 |

If the first line of the file starts with # jemdoc, special functions like menus will be used.

57 |

Example

58 |

Here are some text features. I could link somewhere or insert a raw link to another page like download.html. I could use monospace, too.

59 |

I could write special characters like #, $ and + by just using a backslash (\) in front of those characters. Or automatically detect an email address.

60 |
61 |
62 |

Save the file as index.jemdoc, say, and simply call jemdoc index (after downloading jemdoc, of course).

63 |
64 |

Next bit, next heading level two

65 |

Getting into level three now

66 |

Why not use a list

67 |
    68 |
  • to explain the way you do lists?

    69 |
  • 70 |
  • to demonstrate how a line
    break might work?

    71 |
  • 72 |
73 |

Or perhaps a

74 |
    75 |
  1. Multilevel

    76 |
      77 |
    1. Numbered list

      78 |
    2. 79 |
    3. Is more

      80 |
    81 |
  2. 82 |
  3. Useful?

    83 |
  4. 84 |
85 |
86 |
Definition
87 |

lists, especially when there are many definitions

88 |
Can be useful
89 |

for explaining things

90 |
91 |

Finally, a few more blocks

92 |

This ‘section’ features “smart quotes”.

93 |
94 |
Simple block
95 |
96 |

This is a simple text block, with a title. Notice how the previous line has only one set of braces ({}).

97 |
98 |
99 |
Interactive Python listing
100 |
101 | >>> print 'Interactive Python code.'
102 | 'Interactive Python code.'
103 | 
104 |
105 |
106 | Plain code block with no title.
107 | 
108 |

You might need 2–3 different-sized dashes — they can be useful. Now we're done!

109 |
110 | 118 |
119 |
120 |
121 | 141 | 142 | 143 | -------------------------------------------------------------------------------- /www/post1.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | jemdoc + new design 13 | 14 | 16 | 21 | 22 | 23 | 24 |
25 |
26 | 39 |
40 |
41 |
42 |
43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 |
74 |
75 |
76 |
77 |
78 |

Blog Post Page

79 |
80 |

Utterances

81 |

When you use jemdoc to write a blog post with a valid comment section, we use this extension  —  Utterances.

82 |

We do this by just adding this code to the end of your post.

83 |
84 |
 85 | {{
 86 | <script src="https://utteranc.es/client.js"
 87 |         repo="szl2/szl2.github.io"
 88 |         issue-term="pathname"
 89 |         theme="github-light"
 90 |         crossorigin="anonymous"
 91 |         async>
 92 | </script>
 93 | }}
 94 | 
95 |

Although it may show up locally, when your website is host on a github server.

96 |

97 | 104 |

105 |
106 | 114 |
115 |
116 |
117 | 137 | 138 | 139 | -------------------------------------------------------------------------------- /www/profile.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | jemdoc + new design 13 | 14 | 16 | 21 | 22 | 23 | 24 |
25 |
26 | 39 |
40 |
41 |
42 |
43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 |
74 |
75 |
76 |
77 |
78 | profile pic
79 |
80 |
81 | profile pic
82 |

Lorem Ipsum

83 |

dolor sit amet, Department of Electrical Engineering

84 |

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

85 |
86 |

Biography

87 |

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

88 |

Research statement

89 |

Pellentesque gravida metus purus, non blandit ligula dignissim a. Etiam vulputate nibh condimentum dui congue tempor. Vestibulum consequat non neque at tincidunt. Mauris accumsan a augue at consectetur. Praesent non nunc accumsan, feugiat nisl quis, ullamcorper est. Fusce a ex ornare libero venenatis tincidunt sed vel sem. Suspendisse id nibh at nisl pellentesque pellentesque non sit amet nisl.

90 |

Cras convallis ex et felis ullamcorper, ut blandit velit efficitur. Nunc et ullamcorper lectus. Maecenas accumsan tortor volutpat dolor viverra lobortis. Duis elit justo, interdum vitae augue a, gravida lacinia nibh. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Nullam in nulla eget magna vehicula vehicula quis id libero. Suspendisse elit sem, dignissim quis quam vitae, lacinia placerat nulla. Cras vehicula quis eros luctus condimentum. Pellentesque urna nunc, elementum ut mauris eu, pulvinar congue dui. Curabitur finibus egestas dolor vitae gravida. Integer venenatis, nisi sed iaculis tincidunt, tellus neque vehicula felis, sed viverra leo nunc at lorem. Curabitur in finibus purus. Aliquam dictum velit enim, sed vestibulum eros fringilla vitae. Donec tristique sapien dictum nisl pharetra dictum. Etiam non laoreet nisi, nec convallis quam. In commodo massa lacus, eget tincidunt odio elementum et.

91 |

Current Project

92 |

Donec tellus eros, rhoncus nec imperdiet in, tempus et mi. Quisque id feugiat enim. Suspendisse porta consequat velit, ac ullamcorper purus suscipit ac. Mauris laoreet varius urna. Suspendisse potenti. In et laoreet augue, et lobortis tellus. Etiam nec tortor tempus, lobortis turpis id, fermentum dolor. Mauris orci ante, porttitor ac viverra et, facilisis in lectus. Praesent faucibus non elit sit amet cursus. Duis eu viverra lectus, nec blandit magna. Nullam id ante semper, vestibulum neque tristique, accumsan ipsum. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Etiam mollis velit fermentum ex bibendum, eget molestie nisl porta.

93 |
94 | 102 |
103 |
104 |
105 | 125 | 126 | 127 | -------------------------------------------------------------------------------- /www/projects.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | jemdoc + new design 13 | 14 | 16 | 21 | 22 | 23 | 24 |
25 |
26 | 39 |
40 |
41 |
42 |
43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 |
74 |
75 |
76 |
77 |
78 |

Projects

79 |
This page contains all my projects.
80 |
81 |

2020

82 |
83 |
84 |

Possibly broke spacetime

85 |

Lorem ipsum dolor sit amet nullam id egestas urna aliquam

86 |

Integer eu ante ornare amet commetus vestibulum blandit integer in curae ac faucibus integer adipiscing ornare amet.

87 |
88 |

2019

89 |
90 |
91 |

Terraformed a small moon

92 |

Lorem ipsum dolor sit amet nullam id egestas urna aliquam

93 |

Integer eu ante ornare amet commetus vestibulum blandit integer in curae ac faucibus integer adipiscing ornare amet.

94 |
95 |
96 |
97 |

Snapped dark matter in the wild

98 |

Lorem ipsum dolor sit amet nullam id egestas urna aliquam

99 |

Integer eu ante ornare amet commetus vestibulum blandit integer in curae ac faucibus integer adipiscing ornare amet.

100 |
101 |
102 |
103 |

Sed eu mauris sed dolor commodo efficitur eget at augue

104 |

Proin consectetur sapien sit amet sagittis pharetra

105 |

Mauris ut massa placerat, pellentesque nibh sit amet, sodales diam. Mauris leo odio, rhoncus et consectetur ut, suscipit et elit. Praesent non mollis nibh, at rhoncus est.

106 |
107 |

2018

108 |
109 |
110 |

Donec gravida rutrum libero

111 |

Curabitur mollis elementum mauris in volutpat

112 |

Aenean posuere erat vel rutrum mollis. Aliquam mattis augue erat. Sed tellus turpis, laoreet id turpis vel, fringilla pulvinar nisi. Ut vitae euismod diam, et luctus tellus.

113 |
114 |
115 |
116 |

Aliquet scelerisque risus tincidunt a

117 |

Pellentesque dapibus, odio quis varius consequat

118 |

Nunc eget ex et odio tempus convallis sed in eros. Aliquam laoreet bibendum erat, vitae accumsan tellus.

119 |
120 |
121 | 129 |
130 |
131 |
132 | 152 | 153 | 154 | -------------------------------------------------------------------------------- /www/stuff.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | jemdoc + new design 13 | 14 | 16 | 21 | 22 | 23 | 24 |
25 |
26 | 39 |
40 |
41 |
42 |
43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 |
74 |
75 |
76 |
77 |
78 |

jemdoc – vim, make

79 |
80 |

Vim syntax highlighting

81 |

Here is a vim syntax file jemdoc.vim. 83 | You should download it to 84 | ~/.vim/syntax/. You may also need to add the following lines in your 85 | ~/.vimrc:

86 |
87 |
Additional ~/.vimrc lines
88 |
 89 | filetype plugin on
 90 | augroup filetypedetect
 91 | 	au! BufNewFile,BufRead *.jemdoc setf jemdoc
 92 | augroup END
 93 | 
 94 | " Last line is for proper wrapping of jemdoc lists, etc.
 95 | autocmd Filetype jemdoc setlocal comments=:#,fb:-,fb:.,fb:--,fb:..,fb:\:
 96 | 
97 |

Makefile

98 |

Here's a small example of a Makefile. 100 | A listing of it follows.

101 |

This file would be used as follows:

102 |
    103 |
  • Edit index.jemdoc and otherpage.jemdoc at will.

    104 |
  • 105 |
  • Type make in the same directory, and files html/index.html and 106 | html/otherpage.html will be updated as necessary.

    107 |
  • 108 |
  • Type make update and your files will be copied to the server.

    109 |
  • 110 |
  • Type make clean and old html files in html/ will be removed.

    111 |
  • 112 |
113 |

Rinse and repeat.

114 |
115 |
Makefile example
116 |
117 | DOCS=index otherpage
118 | 
119 | HDOCS=$(addsuffix .html, $(DOCS))
120 | PHDOCS=$(addprefix html/, $(HDOCS))
121 | 
122 | .PHONY : docs
123 | docs : $(PHDOCS)
124 | 
125 | .PHONY : update
126 | update : $(PHDOCS)
127 | 	@echo -n 'Copying to server...'
128 | 	# insert code for copying to server here.
129 | 	@echo ' done.'
130 | 
131 | html/%.html : %.jemdoc MENU
132 | 	jemdoc -o $@ $<
133 | 
134 | .PHONY : clean
135 | clean :
136 | 	-rm -f html/*.html
137 | 
138 |
139 | 147 |
148 |
149 |
150 | 170 | 171 | 172 | -------------------------------------------------------------------------------- /www/table.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/szl2/jemdoc-new-design/36c5425f0c0a439b176b6bc43d94a1a1ad223c05/www/table.css -------------------------------------------------------------------------------- /www/tables.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | jemdoc + new design 14 | 15 | 17 | 22 | 23 | 24 | 25 |
26 |
27 | 40 |
41 |
42 |
43 |
44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 |
75 |
76 |
77 |
78 |
79 |

jemdoc – tables

80 |
81 |

jemdoc includes preliminary support for tables.

82 |
83 |
Table syntax
84 |
 85 | ~~~
 86 | {}{table}{TABLENAME}
 87 | first entry  | another entry ||
 88 | as many rows | as you like   ||
 89 | bottom row   | last entry
 90 | ~~~
 91 | 
92 |

TABLENAME should either be replaced with a name — which becomes the table's 93 | css id — or be omitted.

94 |

Notes

95 |
    96 |
  • There is no need to line up the | symbols. Extra whitespace is ignored.

    97 |
  • 98 |
  • The last row does not need a terminating ||.

    99 |
  • 100 |
  • Individual tables can be customised by replacing TABLENAME with a unique 101 | name, and using custom css. For example, within 102 | a css file, #countries { background: gray; } will make the background of 103 | the countries table gray.

    104 |
  • 105 |
  • Rows in a table are numbered sequentially for easy formatting with css. For 106 | example, to make the entries in the first row of a table called countries 107 | bold, use #countries tr.r1 { font-weight: bold; }.

    108 |
  • 109 |
110 |

Example

111 | 112 | 113 | 114 | 116 | 117 | 118 |
country population people per square km
Canada 33 million 3.2
115 | 中华人民共和国
1300 million 140
Kingdom of Denmark 5.5 million 130
New Zealand 4.3 million 15
United States of America 300 million 31 119 |
120 |
121 | 130 |
131 |
132 |
133 | 153 | 154 | 155 | -------------------------------------------------------------------------------- /www/underscore.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | jemdoc + new design 13 | 14 | 16 | 21 | 22 | 23 | 24 |
25 |
26 | 39 |
40 |
41 |
42 |
43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 |
74 |
75 |
76 |
77 |
78 |

Underscore Example

79 |
80 |

Like bold and italic, underscore can be used for emphasis in this modified version of jemdoc. Useful for highlighting different parts of a bibliography item as:

81 |

1. First Author, Second Author, and Corresponding Author, “Amazing Paper,” High-impact Journal, vol. 1, pp. 1–10 (2014).

82 |
83 |
84 |
85 | 105 | 106 | 107 | -------------------------------------------------------------------------------- /www/using.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | jemdoc + new design 13 | 14 | 16 | 21 | 22 | 23 | 24 |
25 |
26 | 39 |
40 |
41 |
42 |
43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 |
74 |
75 |
76 |
77 |
78 |

jemdoc – running jemdoc

79 |
80 |

Make sure 81 | Python is installed, put jemdoc in your path somewhere, 82 | type in your file, and run

83 |
84 |
 85 | jemdoc index.jemdoc
 86 | 
87 |

This will use a default configuration for the html elements, and create an 88 | index.html.

89 |

Even simpler, you can omit the extension, and jemdoc will still 90 | process the index.jemdoc file, as in

91 |
92 |
 93 | jemdoc index
 94 | 
95 |

CSS

96 |

You will need to provide a CSS file on your 97 | server. By default it should be called jemdoc.css. Here is an example 98 | jemdoc.css file: download it and place it in the same 99 | directory as your html files. (Or customize it, or start from scratch!)

100 |

Change the configuration

101 |

To choose a different output file, use -o:

102 |
103 |
104 | jemdoc -o html/index.html index
105 | 
106 |

You can specify a different output directory with -o:

107 |
108 |
109 | jemdoc -o html/ index
110 | 
111 |

This will instead output to html/index.html.

112 |

To change the html configuration (details here), use -c:

113 |
114 |
115 | jemdoc -c mysite.conf index
116 | 
117 |

Command line options may be combined. For example, the following command will 118 | use mysite.conf, reading syntax from index.jemdoc and outputting to 119 | html/index.html:

120 |
121 |
122 | jemdoc -c mysite.conf -o html/ index
123 | 
124 |

Other command line options

125 |

To check which version of jemdoc you are using, run the command

126 |
127 |
128 | jemdoc --version
129 | 
130 |

To get simple command-line help, you can run jemdoc without arguments, or

131 |
132 |
133 | jemdoc --help
134 | 
135 |

To show the html configuration (details here), run

136 |
137 |
138 | jemdoc --show-config
139 | 
140 |
141 | 149 |
150 |
151 |
152 | 172 | 173 | 174 | --------------------------------------------------------------------------------