mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2025-07-28 04:33:42 +08:00

* Compress internship-salaries.jpg with jpegoptim. Lossless compression with `jpegoptim -sp in.jpg`. Before: 60,4 KB (61.850 bytes) After: 59,3 KB (60.824 bytes) * Losslessly compress favicon.png. Used optipng, zopflipng and pngout. Before: 23,0 KB (23.565 bytes) After: 9,56 KB (9.797 bytes) * Improve logo.svg compression. Remove unused IDs and data attributes thus allowing svgo to perform better optimization. Used svgo 1.3.0 after that. Before: 5339 bytes After: 4905 bytes
Website
This website is built using Docusaurus 2, a modern static website generator.
Installation
$ yarn
Local Development
$ yarn start
This command starts a local development server and open up a browser window. Most changes are reflected live without having to restart the server.
Build
$ yarn build
This command generates static content into the build
directory and can be served using any static contents hosting service.
Deployment
$ GIT_USER=<Your GitHub username> USE_SSH=1 yarn deploy
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages
branch.