Skip to content

Commit 251cc14

Browse files
committed
remove Decap CMS instructions from readme
1 parent 7c69cfa commit 251cc14

1 file changed

Lines changed: 0 additions & 99 deletions

File tree

‎README.md‎

Lines changed: 0 additions & 99 deletions
Original file line numberDiff line numberDiff line change
@@ -791,105 +791,6 @@ The News section automatically fetches the most recent posts from `@nmoraislab.b
791791

792792
---
793793

794-
## Visual content editor (Decap CMS) - optional setup
795-
796-
> **What this gives you:** a web interface at `https://diseasetranscriptomicslab.github.io/admin/` where anyone with GitHub access can edit site content (news, team members, publications) through forms - no git knowledge or terminal needed. Changes are committed directly to GitHub and deploy automatically.
797-
798-
This is optional. The site works fine without it. Set it up when you're ready to let non-technical collaborators edit content.
799-
800-
---
801-
802-
### Step 1 - Create the GitHub OAuth App
803-
804-
GitHub OAuth is what lets Decap log people in using their GitHub account.
805-
806-
1. Go to **GitHub → Settings → Developer settings → OAuth Apps → New OAuth App** (direct link: <https://github.com/settings/developers>).
807-
2. Fill in:
808-
- **Application name:** `Disease Transcriptomics Lab CMS`
809-
- **Homepage URL:** `https://diseasetranscriptomicslab.github.io`
810-
- **Authorization callback URL:** `https://api.netlify.com/auth/done`
811-
3. Click **Register application**.
812-
4. On the next page, copy the **Client ID** and click **Generate a new client secret** - copy that too. Keep both safe.
813-
814-
---
815-
816-
### Step 2 - Connect Netlify as the OAuth broker
817-
818-
Decap uses Netlify purely as an OAuth middleman (free, no hosting required).
819-
820-
1. Create a free account at <https://app.netlify.com> if you don't have one.
821-
2. Go to **Sites → Add new site → Deploy manually** and drag any dummy folder to create a placeholder site. The site URL doesn't matter.
822-
3. Go to **Site configuration → Access & security → OAuth**.
823-
4. Under **Authentication providers**, click **Install provider → GitHub**.
824-
5. Paste your **Client ID** and **Client secret** from Step 1, then click **Install**.
825-
826-
---
827-
828-
### Step 3 - Add the `admin/` folder to this repo
829-
830-
Create these two files and commit them (to a branch, then PR into `main`):
831-
832-
**`admin/index.html`** - the CMS entry point:
833-
834-
```html
835-
<!doctype html>
836-
<html>
837-
<head>
838-
<meta charset="utf-8" />
839-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
840-
<title>Disease Transcriptomics Lab CMS</title>
841-
</head>
842-
<body>
843-
<script src="https://unpkg.com/decap-cms@^3.0.0/dist/decap-cms.js"></script>
844-
</body>
845-
</html>
846-
```
847-
848-
**`admin/config.yml`** - tells Decap which files to edit:
849-
850-
```yaml
851-
backend:
852-
name: github
853-
repo: YOUR-ORG/nmoraislab.github.io # ← replace with actual repo path
854-
branch: main
855-
856-
media_folder: assets/news
857-
public_folder: assets/news
858-
859-
collections:
860-
- name: news
861-
label: Lab News
862-
folder: _data/news
863-
create: true
864-
slug: "{{year}}-{{month}}-{{slug}}"
865-
fields:
866-
- { label: Title, name: title, widget: string }
867-
- { label: Date, name: date, widget: string, hint: "e.g. June 2026" }
868-
- { label: Summary, name: summary, widget: text }
869-
- { label: Content, name: content, widget: markdown }
870-
- { label: Image, name: image, widget: image, required: false }
871-
```
872-
873-
> **Note:** Decap works best when content is stored as Markdown/YAML files. Adapting the current JavaScript-array format (`js/news-data.js`) to file-based content requires a small migration - contact the person who built the site for help with that step.
874-
875-
---
876-
877-
### Step 4 - Open the editor
878-
879-
Once the `admin/` folder is live on GitHub Pages:
880-
881-
1. Visit `https://diseasetranscriptomicslab.github.io/admin/`
882-
2. Click **Login with GitHub** and authorise.
883-
3. You'll see the content collections. Edit, save - changes commit to the repo and deploy automatically.
884-
885-
---
886-
887-
### Access control
888-
889-
Only GitHub accounts that have **read access to this repository** can log in via Decap. Manage collaborators under **GitHub → Repository → Settings → Collaborators and teams**. There is no separate Decap user list.
890-
891-
---
892-
893794
## Analytics
894795

895796
The site runs **Google Analytics 4**, property Measurement ID **`G-6FLD1GNCMB`**. The Measurement ID is not a secret - it's meant to appear in public page source, and on its own can't be used to read the analytics dashboard or modify the site (only Google accounts granted access to the GA property can view data).

0 commit comments

Comments
 (0)