CoreDocs

Cut the core anywhere.

A layer is a kind of page, and the five always sit in the same order. Pick one to see what it holds, a sample page, and the template it starts from.

120 to 260 m

Reference

API and config reference

Exact and complete: every endpoint and every config key, each with a request and a response.

docs/reference/refunds.mddated f3b21c7 today

POST/v1/refunds

Refunds a charge, in full or in part. The money goes back to the original payment method.

Parameters

charge
string, required. The charge to refund.
amount
integer, optional. Cents. Defaults to the full charge.
reason
string, optional. Shown on the receipt.

Request

curl https://api.harbor.dev/v1/refunds \
  -H "Authorization: Bearer $HARBOR_KEY" \
  -d charge=ch_8Kq2Vd \
  -d amount=1250

Response, 201

{
  "id": "re_3Lw9Xa",
  "charge": "ch_8Kq2Vd",
  "amount": 1250,
  "status": "pending"
}

A sample reference entry. Harbor is a made-up company.

Starts from a template

API documentation template

  1. Overview
  2. Authentication
  3. Quickstart
  4. Errors
  5. Pagination
  6. Rate limits

and 3 more sections

Use this template

Every page carries a date.

A page is dated when someone checks it against a commit. When the code moves on and the page does not, it becomes a fossil: a stale page, marked in ochre until a person looks at it.

Push a commit

9/9

pages dated

0

fossils (stale)

depthlayerpagedated against
012 m

Quickstart

start/quickstart.md

a41c9e2 checked

030 m

Install the CLI

start/install-cli.md

a41c9e2 checked

064 m

Issue a refund

guides/issue-a-refund.md

b6e02d4 checked

096 m

Rotate an API key

guides/rotate-api-key.md

b6e02d4 checked

168 m

POST /v1/refunds

reference/refunds.md

e19f3aa checked

232 m

Configuration

reference/configuration.md

e19f3aa checked

284 m

ADR 0014: Job claims

decisions/0014-job-claims.md

2e8b7f0 checked

344 m

Queue backlog

runbooks/queue-backlog.md

a41c9e2 checked

380 m

Expired token alerts

runbooks/expired-tokens.md

b6e02d4 checked

A page lists the files it describes. One flag per page, however many commits land.

Find the gaps.

Recovery is coverage: the share of your code that has a page. A module with no page shows up as lost core, drawn as a crossed blank, so nobody has to guess what is missing.

67%

recovery: 8 of 12 modules have a page

payments/refunds.ts

no page exports createRefund, listRefunds

  • has a page
  • gap: code with no page
  • draft, not reviewed yet

Drill to the answer.

Search and Ask go straight down to the layer that holds the answer, and show the page it came from. Try a question.

How do I rotate an API key?

Create the new key first and deploy it, then revoke the old one. Both keys work during the overlap, so nothing goes down.

Rotate an API key

Guides / 072 m / guides/rotate-api-key.md

Pay for editors. Readers are free.

Every plan has unlimited readers and unlimited pages. Prices are in US dollars.

Free

One team trying it on one repository.

$0up to 3 editors
  • 1 space, all five layers
  • Markdown import and export
  • Search across every page
  • The five page templates
Start free

TeamMost teams pick this

Most teams with several repositories.

$11per editor, per monthbilled yearly
  • Unlimited spaces and repositories
  • Stale-page detection on every commit
  • Coverage report with draft pages
  • Ask the docs, 1,000 questions a month
  • Private spaces and your own domain
Start free

Business

Larger organisations with audits to pass.

$24per editor, per monthbilled yearly
  • Everything in Team
  • SSO with SAML, and SCIM
  • Access rules per space and group
  • Audit log export
  • Ask the docs without a cap
Talk to us

Team starts with a 14-day trial and no card. Open source projects get Team at no cost.

What a dev lead asks first.

Eight short answers. Anything else, write to us below.

Which Git hosts does it work with?

GitHub, GitLab and Bitbucket on every plan. Self-managed GitLab and GitHub Enterprise Server are part of Business. CoreDocs reads the repository on each push and never writes to your default branch: edits made in the editor arrive as a pull request.

Can we bring our existing Markdown?

Yes. Point CoreDocs at a folder of Markdown or MDX files. Front matter, relative links and images are kept. Each file lands in the layer its path suggests (a file under runbooks/ becomes a runbook) and you can move it afterwards.

Can a space be private?

On Team, a space can be private to the members of your workspace. On Business you can also limit a space to named groups, for example on-call runbooks that only the platform team can read.

How does it know a page is stale?

Every page lists the files it describes. You add them by hand, or accept the ones CoreDocs suggests from the code the page links to. When a commit changes one of those files after the page was last dated, the page is flagged once and its owner gets one review request, however many commits follow.

Can we host it ourselves?

No. CoreDocs is a hosted service and we do not ship a self-hosted version. What you keep is the content: it stays in your repositories as plain Markdown, so it works without us.

How do we get our docs out?

Export any space, or all of them, as Markdown with front matter and the original folder layout. Export is on every plan, including Free, and it does not need a support ticket.

Do you support single sign-on?

SAML single sign-on and SCIM provisioning are part of Business. On Free and Team, people sign in with an email address and a password.

What happens if we downgrade?

Nothing is deleted. Published pages stay readable. Editors above the new plan's limit become readers, and private spaces turn read-only until you make them public or move back up.

Ask a person.

Tell us how many repositories you have and where the docs live today. An engineer replies within one business day.

Hours
Monday to Friday, 9:00 to 18:00 Eastern
CoreDocs Inc.
41 Madison Avenue, Floor 31
New York, NY 10010