📝 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 🍎

  1. Create a new repository using this one as a template.
  2. Clone your new repository to your desktop.
  3. Initialize your repository...
    1. Install the dependencies with npm i.
    2. Rename .env.sample to .env and fill it with the appropriate info.
    3. [optional] Customize the metadata within your package.json.
  4. Make it your own by editing the pages directory!

💡 Note: The README.md file in the pages directory represents the homepage of the site!

Editing Documents 🖊

Edit Existing (Online) 📝

  1. Visit your live site.
  2. Navigate to the page that you wish to edit.
  3. Click the link at the top of the page to edit the document.
  4. Commit your changes.

Create New (Online) 💡

  1. Visit the pages directory on GitHub.
  2. Navigate: Add file > Create new file.
  3. Commit the new file.

Work on Desktop

  1. Open your repository in your favorite code editor.
  2. Edit the contents of the pages directory.
  3. Commit and push your changes.

Deployment 🚀

  1. Set your .env secrets in your GitHub repository: Settings > Secrets > New Secret.
  2. Now, every push will trigger a deployment!