forked from colin/resume
2
0
Fork 0
lucky-ddg/docker/resume
Colin 19182d6d21
Add PDF generation to Docker build process
- Update Dockerfile to install npm and run PDF generation during build
- Move generate-pdfs.js and package.json to docker/resume/ for Docker context
- Update generate-pdfs.js to work from /srv directory in container
- PDFs are now generated automatically during Docker build before deployment
- PDFs will be available at /pdfs/ path matching HTML file structure
2025-11-30 16:11:30 -05:00
..
images Add markdown tool link to navigation dropdown 2025-07-07 11:25:16 -04:00
includes Add PDF generation for static site pages 2025-11-30 15:46:21 -05:00
one-pager-tools Optimize SEO meta tags and update sitemap for production 2025-11-18 14:11:22 -05:00
stories Optimize SEO meta tags and update sitemap for production 2025-11-18 14:11:22 -05:00
tests Fix duplicate footer issues and remove npm dependency 2025-07-06 18:36:59 -04:00
Caddyfile Fix Matomo CSP by adding inline script hash 2025-07-30 14:51:34 -04:00
Caddyfile.local Remove CSP entirely for Matomo compatibility 2025-08-07 17:17:00 -04:00
Dockerfile Add PDF generation to Docker build process 2025-11-30 16:11:30 -05:00
Dockerfile.production Fix story link contrast for better accessibility 2025-07-06 19:33:07 -04:00
README.md Save all current changes to resume project 2025-07-06 11:16:43 -04:00
apple-touch-icon.png Update favicon with professional resume design 2025-07-06 15:08:42 -04:00
caddy.log Save all current changes to resume project 2025-07-06 11:16:43 -04:00
caddy.sh Save all current changes to resume project 2025-07-06 11:16:43 -04:00
consulting-packs.html Simplify consulting packs page: move common info to top, simplify pack descriptions 2025-10-27 14:12:02 -04:00
csv-tool-output.html Update CSP integrity hashes for styles.css 2025-10-27 14:34:01 -04:00
favicon-16x16.png Update favicon with professional resume design 2025-07-06 15:08:42 -04:00
favicon-32x32.png Update favicon with professional resume design 2025-07-06 15:08:42 -04:00
favicon.ico Update favicon with professional resume design 2025-07-06 15:08:42 -04:00
favicon.svg Update favicon to boot-logo.svg and prioritize SVG in favicon links 2025-11-18 14:23:14 -05:00
generate-pdfs.js Add PDF generation to Docker build process 2025-11-30 16:11:30 -05:00
generate-sitemap.sh Optimize SEO meta tags and update sitemap for production 2025-11-18 14:11:22 -05:00
includes.js dev: add docker compose for caddy, map 8081; add story placeholders (.md); update SRI via script; local compose run instructions 2025-10-15 16:58:31 -04:00
index.html Fix contact section: remove awkward colinknapp.com link 2025-11-18 14:35:05 -05:00
inline-style.txt Save all current changes to resume project 2025-07-06 11:16:43 -04:00
markdown-loader.js Add PDF generation for static site pages 2025-11-30 15:46:21 -05:00
matomo.js Avoid CORP block by serving matomo.js same-origin 2025-08-07 17:36:56 -04:00
package.json Add PDF generation to Docker build process 2025-11-30 16:11:30 -05:00
papaparse.min.js Save all current changes to resume project 2025-07-06 11:16:43 -04:00
sitemap.xml Optimize SEO meta tags and update sitemap for production 2025-11-18 14:11:22 -05:00
styles.css Add skip-to-content accessibility link to header nav 2025-10-21 10:46:00 -04:00
template-with-includes.html Update CSP integrity hashes for styles.css 2025-10-27 14:34:01 -04:00
test-csv-tool.sh Save all current changes to resume project 2025-07-06 11:16:43 -04:00
test-matomo.sh fixup 2025-08-07 17:07:56 -04:00
theme.js Save all current changes to resume project 2025-07-06 11:16:43 -04:00
update-all.sh Add PDF generation to Docker build process 2025-11-30 16:11:30 -05:00
update-csp-hashes.sh Disable CSP injection logic in update-csp-hashes.sh (no-op) 2025-08-07 17:28:21 -04:00
update-nav-from-sitemap.js Fix duplicate footer issues and remove npm dependency 2025-07-06 18:36:59 -04:00
update-stories-page.js Fix duplicate footer issues and remove npm dependency 2025-07-06 18:36:59 -04:00
utils.js Add utils.js with SHA-256 hash in CSP 2025-03-31 05:01:34 -04:00

README.md

Resume Website

Local Development

To run the local development server:

  1. Navigate to the docker/resume directory
  2. Use the unified Caddy management script:
    ./caddy.sh start    # Start the server
    ./caddy.sh stop     # Stop the server
    ./caddy.sh restart  # Restart the server
    ./caddy.sh status   # Check server status
    
  3. Open http://localhost:8080 in your browser

Important Notes

  • Always use the caddy.sh script to manage the server
  • Do not run Caddy directly from other directories

Content Security Policy (CSP)

When adding new scripts or styles, you need to update the CSP hashes:

  1. Make your changes to JS/CSS files
  2. Run the update script:
    ./update-csp-hashes.sh
    
  3. Restart the server using ./caddy.sh restart

Tools