Skip to content
This repository was archived by the owner on Aug 1, 2026. It is now read-only.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

340 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Important

This repository is deprecated (August 2026). The blog moved into the lawrencewu-net monorepo, under apps/blog/. Read the blog at https://lawrencewu.net. This repository is archived and read-only.

Lawrence Wu's Blog

Source for https://lawrencewu.net, built with Quarto.

Deployment Process

I used to run quarto render and commit the rendered files. Now, this blog is automatically deployed using GitHub Actions whenever changes are pushed to the main branch. Here's how it works:

  1. The workflow is defined in .github/workflows/publish.yml
  2. When changes are pushed to main, GitHub Actions:
    • Checks out the repository
    • Sets up UV (fast Python package installer)
    • Sets up Python using the version specified in .python-version
    • Installs Jupyter and other dependencies (required for Quarto pages that contain code)
    • Sets up Quarto
    • Renders the Quarto documents and publishes to the gh-pages branch

The rendered site is served via GitHub Pages from the gh-pages branch and available at https://lawrencewu.net.

Manual Deployment

To manually trigger deployment:

  1. Go to the "Actions" tab in the repository
  2. Select the "Quarto Publish" workflow
  3. Click "Run workflow" and select the branch to deploy from

Local Preview

To preview the blog locally, run:

quarto preview

Notes for me:

To shrink all png files in a directory, use the following command:

brew install pngquant
for file in *.png; do pngquant --force --output "$file" --quality 60-80 "$file"; done

It's possible to embed Streamlit apps directly into a Quarto page using an iframe:

<iframe
  src="https://llm-impact-on-jobs.streamlit.app/?embed=true"
  height="1200"
  style="width:100%;border:none;"
></iframe>

About

DEPRECATED — moved to lawwu/lawrencewu-net (apps/blog). Blog: https://lawrencewu.net

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages