jemdoc installation

Bisheng Du 杜碧升 

杜碧升 Bisheng Du, PhD, Professor

Department of Management Science & Engineering
Business School, Ningbo University, Zhejiang, China

Homepage www.dubisheng.com
Email \(\tt {dubisheng@nbu.edu.cn}\)

Jemdoc

Jemdoc常用语法


# jemdoc: nofooter  去除页面底部的generate by xxx

# jemdoc: addcss{PATH OF FILE}  添加CSS样式文件

# jemdoc: addjs{PATH OF FILE}  添加JS文件

{{HTML Content}}  添加html源代码

用这个的目的是为了用Bootstrap进行更好的排版和布局,比如Jemdoc默认是不居中的,于是在写Jemdoc之前套一个{{<div class="container"><div class="row">}}{{</div></div>}}使其居中


{}{img_left}{PATH OF FILE}{alt text}{WIDTHpx}{HEIGHTpx}{IMGLINKTARGET}  插入图片的语法


Jemdoc exective command

cd to your raw files location then type the following command

python ../jemdoc -c mysite.conf -o www/ *.jemdoc

How to install jemdoc in Mac

  • The original jemdoc only works with Python 2.7. If you are using Python 3, it won’t work with jemdoc. Following is a simple fix. Link

  1. Download Jemdoc Mathjax

  2. Unzip the file.

  3. In Terminal, (use cd to change the current directory to the unzip folder)

sudo cp jemdoc /usr/local/bin/jemdoc

chmod 755 /usr/local/bin/jemdoc

or

sudo cp jemdoc.py /usr/bin/jemdoc

sudo chmod 755 /usr/bin/jemdoc

How to install jemdoc in Windows

How to install jemdoc in Windows

  • Step 1: Install Python 2.3 or later for Windows, and create environment variables for Python.

  • Step 2: Download jemdoc.py and the corresponding jemdoc.css file, and copy them to a folder.

  • Step 3: Create an input file called index.jemdoc here to make a jemdoc website. Possibly create a MENU file if you need.

  • Step 4: Open Command Prompt and change the directory to the location of your input file.

  • Step 5: Run the command jemdoc.py index.jemdoc or simply jemdoc index. The file index.html should appear in the same folder as index.jemdoc.

Extensions

Other Links