Preview your site
Last updated
Last updated
When you want to make changes to your website, you'll likely want a convenient way to preview and review the changes before publishing them.
Just like , there are two ways to preview your site: on GitHub and on your computer.
When you open or update a pull request on GitHub, the template will build a live preview of the changes you are making to your site. A public link to the preview will be in a comment on the pull request. This way, reviewers and editors can see the tangible result of the changes conveniently.
The template will also tell GitHub to automatically run the and commit the resulting citations. This happens whenever you push to main
or make a pull request.
If you're doing a pull request from a fork, make sure "" is checked in your pull request before you open it so the cite process has permission to commit its results.
Due to an , if you're making changes from a fork under an organization, you wont see the "allow edits" option and the cite process wont work. You'll have to make changes from a branch instead, or run the cite process locally.
Install (recommended) or just and start it.
Run ./.docker/run.sh
.
Wait for Docker to build a sandbox with all the languages and packages the template needs. Should take ~2 min the first time and be almost instant on subsequent runs.
Wait for Docker to start the preview. You should shortly get a localhost
link that you can open in your browser to see your site preview.
When you make a change to a file in your repo folder, your preview should refresh/update automatically, except for changes to _config.yaml
which require you to manually refresh.
When you make a change to your sources or metasources, the should automatically re-run, and when finished be reflected in your preview via the same behavior as above.
Everything installs properly and works consistently on any operating system, something that Jekyll/Ruby make very difficult, .
v3+ (on Windows, use the and the recommended version with the Devkit).
by running gem install bundler
.
Re-run the previous command if you ever add new .
Run :
(with PIP).