Giter VIP home page Giter VIP logo

xinzi-pro's Introduction

Build up your own website based on Jemdoc & GitHub Pages

1. Fork the template

Fork the jemdoc template from https://github.com/yongfu-li/personal-profile-webpage.git

image-20200323150759566

2. Set GitHub Pages

Open the repository you just forked.

  • Go toSettings

    image-20200323145950184

  • Rename the repository to whatever you like, eg: Mywebsite

    image-20200323150318269

  • Scroll down to GitHub Pages -> ②, then select master branch in the check box below Source -> ①. The page will flash automatically, and you can get the website url -> ③.

    image-20200323150526799

3. Change the template

Clone the repository you just forked to your computer.

Now you can make changes to your website by changing the ".jemdoc" files. You can also change the MENU. They are all under the jemdoc folder.

The structure of this template is shown in the following picture:

Here are some links on jemdoc for reference:

PS:

If you want to use Chinese characters, change line 142 in jemdoc.py: replace 'utf-8' with 'GBK'. You may still have messy code after uploading the files to your repo. This can be solved by

  • Make changes to the ".html" files with problem, commit changes, change the files back, commit changes again. If this does not work try doing it a second time.
  • Change the encoding of your ".html" files as 'GBK' before uploading them to the repo.

If you want to add your publications to the website, you should follow the steps bellow:

  1. Get the BibTex of your publication, e.g.

    @ARTICLE{ELL-2019-4180,
    author={A. R. Mohamed and Y. Li and G. Wang},
    journal={ietel},
    title="{A Generic Nano-Watt Power Fully Tunable 1-D Gaussian Kernel Circuit for Neural Network}",
    year={2019},
    volume={},
    number={},
    pages={1-1},
    month={},
    }
  2. Add the BibTex to ./ref/publications.bib

  3. Make changes in the following line in ./jemdoc/makefile.bat (e.g. To highlight Jiajie Huang instead of Yongfu Li, change "Y.\ Li", "Yongfu\ Li", and "Li,\ Yongfu" as "J.\Huang", "Jiajie\ Huang", and "Huang,\ Jiajie"):

python ../ref/bibconvert.py --suffix web --highlight "$\color{red}{Y.\ Li}$" --highlight "$\color{red}{Yongfu\ Li}$" --highlight "$\color{red}{Li,\ Yongfu}$" --input ../ref/Top.bib --input ../ref/publications.bib --header publications_header.jemdoc > publications.jemdoc

this operation will highlight your name in BibTex automatically, and the format of your name will be given in the above code.

4. Update your website

After changing the ".jemdoc" files on your desktop, run the following commands:

Windows:

run1
run2

Linux:

./run1.bat
./run2.bat

After pushing the changes to your repo, your website will be updated.

Beware that you can and will need to make changes to run1.bat and jemdoc/makefile.bat if you plan to change the MENU. You can run this commend to convert your "jemdoc" files into ".html" files:

python ./jemdoc.py -o ../ example.jemdoc

xinzi-pro's People

Contributors

mgshizi avatar tayloverh avatar yongfu-li avatar xinzixu avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.