Immersive Cognition GitHub landing page. Visit the live site
⚠Only modify files inside the /source folder! All other files in the base directory are generated by Frozen-Flask. Any videos/images/files you want to add should be added to the /source/app/static/files folder.⚠
Users can add/modify markdown files in the /source/content/people or /source/content/projects and submit as a pull request. See existing markdown files for examples
emailmust just be the username (i.e. with@leeds.ac.ukremoved)scholaris the code/ID in the URL of your Google Scholar profile (e.g. in0kwtpyoAAAAJin...citations?user=0kwtpyoAAAAJ&hl=en)twitterandgithubare optional and are just usernames (not the full URL)interestsare a list of interests each separated by a comma.
Images can also be placed in /source/content/people-images or /source/content/project-images, and referenced as person.jpg or project.png (images will automatically cropped to a square and converted to jpg and png for people and projects respectively).
To add/remove/modify papers, don't edit papers.json directly - instead fix the papers on your Google Scholar profile and the changes will be added the next time the website is rebuilt.
Website is built in Flask (Python module). The static HTML content is generated using Frozen-Flask.
If users add content (markdown files, or images), the developer needs to clone the pull request. With the local repository run the following Python scripts (from the /source folder to incorporate the changes into the static HTML:
python resizeimg.py
This will crop and convert the images and move them to the Flask app's static files directory.
python getscholar.py
This will fetch metadata for every article for each person that has provided a Scholar ID. It then stores the metadata in papers.json overwriting the existing file. This will take a while.
python application.py
This generates a local server so you can test the website locally in a web browser
python freeze.py
This walks over every link, and generates the static HTML for each page.
When you are happy with the changes, you can commit and push the changes to this repository.