Skip to content

Commit 2f8e9e9

Browse files
next-devincursoragentkilo-code-bot[bot]
authored
Reframe docs repo for public AI-agent reference clones (#11)
* Reframe docs repo for public AI-agent reference clones. Clarify that the public repo exists for local agent reference, not outside contributions. Add AGENTS.md and LICENSE, team-only maintenance docs, CI, changelog URL repairs, and remove the internal readiness audit artifact. Co-authored-by: Cursor <cursoragent@cursor.com> * Fix changelog URL repair script issues from code review. Remove duplicated hash fragments, preserve spaces when collapsing nested double-links, and normalize docs paths missing the /docs/ prefix. Co-authored-by: Cursor <cursoragent@cursor.com> * Update content/changelog/2023-08-30-storefront-campaigns-fulfillment-orders.mdx Co-authored-by: kilo-code-bot[bot] <240665456+kilo-code-bot[bot]@users.noreply.github.com> * Update content/changelog/2024-05-09-admin-api-payments-campaigns-checkout.mdx Co-authored-by: kilo-code-bot[bot] <240665456+kilo-code-bot[bot]@users.noreply.github.com> * Update content/changelog/2024-05-09-admin-api-payments-campaigns-checkout.mdx Co-authored-by: kilo-code-bot[bot] <240665456+kilo-code-bot[bot]@users.noreply.github.com> --------- Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: kilo-code-bot[bot] <240665456+kilo-code-bot[bot]@users.noreply.github.com>
1 parent 7f245f8 commit 2f8e9e9

41 files changed

Lines changed: 435 additions & 165 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
push:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: '22'
18+
cache: npm
19+
20+
- run: npm ci
21+
22+
- run: npm audit --omit=dev
23+
24+
- run: npm run build

AGENTS.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Agent Reference Guide
2+
3+
This repository is the **source of truth for Next Commerce user documentation**. It is
4+
public so developers, agencies, and AI agents can clone it locally and reference
5+
accurate product docs while building on the platform.
6+
7+
## What to read
8+
9+
| Need | Where to look |
10+
|------|----------------|
11+
| Merchant & operator guides (setup, payments, orders, campaigns, apps) | `content/docs/` |
12+
| Published release history | `content/changelog/` |
13+
| Live site (canonical rendered output) | [docs.nextcommerce.com](https://docs.nextcommerce.com) |
14+
| Admin API, Campaigns SDK, webhooks, themes, GraphQL | [developers.nextcommerce.com](https://developers.nextcommerce.com) — separate repo |
15+
16+
Start with `content/docs/index.mdx` and `content/docs/about-next.mdx` for platform
17+
overview, then follow the section structure under `content/docs/`.
18+
19+
## What to ignore
20+
21+
Unless you are maintaining the docs site itself, skip:
22+
23+
- `app/`, `components/`, `lib/` — Next.js/Fumadocs site implementation
24+
- `scripts/changelog-migration/` — historical one-time migration tooling (deprecated)
25+
- `redirects/` — legacy changelog redirect worker
26+
- `docs/MAINTENANCE.md` — internal team publishing notes
27+
28+
## Conventions
29+
30+
- User docs paths use the `/docs/...` URL prefix on the live site (e.g.
31+
`/docs/features/payments/google-pay`).
32+
- Link to Developer Docs for API, SDK, webhook, and theme implementation details
33+
rather than duplicating them here.
34+
- Prefer current paths under `/docs/start-here/get-started/` (not legacy
35+
`get-started-on-29-next` URLs found in older changelog entries).
36+
37+
## Maintenance
38+
39+
This repository is maintained by the NEXT team only. External pull requests are
40+
not accepted. See `README.md` and `docs/MAINTENANCE.md`.

CONTRIBUTING.md

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
11
# Contributing
22

3-
Thanks for helping improve Next Commerce Docs.
3+
This repository is **maintained by the NEXT team only**. External contributions
4+
are not accepted.
45

5-
## Content guidelines
6+
## Why this repo is public
67

7-
- Write for merchants, agencies, developers, and operators who are using the platform.
8-
- Keep instructions specific and task-oriented.
9-
- Link to [Developer Docs](https://developers.nextcommerce.com) for API, SDK, webhook, and theme implementation details.
10-
- Do not include customer data, private merchant examples, credentials, account screenshots, internal tickets, or private GitHub links.
11-
- Prefer public product names and stable public URLs.
8+
The repository is public so developers and AI agents can clone it locally and
9+
reference Next Commerce user documentation while building on the platform. See
10+
[`AGENTS.md`](AGENTS.md) for agent-oriented guidance.
1211

13-
## Pull requests
12+
## Content standards
1413

15-
1. Create a branch from `main`.
16-
2. Make the smallest focused change that solves the documentation issue.
17-
3. Run `npm run build`.
18-
4. Open a pull request with a short summary and any relevant screenshots for visual changes.
14+
When editing docs as a team member:
1915

20-
For changelog entries, follow `content/changelog.README.md`.
16+
- Write for merchants, agencies, developers, and operators using the platform.
17+
- Link to [Developer Docs](https://developers.nextcommerce.com) for API, SDK,
18+
webhook, and theme implementation details.
19+
- Do not include customer data, credentials, internal tickets, or private GitHub links.
2120

22-
## Security and sensitive content
21+
Team workflow and publishing details: [`docs/MAINTENANCE.md`](docs/MAINTENANCE.md).
2322

24-
Do not report security vulnerabilities or leaked sensitive content in a public issue. Follow `SECURITY.md` instead.
23+
## Security
24+
25+
Do not report security vulnerabilities or leaked sensitive content in a public
26+
issue. Follow [`SECURITY.md`](SECURITY.md) instead.

LICENSE

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Copyright (c) Next Commerce
2+
3+
All rights reserved.
4+
5+
You may clone this repository and use its documentation content locally as a
6+
reference while building on the Next Commerce platform, including ingestion by
7+
AI coding agents for that purpose.
8+
9+
Redistribution, modification, or republication of this content outside of local
10+
development reference is not permitted without written permission from Next
11+
Commerce.

PUBLICATION_READINESS.md

Lines changed: 0 additions & 67 deletions
This file was deleted.

README.md

Lines changed: 32 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,27 @@
11
# Next Commerce Docs
22

3-
This repository powers [docs.nextcommerce.com](https://docs.nextcommerce.com), the public user documentation and changelog for the Next Commerce platform.
3+
Public source for [docs.nextcommerce.com](https://docs.nextcommerce.com) — the user
4+
documentation and changelog for the Next Commerce platform.
45

5-
Developer API documentation lives separately at [developers.nextcommerce.com](https://developers.nextcommerce.com).
6+
**Primary audience for this public repo:** developers and AI agents who clone it
7+
locally to reference accurate product docs while building stores, integrations,
8+
and campaigns on Next Commerce. The live site remains the canonical rendered
9+
experience.
10+
11+
API, SDK, webhook, and theme documentation lives separately at
12+
[developers.nextcommerce.com](https://developers.nextcommerce.com).
13+
14+
AI agents: see [`AGENTS.md`](AGENTS.md) for which paths to read and which to skip.
615

716
## What lives here
817

9-
- `content/docs/` contains merchant and operator guides.
10-
- `content/changelog/` contains published changelog entries.
11-
- `app/`, `components/`, and `lib/` contain the Next.js/Fumadocs site.
12-
- `scripts/` contains content validation and historical migration utilities.
13-
- `redirects/` contains the legacy changelog redirect worker.
18+
| Path | Purpose |
19+
|------|---------|
20+
| `content/docs/` | Merchant and operator guides — **main reference surface** |
21+
| `content/changelog/` | Published changelog entries |
22+
| `app/`, `components/`, `lib/` | Next.js/Fumadocs site (maintainers only) |
23+
| `scripts/` | Link validation and legacy migration utilities |
24+
| `redirects/` | Legacy changelog redirect worker |
1425

1526
## Local development
1627

@@ -23,15 +34,15 @@ npm run dev
2334

2435
The local site runs at `http://localhost:3000` by default.
2536

26-
## Validation
37+
## Validation (NEXT team)
2738

28-
Before opening a pull request, run:
39+
Before merging changes to `main`, run:
2940

3041
```sh
3142
npm run build
3243
```
3344

34-
The build also runs the docs link checks:
45+
The build also runs docs link checks:
3546

3647
- `npm run audit-developer-links`
3748
- `npm run validate-links`
@@ -40,17 +51,23 @@ Run `npm audit --omit=dev` when touching dependencies.
4051

4152
## Publishing
4253

43-
The production site is statically exported by Next.js and deployed to Cloudflare Workers assets using `wrangler.jsonc`.
54+
The production site is statically exported by Next.js and deployed to Cloudflare
55+
Workers assets using `wrangler.jsonc`. See [`docs/MAINTENANCE.md`](docs/MAINTENANCE.md)
56+
for team workflow details.
57+
58+
## Contributing
4459

45-
Normal content changes should land through pull requests. Changelog entries should be added as MDX files under `content/changelog/` with frontmatter matching `source.config.ts`.
60+
This repository is **maintained by the NEXT team only**. External contributions
61+
are not accepted. See [`CONTRIBUTING.md`](CONTRIBUTING.md).
4662

47-
## Public Repository Notes
63+
## Public clone safety
4864

49-
This repo is intended to be safe for public cloning by agencies, developers, merchants, and AI agents. Do not commit:
65+
Do not commit:
5066

5167
- customer data, private merchant names, screenshots with account data, or support artifacts
5268
- API keys, `.env` files, tokens, credentials, or private keys
5369
- internal planning docs, private GitHub project exports, or sprint-only engineering notes
5470
- staging-only URLs unless they are part of a documented public workflow
5571

56-
If a change depends on private operational context, keep that context in an internal repository and link only to public, stable documentation here.
72+
If a change depends on private operational context, keep that context in an
73+
internal repository and link only to public, stable documentation here.

SECURITY.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,21 @@
22

33
## Reporting a Vulnerability
44

5-
Do not open a public GitHub issue for vulnerabilities, exposed credentials, private customer data, or other sensitive reports.
5+
Do not open a public GitHub issue for vulnerabilities, exposed credentials,
6+
private customer data, or other sensitive reports.
67

7-
Use GitHub private vulnerability reporting if it is enabled for this repository. If that is unavailable, contact your Next Commerce representative and include:
8+
Use GitHub private vulnerability reporting if it is enabled for this repository.
9+
If that is unavailable, contact your Next Commerce representative and include:
810

911
- the affected page, file, or URL
1012
- what sensitive data or behavior is exposed
1113
- steps to reproduce, if safe to share privately
1214
- whether the issue appears in the live site, the repository, or both
1315

16+
This repository is public for documentation reference (including AI agent
17+
clones). Security reports about the docs content or site are welcome through
18+
the channels above.
19+
1420
## Sensitive Content Rules
1521

1622
This repository should not contain:
@@ -20,4 +26,6 @@ This repository should not contain:
2026
- internal-only sprint notes, private GitHub project exports, or private incident notes
2127
- unpublished security procedures that would increase risk if disclosed
2228

23-
If sensitive content is committed, treat the repository history as exposed once the repository is public. Remove the content, rotate any affected credentials, and review the exposure window before publishing.
29+
If sensitive content is committed, treat the repository history as exposed.
30+
Remove the content, rotate any affected credentials, and review the exposure
31+
window.

content/changelog.README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,11 @@ Standard MDX. Recommended structure:
5151
Use any MDX/fumadocs components — the same `getMDXComponents` map that powers
5252
`/docs` is applied.
5353

54-
## Content Factory integration
54+
## Publishing (NEXT team)
5555

56-
The Factory watches this folder for new files on `main`. When a PR lands that
57-
adds `content/changelog/*.mdx`, the Factory picks up the frontmatter + body and
58-
fans it out to Slack, social, and email. The webhook contract is documented in
59-
`next-mind/designs/content-factory-above-layer1.md` — this migration's only job
60-
was to put entries on a stable git-watchable path.
56+
Add entries as MDX files under `content/changelog/` on `main`. New files are
57+
picked up by internal release automation. See `docs/MAINTENANCE.md` for the
58+
full team workflow.
6159

62-
**Stable path for Factory:** `content/changelog/*.mdx` on the default branch of
63-
`NextCommerceCo/docs`.
60+
Use stable public URLs when linking to docs pages (`https://docs.nextcommerce.com/docs/...`)
61+
and developer docs (`https://developers.nextcommerce.com/docs/...`).

content/changelog/2020-06-29-admin-api-subscriptions-payments-orders.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ summary: Platform update on June 29, 2020.
1616
- Dashboard Redirect Management
1717
- Dashboard Payments Settings
1818
- Dashboard ShipHero Extension Settings
19-
- [Admin API](https://developers.nextcommerce.com/docs/admin-api) now supports creating orders, see[ Admin API Docs](https://api-docs.Next Commerce.com/api/docs/admin/#operation/orders_create). Payment methods on the admin api are currently limited while this API endpoint continues to be developed.
19+
- [Admin API](https://developers.nextcommerce.com/docs/admin-api) now supports creating orders, see[ Admin API Docs](https://api-docs.nextcommerce.com/api/docs/admin/#operation/orders_create). Payment methods on the admin api are currently limited while this API endpoint continues to be developed.
2020
- Subscription renewal decline now includes decline code and description to easily see the failure reason.

content/changelog/2020-12-28-admin-api-payments-checkout-orders.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ summary: Introducing Tax features with the ability to configure Tax Rates and Ta
1919

2020
- Improved support for Stripe Error Codes when payment methods are invalid to map with our Transaction Response codes.
2121
- Added on the API for Address Title fields to support Klarna's Title field so it is prepopulated in the Klarna widget on for improved checkout experience.
22-
- We now have a fallback to send email from [noreply@Next Commerce.com](mailto:noreply@Next Commerce.com) when a store does not have any verified email sending domains or the user has misconfigured the store "FROM" email address using an unverified domain.
22+
- We now have a fallback to send email from [noreply@nextcommerce.com](mailto:noreply@nextcommerce.com) when a store does not have any verified email sending domains or the user has misconfigured the store "FROM" email address using an unverified domain.
2323

2424
## Bug Fixes
2525

0 commit comments

Comments
 (0)