Class repository Getting started!
https://cmneal26.github.io/Tech-Writing-Project/
This site was created from a 11ty starter project which uses Node.js to build static web pages from markdown, html and a variety of templates. See the ./11ty-starter-readme.md for more information about how the project works.
The site runs on your local machine so you can verify changes.
- Install git if it is not already installed.
- Download and install Node v16 from https://nodejs.org/en/.
- Open a terminal and clone the repository:
git clone git@github.com:cmneal26/Tech-Writing-Project.git
- Using a terminal, navigate into the root folder of the repository, and install 11ty's npm dependencies:
npm ci
From a terminal in the root directory of the project, run:
npm start
This will start a server on your machine and can be browsed:
http://localhost:8080/
The server can be stopped with the Control + c
keyboard shortcut.
Updates to pages should automatically be loaded in your browser (aka Hot reloading). If changes are not appearing, stop and restart the sereve.
The docs/
folder is generated by 11ty and that is the folder that is served in GitHub pages. Running this command to build the site into the docs/
folder:
npm run build
- Check out a branch to make your changes.
The branch name can be any name, my-changes is used as an example.
git checkout -b my-changes
- Start the server
npm start
- Make changes to files and preview the changes at http://localhost:8080/
When you're happy with the changes to the page(s):
# add the changes to your branch
git add .
git commit -m "My delightful changes"
# Upload (aka push) your changes to GitHub
git push -u origin my-changes
Create a pull request in GitHub by either:
A) Opening the link included in the output.
For example:
remote: Create a pull request for 'my-changes' on GitHub by visiting:
remote: https://github.com/cmneal26/Tech-Writing-Project/pull/new/my-changes
Or,
B) Go to GitHub and create a pull request for your branch.
Your changes are now ready for review by your teammates.
About 5 minutes after your pull request is merged, the changes will appear on:
https://cmneal26.github.io/Tech-Writing-Project/
:^)