Skip to content

Commit bd7d51e

Browse files
Automate README table of contents with doctoc
1 parent b391a41 commit bd7d51e

4 files changed

Lines changed: 904 additions & 9 deletions

File tree

‎.pre-commit-config.yaml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ repos:
2323

2424
- repo: local
2525
hooks:
26+
- id: doctoc
27+
name: update README table of contents
28+
description: Update the README table of contents with doctoc
29+
entry: npx doctoc README.md --all
30+
language: system
31+
pass_filenames: false
2632
- id: check-zip-file-is-not-committed
2733
name: check no zip files are committed
2834
description: Zip files are not allowed in the repository

‎README.md‎

Lines changed: 66 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,72 @@
2525

2626
## 📋 Table of Contents
2727

28-
- [About the Project](#-about-the-project)
29-
- [How to Add Yourself](#-how-to-add-yourself)
30-
- [YAML File Format](#-yaml-file-format)
31-
- [Local Development](#-local-development-optional)
32-
- [Contribution Guidelines](#-contribution-guidelines)
33-
- [Troubleshooting](#-troubleshooting--faq)
34-
- [Git Workflow & Keeping in Sync](#-git-workflow--keeping-in-sync)
35-
- [Contributing with GitHub CLI](#-contributing-with-github-cli)
36-
- [License](#-license)
28+
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
29+
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
30+
31+
- [🌐 NextCommunity Developer Directory](#-nextcommunity-developer-directory)
32+
- [📋 Table of Contents](#-table-of-contents)
33+
- [🎯 About the Project](#-about-the-project)
34+
- [🛠️ Tech Stack](#-tech-stack)
35+
- [✨ Features](#-features)
36+
- [🚀 How to Add Yourself](#-how-to-add-yourself)
37+
- [Step 1: Fork the Repository](#step-1-fork-the-repository)
38+
- [Step 2: Clone Your Fork and Set Up Upstream](#step-2-clone-your-fork-and-set-up-upstream)
39+
- [Step 3: Create a Feature Branch](#step-3-create-a-feature-branch)
40+
- [Step 4: Create Your Profile File](#step-4-create-your-profile-file)
41+
- [Step 5: Fill In Your Details](#step-5-fill-in-your-details)
42+
- [Step 6: Test Locally (Optional but Recommended)](#step-6-test-locally-optional-but-recommended)
43+
- [Step 7: Commit Your Changes](#step-7-commit-your-changes)
44+
- [Step 8: Create a Pull Request](#step-8-create-a-pull-request)
45+
- [Step 9: Wait for Review ⏳](#step-9-wait-for-review-)
46+
- [📝 YAML File Format](#-yaml-file-format)
47+
- [Required Fields](#required-fields)
48+
- [Optional Fields](#optional-fields)
49+
- [Field Guidelines](#field-guidelines)
50+
- [📚 Real Examples](#-real-examples)
51+
- [💻 Local Development (Optional)](#-local-development-optional)
52+
- [Prerequisites](#prerequisites)
53+
- [Installation](#installation)
54+
- [Build Commands](#build-commands)
55+
- [Quality Checks with prek](#quality-checks-with-prek)
56+
- [Project Structure](#project-structure)
57+
- [🤝 Contribution Guidelines](#-contribution-guidelines)
58+
- [Code of Conduct](#code-of-conduct)
59+
- [PR Review Process](#pr-review-process)
60+
- [What Gets Approved?](#what-gets-approved)
61+
- [CI/CD Checks](#cicd-checks)
62+
- [🔧 Troubleshooting & FAQ](#-troubleshooting--faq)
63+
- [Common Issues](#common-issues)
64+
- [❌ Build Fails: "Invalid YAML"](#-build-fails-invalid-yaml)
65+
- [❌ "GitHub username not found"](#-github-username-not-found)
66+
- [❌ My profile doesn't show up](#-my-profile-doesnt-show-up)
67+
- [❌ prek hooks fail](#-prek-hooks-fail)
68+
- [FAQ](#faq)
69+
- [🔀 Git Workflow & Keeping in Sync](#-git-workflow--keeping-in-sync)
70+
- [The Golden Rules](#the-golden-rules)
71+
- [🛠️ Essential Git Commands for Contributors](#-essential-git-commands-for-contributors)
72+
- [1. `git remote` — Manage your remote connections](#1-git-remote--manage-your-remote-connections)
73+
- [2. `git fetch` — Download changes without merging](#2-git-fetch--download-changes-without-merging)
74+
- [3. `git pull` — Fetch and integrate in one step](#3-git-pull--fetch-and-integrate-in-one-step)
75+
- [4. `git checkout -b` — Create and switch to a feature branch](#4-git-checkout--b--create-and-switch-to-a-feature-branch)
76+
- [5. `git rebase` — Replay your commits on top of the latest upstream](#5-git-rebase--replay-your-commits-on-top-of-the-latest-upstream)
77+
- [6. `git stash` — Save work-in-progress without committing](#6-git-stash--save-work-in-progress-without-committing)
78+
- [7. `git log` — Explore commit history](#7-git-log--explore-commit-history)
79+
- [🔄 Full Day-to-Day Sync Workflow](#-full-day-to-day-sync-workflow)
80+
- [🖥️ Contributing with GitHub CLI](#-contributing-with-github-cli)
81+
- [Step 1: Fork the Repository](#step-1-fork-the-repository-1)
82+
- [Step 2: Create a Feature Branch](#step-2-create-a-feature-branch)
83+
- [Step 3: Create Your Profile File](#step-3-create-your-profile-file)
84+
- [Step 4: Test Locally (Optional but Recommended)](#step-4-test-locally-optional-but-recommended)
85+
- [Step 5: Commit and Push](#step-5-commit-and-push)
86+
- [Step 6: Open a Pull Request with `gh`](#step-6-open-a-pull-request-with-gh)
87+
- [Step 7: Monitor CI and Respond to Feedback](#step-7-monitor-ci-and-respond-to-feedback)
88+
- [📄 License](#-license)
89+
- [What this means](#what-this-means)
90+
- [🙏 Acknowledgments](#-acknowledgments)
91+
- [📞 Contact & Support](#-contact--support)
92+
93+
<!-- END doctoc -->
3794

3895
---
3996

0 commit comments

Comments
 (0)