Skip to content

chore: folder and slug instructions on readme#333

Open
dhananjay6561 wants to merge 7 commits intokeploy:mainfrom
dhananjay6561:readme-structure
Open

chore: folder and slug instructions on readme#333
dhananjay6561 wants to merge 7 commits intokeploy:mainfrom
dhananjay6561:readme-structure

Conversation

@dhananjay6561
Copy link
Copy Markdown
Member

PR Description: Comprehensive README Revamp

Overview

This PR provides a complete overhaul of the project's root README.md. The objective was to transform the documentation from a generic setup guide into a developer-friendly, technically documented resource that accurately reflects the current state of the Keploy blog website.

Previous Issues

  • Generic Content: Documentation lacked specific details about the blog's architecture and feature set.
  • Unverified Tech Stack: Listed technologies were not cross-checked against the actual codebase.
  • Incomplete Site Map: Dynamic routes, API endpoints, and navigation structures were not documented.
  • Poor Organization: Setup instructions were buried under less critical information.

Key Changes & Improvements

1. Technical Audit & Verification

  • Tech Stack Table: Conducted a full audit of package.json and source code. Every library (GSAP, Framer Motion, React Spring, Radix UI, etc.) is now listed with its specific use case and primary file locations.
  • Removed Redundancy: Removed unreferenced libraries (e.g., highlight.js) to ensure documentation accuracy.

2. Deep Site Mapping

  • Pages Table: Documented 12 core routes with URL patterns and live examples (e.g., https://keploy.io/blog/tag/a2a).
  • API Documentation: Detailed 5 server-side endpoints with descriptions of their functionality (Search, Preview, Proxying).
  • Navigation Hierarchy: Documented the complex mega-menu structure and Resources dropdown, mapping internal segments to external ecosystem links.

3. Structural Reorganization

  • Configuration-First: Moved Prerequisites, Setup, and Environment variables to the top for immediate dev accessibility.
  • Annotated Project Structure: Added a detailed directory tree with annotations for core components and library logic.

4. Qualitative Enhancements

  • Added a "What is this?" section highlighting the Next.js (SSG + ISR) architecture.
  • Included Contributing guidelines and Deployment details (Vercel + CloudFront proxying).
  • Fixed typos and improved formatting for better readability.

Technical Details

  • Architecture: Next.js 18 (Pages Router)
  • Data Source: Headless WordPress (WPGraphQL)
  • Deployment: Vercel + AWS CloudFront (Base path: /blog)

Verification

  • Cross-verified all cited files and component paths.
  • Validated URL patterns against pages/ directory structure.

Copilot AI review requested due to automatic review settings February 24, 2026 12:15
Comment thread README.md Outdated
@kilo-code-bot
Copy link
Copy Markdown

kilo-code-bot bot commented Feb 24, 2026

Code Review Summary

Status: 4 Issues Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 4
SUGGESTION 0
Issue Details (click to expand)

WARNING

File Line Issue
README.md 12 Next.js version badge says "18" but actual version is 14.0.1 (from previous review)
README.md 169 Tech Stack table also states "Next.js 18" - should be "Next.js 14"
README.md 259 References lighthouse_comment.yml which no longer exists
README.md 289 Extra blank line before License section (minor formatting)
Files Reviewed (1 file)
  • README.md - 4 issues (comprehensive documentation rewrite)

Notes

This PR rewrites the README.md with comprehensive documentation. After the branch was merged with main, some documentation now references files that were deleted (like lighthouse_comment.yml).

The Next.js version is stated as 18 in two places but the actual locked version is 14.0.1.

Fix these issues in Kilo Cloud


Reviewed by claude-4.5-opus-20251124 · 1,036,830 tokens

@dhananjay6561
Copy link
Copy Markdown
Member Author

Hi @amaan-bhati , kindly review the PR.

@amaan-bhati amaan-bhati mentioned this pull request Feb 24, 2026
@amaan-bhati amaan-bhati changed the title Comprehensive README Revamp chore: folder and slug instructions on readme Feb 24, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR transforms the README.md from a basic WordPress + Next.js setup guide into a comprehensive technical documentation resource. The new README provides detailed information about the blog's architecture, tech stack, site structure, and deployment configuration, making it significantly more useful for developers working on the project.

Changes:

  • Complete restructuring with improved organization: prerequisites and setup moved to the top, followed by detailed site mapping, tech stack documentation, and project structure
  • Added extensive site map documentation covering 12 pages, 5 API routes, and navbar structure with live URL examples
  • Created comprehensive tech stack table with 20+ technologies, their specific use cases, and file locations
  • Enhanced with visual elements (logo, badges) and better markdown formatting throughout

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md
Comment thread README.md Outdated
Comment thread README.md Outdated
@amaan-bhati amaan-bhati self-requested a review February 24, 2026 12:21
Copy link
Copy Markdown
Member

@amaan-bhati amaan-bhati left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @dhananjay6561 Please fix the type of server, rest all looks good to me

Signed-off-by: Dhananjay Aggarwal <133662894+dhananjay6561@users.noreply.github.com>
Signed-off-by: Dhananjay Aggarwal <133662894+dhananjay6561@users.noreply.github.com>
@dhananjay6561
Copy link
Copy Markdown
Member Author

Hi @amaan-bhati implented all the suggestions as suggested by Copilot

Comment thread README.md
- Click the **Upload Plugin** button at the top of the page and upload the WPGraphQL plugin.
- Once the plugin has been added, activate it from either the **Activate Plugin** button displayed after uploading or from the **Plugins** page.
<p align="center">
<a href="https://nextjs.org"><img src="https://img.shields.io/badge/Next.js-18-black?logo=next.js" alt="Next.js"/></a>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like this says "nextjs 18", it should be so, there is no nextjs 18 version released by vercel yet, we are still on 16 lol

Image

Comment thread README.md

| Layer | Technology | Used In |
|---|---|---|
| **Framework** | Next.js 18 (Pages Router, SSG + ISR) | Entire app |
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WARNING: Incorrect Next.js version

The Tech Stack table states "Next.js 18" but the actual version in package-lock.json is 14.0.1. This should be updated to reflect the correct version.

Suggested change
| **Framework** | Next.js 18 (Pages Router, SSG + ISR) | Entire app |
| **Framework** | Next.js 14 (Pages Router, SSG + ISR) | Entire app |

Comment thread README.md
│ ├── workflows/
│ │ ├── build.yml # CI build verification
│ │ ├── lighthouse_runner.yml # Lighthouse audits runner
│ │ └── lighthouse_comment.yml # Posts Lighthouse results to PRs
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WARNING: References non-existent file

The file lighthouse_comment.yml no longer exists in the repository (it was deleted in the main branch). This line should be removed from the Project Structure documentation to avoid confusion.

@dhananjay6561 dhananjay6561 requested a review from Copilot April 6, 2026 12:06
@dhananjay6561
Copy link
Copy Markdown
Member Author

Hey @dhananjay6561 👋 — thanks for putting this PR together, we appreciate the effort!

We've gone ahead and requested a Copilot review on this. Here's some context from the reviewer:

Good README rewrite. Next.js version badge says '18' — doesn't exist. Verify versions. Conflicts with own #334 which deletes README.

Once you've had a chance to go through the comments, please address the feedback and resolve the threads — and we'll get this across the line. Feel free to ask if anything's unclear. Happy coding! 💙

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 8 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread README.md
## What is this?

### Step 2. Populate Content
A **Next.js (Pages Router)** blog application that powers the [Keploy Blog](https://keploy.io/blog). Content is authored in a headless **WordPress** instance and fetched at build time via the **WPGraphQL** plugin. The site is statically generated with **Incremental Static Regeneration (ISR)**, revalidating every 10 seconds for near-instant page loads and always-fresh content.
Copy link

Copilot AI Apr 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The README states ISR “revalidating every 10 seconds”, but several pages use revalidate: 60 (e.g., /search, /community/search, /404, author pages). Please adjust this wording to reflect the actual per-page revalidate values (e.g., “10–60s depending on route”).

Suggested change
A **Next.js (Pages Router)** blog application that powers the [Keploy Blog](https://keploy.io/blog). Content is authored in a headless **WordPress** instance and fetched at build time via the **WPGraphQL** plugin. The site is statically generated with **Incremental Static Regeneration (ISR)**, revalidating every 10 seconds for near-instant page loads and always-fresh content.
A **Next.js (Pages Router)** blog application that powers the [Keploy Blog](https://keploy.io/blog). Content is authored in a headless **WordPress** instance and fetched at build time via the **WPGraphQL** plugin. The site is statically generated with **Incremental Static Regeneration (ISR)**, revalidating every 10–60 seconds depending on the route for near-instant page loads and fresh content.

Copilot uses AI. Check for mistakes.
Comment thread README.md
### Prerequisites

> **Note:** Only **published** posts and public fields will be rendered by the app
- **Node.js** ≥ 18
Copy link

Copilot AI Apr 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prerequisite “Node.js ≥ 18” is slightly too broad for the current Next.js version: next@14.0.1 requires Node >=18.17.0. Consider updating the documented minimum Node.js version to avoid install/runtime failures on early 18.x releases.

Suggested change
- **Node.js** ≥ 18
- **Node.js** ≥ 18.17.0

Copilot uses AI. Check for mistakes.
Comment thread README.md
Comment on lines +30 to 45
- **Node.js** ≥ 18
- **npm** or **yarn**
- A WordPress instance with the [WPGraphQL](https://www.wpgraphql.com/) plugin installed and activated

### Step 3. Clone the repository
### 1. Clone the repo

```bash
git clone https://github.com/keploy/blog-website.git
cd blog-website
```

### Step 4. Install dependencies
### 2. Install dependencies

```bash
npm install

# or

yarn install
```
Copy link

Copilot AI Apr 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Prereqs say “npm or yarn”, but the setup commands only show npm equivalents now. Either add the yarn commands back or remove yarn from prerequisites to keep instructions consistent.

Copilot uses AI. Check for mistakes.
Comment thread README.md
4. Push to your fork: `git push origin feat/my-change`
5. Open a Pull Request — the PR template will guide you

The CI pipeline will automatically run a build check and Lighthouse audits on your PR.
Copy link

Copilot AI Apr 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line says Lighthouse audits run on PRs, but the Lighthouse workflow ignores **/*.md changes (paths-ignore). Consider clarifying that Lighthouse runs for code changes, not docs-only PRs.

Suggested change
The CI pipeline will automatically run a build check and Lighthouse audits on your PR.
The CI pipeline will automatically run a build check on your PR, and Lighthouse audits for code changes (not docs-only PRs).

Copilot uses AI. Check for mistakes.
Comment thread README.md

| S.No | Route | Live URL | File Location | Description |
|------|-------|----------|---------------|-------------|
| 1 | `/api/search-all` | `keploy.io/blog/api/search-all` | `pages/api/search-all.ts` | Server-side full-text search across all posts, returns JSON |
Copy link

Copilot AI Apr 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/api/search-all is described as “server-side full-text search”, but the handler just fetches and returns all community + technology posts (no query parameter / search). Please update the description to match actual behavior (e.g., “returns all posts for client-side filtering”).

Suggested change
| 1 | `/api/search-all` | `keploy.io/blog/api/search-all` | `pages/api/search-all.ts` | Server-side full-text search across all posts, returns JSON |
| 1 | `/api/search-all` | `keploy.io/blog/api/search-all` | `pages/api/search-all.ts` | Returns all community and technology posts as JSON for client-side filtering |

Copilot uses AI. Check for mistakes.
Comment thread README.md
| 4 | **Community Listing** | [keploy.io/blog/community](https://keploy.io/blog/community) | `pages/community/index.tsx` | Featured hero post + paginated grid of all community category posts with infinite scroll |
| 5 | **Community Post** | [keploy.io/blog/community/\[slug\]](https://keploy.io/blog/community/) | `pages/community/[slug].tsx` | Individual community blog post — same layout as technology posts (TOC, code blocks, related posts, etc.) |
| | | _Example:_ [keploy.io/blog/community/state-transition-testing](https://keploy.io/blog/community/state-transition-testing) | | |
| 6 | **Community Search** | [keploy.io/blog/community/search](https://keploy.io/blog/community/search) | `pages/community/search.tsx` | Full-text search scoped to community posts only |
Copy link

Copilot AI Apr 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The “Community Search” page is described as “Full-text search”, but the implementation filters posts client-side via includes() on title/excerpt. Consider rephrasing to “client-side substring search over title + excerpt” (or similar) to avoid overstating capabilities.

Suggested change
| 6 | **Community Search** | [keploy.io/blog/community/search](https://keploy.io/blog/community/search) | `pages/community/search.tsx` | Full-text search scoped to community posts only |
| 6 | **Community Search** | [keploy.io/blog/community/search](https://keploy.io/blog/community/search) | `pages/community/search.tsx` | Client-side substring search over title + excerpt for community posts only |

Copilot uses AI. Check for mistakes.
Comment thread README.md
| 9 | **Tags Listing** | [keploy.io/blog/tag](https://keploy.io/blog/tag) | `pages/tag/index.tsx` | All tags displayed as cards with category-specific icons |
| 10 | **Tag Posts** | [keploy.io/blog/tag/\[slug\]](https://keploy.io/blog/tag/) | `pages/tag/[slug].tsx` | All posts filtered by a specific tag |
| | | _Example:_ [keploy.io/blog/tag/a2a](https://keploy.io/blog/tag/a2a) | | |
| 11 | **Global Search** | [keploy.io/blog/search](https://keploy.io/blog/search) | `pages/search.tsx` | Full-text search across all posts (technology + community) |
Copy link

Copilot AI Apr 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The “Global Search” page is described as “Full-text search across all posts”, but the implementation does client-side filtering over a pre-fetched list rather than a server-side full-text search. Please tweak this description to match actual behavior.

Suggested change
| 11 | **Global Search** | [keploy.io/blog/search](https://keploy.io/blog/search) | `pages/search.tsx` | Full-text search across all posts (technology + community) |
| 11 | **Global Search** | [keploy.io/blog/search](https://keploy.io/blog/search) | `pages/search.tsx` | Client-side search/filter across pre-fetched posts (technology + community) |

Copilot uses AI. Check for mistakes.
Comment thread README.md
Comment on lines +165 to +178
## Tech Stack

| Layer | Technology | Used In |
|---|---|---|
| **Framework** | Next.js 18 (Pages Router, SSG + ISR) | Entire app |
| **Language** | TypeScript 4.7 | Entire app |
| **Styling** | Tailwind CSS 3 | All components |
| **Animations** | Framer Motion | `layout.tsx`, `PageLoader.tsx` (page transitions, loading) |
| **Animations** | GSAP | `subscribe-newsletter.tsx` (bunny animation) |
| **Animations** | React Spring | `header.tsx`, `post-preview.tsx`, `post-card.tsx`, slug pages (scroll-based spring animations) |
| **CMS** | WordPress + WPGraphQL | `lib/api.ts` (all data fetching) |
| **Code Highlighting** | Prism.js | `prism-loader.tsx` (syntax highlighting in blog posts) |
| **Code Editor** | CodeMirror + Dracula theme | `json-diff-viewer.tsx` (interactive code comparison) |
| **JSON Diffing** | json-diff-kit | `json-diff-viewer.tsx`, `post-body.tsx` |
Copy link

Copilot AI Apr 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR description mentions “Removed unreferenced libraries (e.g., highlight.js)”, but this PR only changes README and highlight.js is still present in package.json. Either update the PR description to reflect the actual scope, or include the dependency removal in the PR if that was intended.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants