- (Recommended) Create a virtual environment with conda.
conda create --name flask python=3.7 conda activate flask
- Clone the repository and install the dependencies with
pip
.# install deps cd cac-website pip install setuptools==57.5.0 pip install -e .[dev]
- Clone the CV repo
cd src/cac/data/ git clone https://git.overleaf.com/62a9465ab1a0ec57bf651ac9 mv 62a9465ab1a0ec57bf651ac9 pubs
- Run local dynamic site, which can be accessed at http://localhost:5000.
FLASK_APP=cac flask run
- Generate static site for deployment using Frozen-Flask.
bash run.sh
- (Optional) View the static site locally. The website is accessible at http://127.0.0.1:8000/ on your browser.
# set up a local python server
python -m http.server 8000 --bind 127.0.0.1
- Bio:
- Html:
cac/templates/bio.html
- Html:
- Photo:
- File:
cac/static/images/ching-an-cheng.jpg
- Html:
cac/templates/index.html
(line 5)
- File:
- CV:
- File:
cac/docs/ching-an-cheng-cv.pdf
- File:
- Publications:
- Preprints:
- BibTex:
cac/data/pubs/preprints.bib
- Description yaml (for adding
pdf_link
,pdf_file
, ornote
):cac/data/pubs/preprints_desc.yaml
- PDF file (if applicable):
cac/docs/[pdf_file]
. Remeber to addpdf_file
in the description yaml file. - Html:
cac/templates/preprints.html
- BibTex:
- Conference/Journal Publications:
- BibTex:
cac/data/pubs/publications.bib
- Description yaml (for adding
pdf_link
,pdf_file
, ornote
):cac/data/pubs/publications_desc.yaml
- PDF file (if applicable):
cac/docs/[pdf_file]
. Remeber to addpdf_file
in the description yaml file. - Html:
cac/templates/publications.html
- BibTex:
- Workshop Papers:
- BibTex:
cac/data/pubs/workshops.bib
- Description yaml (for adding
pdf_link
,pdf_file
, ornote
):cac/data/pubs/workshops_desc.yaml
- PDF file (if applicable):
cac/docs/[pdf_file]
. Remeber to addpdf_file
in the description yaml file. - Html:
cac/templates/workshops.html
- BibTex:
- Preprints: