website guide
Making changes
10 Jun 2023- Open the Sublime Text app and set up a project window.
Command-N
to create a new window in Sublime Text- In Finder, go to the repository directory
greermuldowney-com/
- Drag the folder icon in the title bar of the Finder window, into the Sublime Text window. A sidebar containing the project folder and the entire directory structure should appear.
Run the local server to preview your changes
If you’ve set up your computer to preview your website, you can run a local server to see your changes before you commit them.
- Open Terminal.
- Type in
cd
(with the extra space at the end) - Drag the folder icon in the title bar of the Finder window, into the Terminal window. The full path to the project folder should appear.
- Press Enter.
- Type in
asdf exec bundle exec jekyll serve
- You should see output similar to this:
Configuration file: /Volumes/Projects/greermuldowney-com/_config.yml Source: /Volumes/Projects/greermuldowney-com Destination: /Volumes/Projects/greermuldowney-com/_site Incremental build: disabled. Enable with --incremental Generating... Jekyll Feed: Generating feed for posts done in 1.135 seconds. Auto-regeneration: enabled for '/Volumes/Projects/greermuldowney-com' Server address: http://127.0.0.1:4000/
- In your web browser, load http://127.0.0.1:4000/. You should see the website.
- Type in
Update your local repository with the latest files from GitHub
- In the GitHub Desktop app, click “Fetch” then “Pull”
How to make changes
- Edit the files in Sublime Text.
- See how your changes affect the website by loading your webpage through http://127.0.0.1:4000
If the changes look good, it’s time to commit it to your local repository.
- In GitHub Desktop, review the changes.
- If there is a specific change you want to revert, right-click the thin darker border on the right-hand side of the left-hand gutter, and select “Discard Modified Lines…”
- When the changes look good, enter a title and optional description in the bottom-left hand panel.
- Click “Commit”
When you’re done with editing the website
- In Terminal,
Control-C
to stop the local web server. - Quit Terminal, Sublime Text, GitHub Desktop.