📝 github.com/EthanThatOneKid/online-docs-template/edit/master/pages/Getting Started.md
Getting Started
This page explains how to get started with the Online-Docs-Template
By the end of these instructions, you should have a working GitHub-powered content management system (CMS) that updates your site as you choose to edit it!
If you are unfamiliar with markdown, visit this link to help you out! ⚔
Getting Started 🍎
- Create a new repository using this one as a template.
- Clone your new repository to your desktop.
- Initialize your repository...
- Install the dependencies with
npm i
. - Rename
.env.sample
to.env
and fill it with the appropriate info. - [optional] Customize the metadata within your
package.json
.
- Install the dependencies with
- Make it your own by editing the
pages
directory!
💡 Note: The
README.md
file in thepages
directory represents the homepage of the site!
Editing Documents 🖊
Edit Existing (Online) 📝
- Visit your live site.
- Navigate to the page that you wish to edit.
- Click the link at the top of the page to edit the document.
- Commit your changes.
Create New (Online) 💡
- Visit the
pages
directory on GitHub. - Navigate:
Add file > Create new file
. - Commit the new file.
Work on Desktop
- Open your repository in your favorite code editor.
- Edit the contents of the
pages
directory. - Commit and push your changes.
Deployment 🚀
- Set your
.env
secrets in your GitHub repository:Settings > Secrets > New Secret
. - Now, every push will trigger a deployment!