Skip to content

Latest commit

 

History

History
642 lines (499 loc) · 35 KB

README.md

File metadata and controls

642 lines (499 loc) · 35 KB

Personal Google Scholar updates on macOS

The website keeps its existing publication list, badges, and site.data.citations.metadata/papers interface. Google Scholar collection now runs only on your personal Mac. GitHub Actions continues to build/deploy the site and run offline tests; it never runs the Scholar collector.

What is fetched and stored

Each live attempt first retrieves the current robots.txt. Only if its applicable rules allow the exact URL, it retrieves the basic public profile once. There are no searches, pagination, publication-detail requests, redirects, browser automation, cookies, proxy rotation, Tor, CAPTCHA solving, or retries. Environment proxy settings are explicitly disabled.

HTML is parsed for citations, h-index, i10-index (all-time and the displayed recent period), the annual citation chart, and citation counts of papers visible on the basic page. Detail/search links are parsed as identifiers only, never followed. Papers outside that page keep their previous values. The bibliography and badge templates are unchanged.

Only after all validation succeeds, the updater atomically writes _data/citations.yml, commits that file only, and pushes to origin/main. The YAML contains the existing metadata and papers objects plus profile, metrics, and citations_by_year. Each metric has all and recent values; metrics.recent_label records the displayed period. metadata.observed_paper_ids identifies which papers were refreshed.

Jekyll reads this YAML file directly as site.data.citations. Changes to it trigger deployment.

HTTP 403/429, any non-200 status, redirects, CAPTCHA, denied/unreadable robots.txt, unexpected markup, missing/invalid fields, or inconsistent totals stop the attempt immediately. They do not overwrite data, update a success timestamp, commit, or push. A profile-wide lock prevents concurrent runs and an attempt record permits at most one live attempt per local calendar day, including failed attempts. Do not remove this record to retry a blocked request.

Installation (personal macOS)

Use a persistent, dedicated checkout, not a temporary build folder. Install Python 3.10+ and Git first. Configure GitHub SSH or HTTPS credentials so git fetch and git push work non-interactively. For SSH, load the intended key into your normal macOS agent/Keychain; the updater does not handle passwords or create credentials.

Example in a directory you choose:

git clone git@github.com:systemreliability/systemreliability.github.io.git
cd systemreliability.github.io
git switch main
git pull --ff-only
git config user.name "YOUR EXISTING GIT NAME"
git config user.email "YOUR EXISTING GIT EMAIL"

python3 -m venv .venv-scholar
.venv-scholar/bin/python -m pip install -r bin/requirements-scholar.txt

The checkout must be clean and exactly match origin/main. The updater fetches that ref but deliberately does not merge, rebase, force-push, or include unrelated local commits. If you edit the website elsewhere, synchronize this checkout with git pull --ff-only before the next scheduled collection. A failed push leaves the single validated local commit for manual recovery, and subsequent runs stop rather than pushing unexpected history.

Initial manual run and compatibility check

Run offline tests first; these use synthetic fixtures and never contact Scholar:

.venv-scholar/bin/python -m unittest discover -s test -p 'test_scholar*.py' -v
bundle exec ruby test/scholar_profile_test.rb

Then perform one live, validated update from your Mac:

.venv-scholar/bin/python bin/update_scholar_citations.py --publish

Success prints the number of visible publications and the committed YAML path. Verify the YAML file's profile.user_id, totals, annual counts, and observed paper counts against the basic profile content already available to you. Check git show --stat HEAD, the Actions deployment result, and the website's existing Scholar badges/update date. No live snapshot is seeded from a test fixture. An actual first run can be blocked by Scholar; a blocked run is not a successful extraction and must leave the existing website data in place.

Without --publish, the command validates but does not change data or Git. This still consumes the day's live attempt; do not run a check followed by --publish on the same day. Wait until the next scheduled day.

Weekly launchd job

After the initial manual check, install a user LaunchAgent:

bash bin/install_scholar_launchd.sh

The default schedule is every Monday at 13:00 in the Mac's local timezone (Europe/Rome on the configured Mac). Pass an hour and minute to override it. Installing does not run a collection immediately. The plist uses absolute paths and is written with plistlib, so checkout paths containing spaces work. Reinstall to change the time or checkout location. Use one persistent checkout per profile.

The user must be logged in. launchd can coalesce missed calendar runs after sleep; it cannot collect while the Mac is powered off. The daily attempt guard prevents same-day duplication. No KeepAlive/restart loop is configured.

Status, logs, and errors

launchctl print "gui/$(id -u)/info.dongkyu-lee.scholar"
tail -n 100 "$HOME/Library/Logs/PersonalScholarUpdater/stdout.log"
tail -n 100 "$HOME/Library/Logs/PersonalScholarUpdater/stderr.log"
git status --short

Logs include a UTC start/error timestamp. Attempt history and lock files live in ~/Library/Application Support/PersonalScholarUpdater/; logs are local and never committed. On a network/robots/CAPTCHA/parsing failure, inspect the error and stop; do not use another IP, proxy, browser automation, or a detail/search URL. Unexpected markup requires a parser update and offline tests before another scheduled attempt. On a push failure, inspect the retained commit and reconcile remote changes manually; never force-push. Collection failures do not change the existing YAML status fields or paper counts.

Disable / remove automation

bash bin/uninstall_scholar_launchd.sh

This unloads the user LaunchAgent and removes its plist. It preserves data, logs, attempt history, and the local Python environment. The old GitHub collection workflow has no schedule or collection steps and is always skipped even if manually dispatched. The former publication fetch helper and Ruby Liquid tag now read the local cache only.

Validation scope

The offline workflow covers robots precedence, the two-request limit, HTTP failures, redirect refusal, CAPTCHA, malformed/partial HTML, validation, preservation on failure, commit/push handling, and existing badge compatibility. It does not contact Google Scholar or establish that a particular Mac/IP will be allowed. The required first live macOS run is a separate installation check.


al-folio

Preview

A simple, clean, and responsive Jekyll theme for academics.


deploy Maintainers GitHub contributors Docker Image Version Docker Image Size Docker Pulls

GitHub release GitHub license GitHub stars GitHub forks

User community

The vibrant community of al-folio users is growing! Academics around the world use this theme for their homepages, blogs, lab pages, as well as webpages for courses, workshops, conferences, meetups, and more. Check out the community webpages below. Feel free to add your own page(s) by sending a PR.

Academics ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★ ★
Labs ★ ★ ★ ★ ★ ★ ★ ★ ★
Courses CMU PGM (S-19)
CMU DeepRL (S-21, F-21, S-22, F-22, S-23, F-23)
CMU MMML (F-20, F-22)
CMU AMMML (S-22, S-23)
CMU ASI (S-23)
CMU Distributed Systems (S-24)
Conferences & workshops ICLR Blog Post Track (2023, 2024)
ML Retrospectives (NeurIPS: 2019, 2020; ICML: 2020)
HAMLETS (NeurIPS: 2020)
ICBINB (NeurIPS: 2020, 2021)
Neural Compression (ICLR: 2021)
Score Based Methods (NeurIPS: 2022)
Images2Symbols (CogSci: 2022)
Medical Robotics Junior Faculty Forum (ISMR: 2023)
Beyond Vision: Physics meets AI (ICIAP: 2023)
Workshop on Diffusion Models (NeurIPS: 2023)
Workshop on Structured Probabilistic Inference & Generative Modeling (ICML: 2023, 2024)

Lighthouse PageSpeed Insights

Desktop

Google Lighthouse PageSpeed Insights

Run the test yourself: Google Lighthouse PageSpeed Insights

Mobile

Google Lighthouse PageSpeed Insights

Run the test yourself: Google Lighthouse PageSpeed Insights

Table Of Contents

Getting started

Want to learn more about Jekyll? Check out this tutorial. Why Jekyll? Read Andrej Karpathy's blog post! Why write a blog? Read Rachel Thomas blog post.

Installing and Deploying

For installation and deployment details please refer to INSTALL.md.

Customizing

For customization details please refer to CUSTOMIZE.md.

Features

Light/Dark Mode

This template has a built-in light/dark mode. It detects the user preferred color scheme and automatically switches to it. You can also manually switch between light and dark mode by clicking on the sun/moon icon in the top right corner of the page.


CV

There are currently 2 different ways of generating the CV page content. The first one is by using a json file located in assets/json/resume.json. It is a known standard for creating a CV programmatically. The second one, currently used as a fallback when the json file is not found, is by using a yml file located in _data/cv.yml. This was the original way of creating the CV page content and since it is more human readable than a json file we decided to keep it as an option.

What this means is, if there is no resume data defined in _config.yml and loaded via a json file, it will load the contents of _data/cv.yml as fallback.

CV Preview


People

You can create a people page if you want to feature more than one person. Each person can have its own short bio, profile picture, and you can also set if every person will appear at the same or opposite sides.

People Preview


Publications

Your publications' page is generated automatically from your BibTex bibliography. Simply edit _bibliography/papers.bib. You can also add new *.bib files and customize the look of your publications however you like by editing _pages/publications.md. By default, the publications will be sorted by year and the most recent will be displayed first. You can change this behavior and more in the Jekyll Scholar section in _config.yml file.

You can add extra information to a publication, like a PDF file in the assets/pdf/ directory and add the path to the PDF file in the BibTeX entry with the pdf field. Some of the supported fields are: abstract, altmetric, arxiv, bibtex_show, blog, code, dimensions, doi, eprint, html, isbn, pdf, pmid, poster, slides, supp, video, and website.

Publications Preview


Collections

This Jekyll theme implements collections to let you break up your work into categories. The theme comes with two default collections: news and projects. Items from the news collection are automatically displayed on the home page. Items from the projects collection are displayed on a responsive grid on projects page.

Projects Preview

You can easily create your own collections, apps, short stories, courses, or whatever your creative work is. To do this, edit the collections in the _config.yml file, create a corresponding folder, and create a landing page for your collection, similar to _pages/projects.md.


Layouts

al-folio comes with stylish layouts for pages and blog posts.

The iconic style of Distill

The theme allows you to create blog posts in the distill.pub style:

Distill Preview

For more details on how to create distill-styled posts using <d-*> tags, please refer to the example.

Full support for math & code

al-folio supports fast math typesetting through MathJax and code syntax highlighting using GitHub style. Also supports chartjs charts, mermaid diagrams, and TikZ figures.

Photos, Audio, Video and more

Photo formatting is made simple using Bootstrap's grid system. Easily create beautiful grids within your blog posts and project pages, also with support for video and audio embeds:


Other features

GitHub's repositories and user stats

al-folio uses github-readme-stats and github-profile-trophy to display GitHub repositories and user stats on the /repositories/ page.

Repositories Preview

Edit the _data/repositories.yml and change the github_users and github_repos lists to include your own GitHub profile and repositories to the /repositories/ page.

You may also use the following codes for displaying this in any other pages.

<!-- code for GitHub users -->
{% if site.data.repositories.github_users %}
<div class="repositories d-flex flex-wrap flex-md-row flex-column justify-content-between align-items-center">
  {% for user in site.data.repositories.github_users %} {% include repository/repo_user.liquid username=user %} {% endfor %}
</div>
{% endif %}

<!-- code for GitHub trophies -->
{% if site.repo_trophies.enabled %} {% for user in site.data.repositories.github_users %} {% if site.data.repositories.github_users.size > 1 %}
<h4>{{ user }}</h4>
{% endif %}
<div class="repositories d-flex flex-wrap flex-md-row flex-column justify-content-between align-items-center">
  {% include repository/repo_trophies.liquid username=user %}
</div>
{% endfor %} {% endif %}

<!-- code for GitHub repositories -->
{% if site.data.repositories.github_repos %}
<div class="repositories d-flex flex-wrap flex-md-row flex-column justify-content-between align-items-center">
  {% for repo in site.data.repositories.github_repos %} {% include repository/repo.liquid repository=repo %} {% endfor %}
</div>
{% endif %}

Theming

A variety of beautiful theme colors have been selected for you to choose from. The default is purple, but you can quickly change it by editing the --global-theme-color variable in the _sass/_themes.scss file. Other color variables are listed there as well. The stock theme color options available can be found at _sass/_variables.scss. You can also add your own colors to this file assigning each a name for ease of use across the template.


Social media previews

al-folio supports preview images on social media. To enable this functionality you will need to set serve_og_meta to true in your _config.yml. Once you have done so, all your site's pages will include Open Graph data in the HTML head element.

You will then need to configure what image to display in your site's social media previews. This can be configured on a per-page basis, by setting the og_image page variable. If for an individual page this variable is not set, then the theme will fall back to a site-wide og_image variable, configurable in your _config.yml. In both the page-specific and site-wide cases, the og_image variable needs to hold the URL for the image you wish to display in social media previews.


Atom (RSS-like) Feed

It generates an Atom (RSS-like) feed of your posts, useful for Atom and RSS readers. The feed is reachable simply by typing after your homepage /feed.xml. E.g. assuming your website mountpoint is the main folder, you can type yourusername.github.io/feed.xml


Related posts

By default, there will be a related posts section on the bottom of the blog posts. These are generated by selecting the max_related most recent posts that share at least min_common_tags tags with the current post. If you do not want to display related posts on a specific post, simply add related_posts: false to the front matter of the post. If you want to disable it for all posts, simply set enabled to false in the related_blog_posts section in _config.yml.


Code quality checks

Currently, we run some checks to ensure that the code quality and generated site are good. The checks are done using GitHub Actions and the following tools:

  • Prettier - check if the formatting of the code follows the style guide
  • lychee - check for broken links
  • Axe (need to run manually) - do some accessibility testing

We decided to keep Axe runs manual because fixing the issues are not straightforward and might be hard for people without web development knowledge.

FAQ

For frequently asked questions, please refer to FAQ.md.

Contributing

Contributions to al-folio are very welcome! Before you get started, please take a look at the guidelines.

If you would like to improve documentation or fix a minor inconsistency or bug, please feel free to send a PR directly to main. For more complex issues/bugs or feature requests, please open an issue using the appropriate template.

Maintainers

Our most active contributors are welcome to join the maintainers team. If you are interested, please reach out!


Maruan

Rohan Deb Sarkar

Amir Pourmand

George

All Contributors

Star History

Star History Chart

License

The theme is available as open source under the terms of the MIT License.

Originally, al-folio was based on the *folio theme (published by Lia Bogoev and under the MIT license). Since then, it got a full re-write of the styles and many additional cool features.