Skip to content

Commit

Permalink
add a guide on how to edit the website
Browse files Browse the repository at this point in the history
  • Loading branch information
2320sharon committed May 9, 2024
1 parent 5eb76ad commit a6147bb
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 0 deletions.
64 changes: 64 additions & 0 deletions docs/edit-website.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
### How to Edit the Markdown Website

Follow these steps to edit and update the markdown website:

**Step 1:**

Switch to the `deploy_site` branch.

- You can do this using the command:
```bash
git checkout deploy_site
```

**Step 2:**

Open the `docs` directory.

This folder contains all the markdown files that comprise the website.

**Step 3:**

Create a new markdown file or edit an existing one.

- For editing, simply modify the chosen file.
- For new files, follow **Step 4**.

**Step 4 (if creating a new file):**

Edit the `mkdocs.yml` file to include the new markdown file in the `nav` section.

- Example

```
nav:
- Home: index.md
- New Section:
- Subpage: new_file.md
```

**Step 5:**

Visualize your changes locally

1. Install the required packages:

```
pip install mkdocs mkdocs-material
```

2. In the CoastSeg directory, run:
This command generates a local version of the website so you can see your changes.

```
mkdocs serve
```

**Step 6:**

Push your changes.

Commit and push the changes, triggering a GitHub action that will update the live website.
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ nav:
- Getting Started to Contribute: Getting-Started_to_contribute.md
- How to Contribute Transects: contribute-transects.md
- How to Test the Zoo Workflow: test-zoo-workflow.md
- How to edit the website: edit-website.md
# - Technical Documentation: technical-documentation.md
- Tutorials:
- How to authenticate with Google Earth Engine: how-to-auth.md
Expand Down

0 comments on commit a6147bb

Please sign in to comment.