Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
218 commits
Select commit Hold shift + click to select a range
ea1b320
update aws diagrams (#1617)
michaellzc Feb 19, 2026
bc10774
Remove OneLogin warning from 2018 (#1621)
pjlast Feb 19, 2026
66b686b
chore/release: kustomize deprecate warning (#1624)
DaedalusG Feb 19, 2026
4460f0b
chore/release: k3s and AMI sunset notice (#1623)
DaedalusG Feb 19, 2026
662758a
chore/release: sunset notice (#1612)
DaedalusG Feb 19, 2026
8a2b56d
pure docker deprecation notice (#1602)
DaedalusG Feb 19, 2026
d4324f7
chore/release: sunset notice PG12 -> PG16 upgrader (#1622)
DaedalusG Feb 19, 2026
cde2003
docs: update scip-go docs (#1606)
trly Feb 20, 2026
2a03b71
Update own documentation (#1620)
fkling Feb 22, 2026
fca97c1
entitlements: add reference page (#1632)
bobheadxi Feb 22, 2026
d15856d
executors: document KUBERNETES_JOB_HOST_NETWORK option for executors …
burmudar Feb 24, 2026
58e876b
mcp: add doc for deepsearch tool (#1634)
burmudar Feb 24, 2026
87a5005
add docs page explaining how to manage feature flags with the graphql…
ggilmore Feb 24, 2026
9b2a1a4
fix: change sub tag for callout in deploy executors page (#1636)
enriquegh Feb 24, 2026
8388821
Change 'On-premises' to 'Single-container' in deployment docs (#1640)
bobheadxi Feb 25, 2026
d0b701f
🤖 Sync generated docs from sourcegraph/sourcegraph (2026-02-25/13-48-…
sourcegraph-buildkite Feb 25, 2026
23ba7ce
api: prune GraphQL docs, add warnings, add new API (#1631)
bobheadxi Feb 25, 2026
f315571
docs: move latest version to 7.0 (#1641)
enriquegh Feb 25, 2026
be71dfb
update MCP docs for 7.0 GA release (#1558)
keegancsmith Feb 25, 2026
109e190
deepsearch: bring back legacy API page (#1642)
bobheadxi Feb 26, 2026
02df049
sourcegraph 7.0: link to changelog (#1643)
bobheadxi Feb 26, 2026
09f3a94
navigation: point APIs to /api, not GraphQL (#1647)
bobheadxi Feb 26, 2026
b7e3c58
Add missing OAuth scopes to Slack integration docs (#1649)
julialeex Feb 26, 2026
9f2fc37
fix: update suggested scopes for gitlab with batch changes (#1652)
bahrmichael Feb 27, 2026
fe8f994
🤖 Sync generated docs from sourcegraph/sourcegraph (2026-02-27/21-45-…
sourcegraph-buildkite Feb 27, 2026
72e6a9f
🤖 Sync generated docs from sourcegraph/sourcegraph (2026-02-28/00-57-…
sourcegraph-buildkite Feb 28, 2026
a4cd496
telemetry: add a bit more detail about telemetry data (#1657)
bobheadxi Feb 28, 2026
6dda090
Add missing im:write to Slack integration docs (#1660)
julialeex Mar 2, 2026
529d604
feat/externalapi: Add API migration guide (#1644)
julialeex Mar 2, 2026
c74eb6f
fix/externalapi: fix the heading level problem and add example prompt…
julialeex Mar 2, 2026
e9da41a
docs: add additional scopes to oauth (#1663)
enriquegh Mar 3, 2026
fcd9bfe
docs: add Windsurf MCP setup (#1665)
jdorfman Mar 3, 2026
0f018cd
🤖 Sync generated docs from sourcegraph/sourcegraph (2026-03-02/17-40-…
sourcegraph-buildkite Mar 3, 2026
ab33b82
revamp docker compose aws docs (#1619)
michaellzc Mar 3, 2026
7b928f4
fix: update broken link (#1668)
michaellzc Mar 3, 2026
89e6a46
fix/externalapi: update the migration guide (#1667)
julialeex Mar 4, 2026
dd2d514
Update Sourcegraph Analytics docs with refresh cadence and current da…
akalia25 Mar 5, 2026
6c576d7
telemetry: add more clarification (#1672)
bobheadxi Mar 6, 2026
33aa196
🤖 Sync generated docs from sourcegraph/sourcegraph (2026-03-06/20-59-…
sourcegraph-buildkite Mar 6, 2026
a7e7fba
chore(deep search): document move of config settings to top-level (#1…
stefanhengl Mar 9, 2026
643064c
chore: remove notebooks from docs (#1680)
jasonhawkharris Mar 10, 2026
bde1c77
chore/platform: deepsearch networking requirements (#1677)
DaedalusG Mar 10, 2026
df5b6d0
chore/release: add deprecation notices about sboms in the 7.1.x relea…
DaedalusG Mar 13, 2026
db789f5
fix: Add redirect links for all code hosts, not just ones with unders…
pjlast Mar 13, 2026
047028c
added spacing to bullets code host github page - section Github API a…
eugenio-sanchez-sg Mar 17, 2026
e727894
src-cli: update cli docs for src cli OAuth (#1681)
burmudar Mar 18, 2026
e7efddb
deep-search: example of deepsearch_read (#1691)
keegancsmith Mar 18, 2026
1690fa4
src-cli: add documentation for src auth token (#1693)
burmudar Mar 18, 2026
b83028e
Update code navigation features docs (#1695)
jupblb Mar 19, 2026
6a9f509
jaeger docs update (#1698)
DaedalusG Mar 19, 2026
14ea7fb
docs(batch-changes): clarify default-branch behavior for repositories…
bahrmichael Mar 20, 2026
0125779
remove amp from SLA doc as well as mention of 24x7 SLA (#1705)
enriquegh Mar 20, 2026
3655d5e
telemetry: document eventsQueuedForExport (#1699)
bobheadxi Mar 20, 2026
96978a1
mcp: simplify MCP documentation (#1712)
trly Mar 25, 2026
0b7cfb6
chore: remove mention of TA in analytics instructions (#1700)
enriquegh Mar 25, 2026
5729c50
Fix markdown table formatting in incoming webhooks doc (#1713)
BolajiOlajide Mar 26, 2026
44721cf
Remove $USER parameter from user settings URL examples (#1715)
gabtorre Mar 26, 2026
a5d80e5
Batch changes: add link to tracking existing changesets and improve s…
gabtorre Mar 27, 2026
f04687a
Hardcode sitemap base URL to sourcegraph.com/docs (#1718)
taras-yemets Mar 27, 2026
8284674
Update configuring-credentials: add OAuth support, auth method matrix…
gabtorre Mar 30, 2026
2f783b6
feat: Add query assist page (#1725)
janhartman Mar 30, 2026
1880852
nav: pass over for sentence casing (#1690)
bobheadxi Mar 30, 2026
6cd46c2
remove most pricing content, redirect to https://sourcegraph.com/pric…
bobheadxi Mar 30, 2026
4f49443
🤖 Sync generated docs from sourcegraph/sourcegraph (2026-03-30/11-57-…
sourcegraph-buildkite Mar 30, 2026
32b853a
mcp: document RBAC and mcp.enabled (#1714)
keegancsmith Mar 31, 2026
71bb3f7
customer-facing beta and experimental policy (#1726)
bobheadxi Mar 31, 2026
f81d05e
make 7.1 latest version release (#1728)
enriquegh Mar 31, 2026
46404c4
docs: remove Enterprise Starter from Slack integration support (#1731)
eseliger Mar 31, 2026
0f3f2c0
Remove beta tag from RBAC access control page (#1737)
BolajiOlajide Apr 2, 2026
483062f
chore: remove experimental notice from commit signing docs (#1738)
bahrmichael Apr 2, 2026
b753c18
docs(api): add webhooks link to API overview (#1739)
bobheadxi Apr 2, 2026
9b03cf7
docs: fix access token config to show correct nested JSON structure (…
gabtorre Apr 6, 2026
f4743f2
remove endpoint command line and expand on SRC_ENDPOINT and SRC_ACCES…
peterguy Apr 7, 2026
9da3f39
Move 5.x releases to legacy section (#1743)
eseliger Apr 10, 2026
139064a
Update azuredevops.mdx (#1746)
mibali Apr 10, 2026
d2e61aa
Enhance SCIM setup instructions for Okta (#1744)
natehessler Apr 10, 2026
6726105
docs: add clarification between oauth apps and M2M credentials (#1745)
enriquegh Apr 14, 2026
e13b126
Fix batch changes system configuration keys (#1723)
qaisjp Apr 15, 2026
c01204c
Replace PRECISE_CODE_INTEL_UPLOAD_TTL with CODEINTEL_UPLOADSTORE_EXPI…
marcleblanc2 Apr 16, 2026
e7ca4c4
docs: update batch changes video to new logo version (#1750)
jdorfman Apr 16, 2026
41bc9d4
fix: make completions config less prominent and favor modelConfigurat…
enriquegh Apr 16, 2026
b2bee7c
🤖 Sync generated docs from sourcegraph/sourcegraph (#1740)
sourcegraph-buildkite Apr 17, 2026
82be31e
fix: Refer to MCP client integrations from MCP page (#1753)
enriquegh Apr 17, 2026
bf6db2f
docs: update Batch Changes credentials to reflect GitHub OAuth suppor…
BolajiOlajide Apr 20, 2026
84b0c0d
revise admin consultation note for Experimental features (#1756)
bobheadxi Apr 20, 2026
c743ae4
update stale feature flag reference (#1758)
bahrmichael Apr 22, 2026
f817ea4
add smart hover docs (#1757)
emidoots Apr 22, 2026
32ce22f
object-storage: add new 'sourcegraph' bucket (#1747)
bobheadxi Apr 24, 2026
6b8ae42
docs: mention search contexts in Deep Search (#1759)
stefanhengl Apr 24, 2026
b8d663a
🤖 Sync generated docs from sourcegraph/sourcegraph (#1752)
sourcegraph-buildkite Apr 27, 2026
67546e6
docs/batch-changes: add Bitbucket Server and Cloud OAuth credential d…
BolajiOlajide Apr 27, 2026
2334ecd
docs/cloud: clarify private network support via Private Connectivity …
michaellzc Apr 28, 2026
19c29b5
Update DS docs after evaluator release (#1762)
janhartman Apr 28, 2026
cae145b
fix settings for temporarily disabling code host requests (#1763)
gabtorre Apr 29, 2026
f0da511
Mermaid: zoom/pan in expanded diagrams + state cleanup (#1765)
taras-yemets Apr 30, 2026
27b97ca
batch-changes: update bitbucket cloud api token docs (#1768)
keegancsmith May 6, 2026
d2fa014
Add evaluator to MCP tools list, document missing endpoint (#1769)
janhartman May 8, 2026
fccceac
fix(batch-changes): repair broken permissions table (#1770)
eugenio-sanchez-sg May 11, 2026
72ee1a5
Update docs latest version to 7.3 (#1773)
enriquegh May 19, 2026
3d62750
docs: add smart hover summaries to entitlements (#1772)
bobheadxi May 19, 2026
38c5db0
docs: document batch_changes:read permission (#1775)
gabtorre May 20, 2026
4efc14c
chore/platform: deprecate pure docker deployment (#1777)
DaedalusG May 22, 2026
5bd5343
feat/docs: document user:create outgoing webhook event (#1771)
federubinstein May 26, 2026
46fa973
docs: add beta warnings for Kubernetes native executor deployment opt…
DaedalusG Jun 5, 2026
85de55c
beta-and-experimental: relax credits terminology (#1776)
bobheadxi Jun 7, 2026
d890741
update refresh cadence (#1780)
akalia25 Jun 9, 2026
6c842cc
docs: reframe k8s docker-in-docker executors around threat model (#1781)
michaellzc Jun 10, 2026
92b2068
Update docs latest version to 7.4 (#1782)
enriquegh Jun 11, 2026
d811ba1
docs: remove experimental notice for Sourcegraph Connect (#1784)
michaellzc Jun 15, 2026
00c1232
docs: clarify MCP tool availability by endpoint (#1783)
enriquegh Jun 16, 2026
0baf73a
🤖 Sync generated docs from sourcegraph/sourcegraph (#1764)
sourcegraph-buildkite Jun 16, 2026
ddb6608
docs: document Codex MCP setup and invalid_scope workaround (#1786)
bahrmichael Jun 17, 2026
e552275
Add documentation for `credits` API endpoint (#1767)
akalia25 Jun 17, 2026
a7077aa
🤖 Sync generated docs from sourcegraph/sourcegraph (#1787)
sourcegraph-buildkite Jun 17, 2026
c96660e
executors binary deploy type docs cleanup (#1789)
DaedalusG Jun 19, 2026
27a5f44
chore/executors: executors dind deploy docs improvements (#1792)
DaedalusG Jun 23, 2026
e1381d0
chore/executors: executors binary offline docs cleanup (#1791)
DaedalusG Jun 25, 2026
cfd2da5
Update MCP tool reference layout (#1793)
gabtorre Jun 25, 2026
e81db3c
Show pointer cursor on details summaries (#1794)
gabtorre Jun 25, 2026
1d547c5
docs: update MCP tool parameter docs (#1795)
gabtorre Jun 26, 2026
546355b
docs: clarify AWS PrivateLink firewall requirements (#1796)
eugenio-sanchez-sg Jun 29, 2026
df30816
abc: initial docs (#1798)
bobheadxi Jun 30, 2026
21b8905
abc: capability docs (#1799)
bobheadxi Jun 30, 2026
ee86e9f
docs/batches: document grouped changeset titles (#1797)
keegancsmith Jul 1, 2026
a422320
docs: mark smart hover summaries as GA and document credit usage (#1800)
stefanhengl Jul 1, 2026
04d0c3f
docs: remove Join our Community section from homepage (#1801)
jdorfman Jul 2, 2026
4320a3f
🤖 Sync generated docs from sourcegraph/sourcegraph (#1788)
sourcegraph-buildkite Jul 2, 2026
f47bf45
Add docs version publishing skill (#1774)
enriquegh Jul 2, 2026
2a79ffe
docs/agentic-batch-changes: link to Batch Changes configuration (#1802)
bobheadxi Jul 6, 2026
09cf741
fix: typos and dead link in native k8s executor docs (#1805)
DaedalusG Jul 6, 2026
f584b3c
🤖 Sync generated docs from sourcegraph/sourcegraph (#1803)
sourcegraph-buildkite Jul 6, 2026
24a5d38
feat/docs: mention coding agent provider configuration (#1808)
federubinstein Jul 7, 2026
3fcc7fd
remove sourcegraph server (#1807)
DaedalusG Jul 7, 2026
0d0f868
terraform module docs cleanup (#1809)
DaedalusG Jul 8, 2026
9e83dad
[Don't merge] chore: remove Google Analytics and consent tracking (#1…
jdorfman Jul 8, 2026
937d21e
chore/executors: explicit upgrade procedures for dind and k8s-native …
DaedalusG Jul 9, 2026
96c7016
chore/executors: docker-compose executors upgrade procedure (#1812)
DaedalusG Jul 10, 2026
bb37421
document gotchas from testing (#1813)
DaedalusG Jul 10, 2026
b99fe83
Update docs latest version to 7.5 (#1814)
enriquegh Jul 10, 2026
616ca04
chore/docs: link Sourcegraph Model Provider (#1810)
federubinstein Jul 13, 2026
10710d1
mcp: make static OAuth client setup discoverable (#1815)
keegancsmith Jul 14, 2026
41ed29b
docs/executors: AWS nested virtualization on non-metal instances (#1816)
michaellzc Jul 14, 2026
9fd6fca
Remove AMI and Kustomize from deployment overview (#1819)
DaedalusG Jul 17, 2026
f7be4f6
mcp: Add Code Finder and MCP tool blocklist (#1821)
janhartman Jul 21, 2026
19921e2
docs/executors: remove outdated k8s-native same-node requirement (#1820)
michaellzc Jul 21, 2026
3e4f90e
Update supported OpenAI models (#1822)
peterguy Jul 21, 2026
82cfae1
docs: note coding agent step MCP and code access (#1823)
bahrmichael Jul 22, 2026
b58be29
docs: reorganize executor administration and deployment guidance (#1818)
DaedalusG Jul 22, 2026
99c95c7
mcp: Improve client integrations page (#1825)
janhartman Jul 27, 2026
8abd9e6
Add supported countries page (#1827)
eseliger Jul 30, 2026
57034f9
docs/observability: add Microsoft Teams alert notifier (#1829)
taras-yemets Jul 31, 2026
c92394b
Add beta badge to Code Finder MCP (#1830)
janhartman Jul 31, 2026
aeadee4
deepsearch: add evaluator docs (#1826)
kalanchan Jul 31, 2026
2e9ce6f
Document Deep Search agent customization (#1828)
keegancsmith Aug 3, 2026
00cea1f
🤖 Sync generated docs from sourcegraph/sourcegraph (#1806)
sourcegraph-buildkite Aug 6, 2026
2595aef
Update docs latest version to 7.6 (#1831)
DaedalusG Aug 6, 2026
270999b
Update credits and billing notice (#1833)
eseliger Aug 7, 2026
5899425
docs: remove outdated entitlement types (#1834)
eseliger Aug 7, 2026
4541370
Drop support for GitHub Enterprise Server versions below 3.2 (#1835)
bahrmichael Aug 13, 2026
e3d5890
docs: add Diff Tour page (#1836)
stefanhengl Aug 14, 2026
16caf97
Drop support for GitHub Enterprise Server versions 3.3 and below (#1837)
bahrmichael Aug 17, 2026
50c6e93
Remove Code Finder MCP beta badge (#1838)
janhartman Aug 20, 2026
3499c08
Document changes to nls_search availability on default MCP endpoint (…
janhartman Aug 21, 2026
2b49f2d
feat/deepsearch: Add documentation for context filters (#1840)
julialeex Aug 24, 2026
ba8d393
🤖 Sync generated docs from sourcegraph/sourcegraph (#1832)
sourcegraph-buildkite Aug 25, 2026
a543b1d
docs: Simplify inner-loop Agentic Batch Changes coding agent docs (#1…
bobheadxi Aug 26, 2026
1163d8c
docs: document RBAC credit usage controls (#1843)
bobheadxi Aug 26, 2026
4049388
docs/docs: Fix notice style overrides example (#1844)
taras-yemets Aug 27, 2026
c21a8a5
Update docs latest version to 7.7 (#1845)
aditiabhang Aug 27, 2026
aa45ca1
docs: document API integration usage headers (#1846)
bobheadxi Aug 27, 2026
94c634c
docs: document Code Finder revision parameter (#1848)
kalanchan Aug 31, 2026
7611c48
Keep version selectors current across legacy docs (#1847)
HawkSE Aug 31, 2026
f0b9ec3
Use local Sourcegraph mark asset (#1850)
eseliger Sep 1, 2026
64ce578
fix/docs: Fix spelling errors across the documentation (#1852)
marcleblanc2 Sep 4, 2026
3d7ccf8
docs: update Kubernetes object storage guidance (#1862)
eseliger Sep 7, 2026
ea221dd
Add syntactic Code Intel to object storage consumers (#1863)
eseliger Sep 7, 2026
8cee851
Amp Orb setup (#1856)
marcleblanc2 Sep 7, 2026
87c078d
Remove dead `permanent` key from redirect entries (#1857)
marcleblanc2 Sep 7, 2026
5c98c6f
fix/docs: fix spelling errors (#1855)
marcleblanc2 Sep 7, 2026
c1dd40e
executors: document the batches-hooks queue (#1854)
bobheadxi Sep 8, 2026
18ce461
🤖 Sync generated docs from sourcegraph/sourcegraph (#1842)
sourcegraph-buildkite Sep 8, 2026
e1dc366
docs: document list_refs MCP tool (#1894)
kalanchan Sep 9, 2026
c85fbb3
fix/site: Return HTTP 404 instead of 200 for unknown pages (#1860)
marcleblanc2 Sep 9, 2026
e5c8190
Fix broken heading links (25 mechanical drifts) (#1864)
marcleblanc2 Sep 10, 2026
f978a9f
fix/site: Fix broken tables of contents (#1859)
marcleblanc2 Sep 10, 2026
51cc1a0
chore/spelling: Recommend Code Spell Checker VS Code extension (#1882)
marcleblanc2 Sep 10, 2026
ce76558
fix/dev: Fix Orb setup to avoid false cold-start failure (#1877)
marcleblanc2 Sep 11, 2026
8399e47
fix/links: Fix broken link markup (5 lines) (#1867)
marcleblanc2 Sep 11, 2026
41d10ad
docs/self-hosted: fix typo in Kubernetes troubleshooting page (#1891)
marcleblanc2 Sep 11, 2026
8df616f
ci/dev: Add direct links to changed pages in Vercel previews (#1874)
marcleblanc2 Sep 11, 2026
ff52e71
fix/site: Search results link to current instance (#1875)
marcleblanc2 Sep 11, 2026
3da026f
feat/site: Add navigation links on 404 page (#1887)
marcleblanc2 Sep 11, 2026
0e0feac
docs/observability: Remove stale log15 examples (#1884)
marcleblanc2 Sep 11, 2026
01c1baa
ci/links: Add PR check for broken links (#1858)
marcleblanc2 Sep 11, 2026
aa22ff4
fix/links: Replace absolute self-links with relative links (67 links)…
marcleblanc2 Sep 11, 2026
3a62b13
chore: Remove unused dependencies and bump vulnerable packages (#1898)
marcleblanc2 Sep 11, 2026
c89ef41
ci/spelling: Add spelling PR check (#1853)
marcleblanc2 Sep 11, 2026
9be5abc
fix/spelling: Fix remaining spelling errors found in CSpell dictionar…
marcleblanc2 Sep 11, 2026
62afa37
docs/migrator: Update schema-drift page with current migrator output …
marcleblanc2 Sep 11, 2026
2f8832a
docs/cli: Remove doc pages for removed src-cli commands (#1886)
marcleblanc2 Sep 11, 2026
b6a21bb
docs/cli: Add missing doc pages for src-cli commands (#1889)
marcleblanc2 Sep 11, 2026
b31fbaa
cspell: drop resolved allow-list entries, allow words that escaped th…
marcleblanc2 Sep 11, 2026
ac3dc45
Pin pnpm 10.25.0 and Node 20.x in package.json (#1906)
marcleblanc2 Sep 11, 2026
5ff2322
Remove duplicated docs build check executions (#1908)
marcleblanc2 Sep 11, 2026
3b6a4f8
CSpell review: leave no orphaned review body once findings are fixed …
marcleblanc2 Sep 11, 2026
fdb8323
spell check: link summary items to the source, shorten them, flag uns…
marcleblanc2 Sep 11, 2026
d94b460
Stop bundling the docs corpus into the client JS (24 MB chunk) (#1915)
marcleblanc2 Sep 11, 2026
d05265c
fix/site: Strip basePath from 404 page referrer link (#1902)
marcleblanc2 Sep 11, 2026
c73a861
chore: upgrade docs build to Node 24 (#1922)
enriquegh Sep 11, 2026
f2a5d02
check-links: one suggestion per fix, synced with findings; one fact p…
marcleblanc2 Sep 11, 2026
b3bd177
ci/vercel: Skip preview builds for PRs that only touch non-site files…
marcleblanc2 Sep 11, 2026
bfd1e61
site: Redirect / to /docs on production deployments (#1955)
marcleblanc2 Sep 11, 2026
4c8fdd6
ci: Comment the Vercel build log on PRs whose build fails (#1946)
marcleblanc2 Sep 12, 2026
f0addc6
🤖 Sync generated docs from sourcegraph/sourcegraph (#1883)
sourcegraph-buildkite Sep 14, 2026
ab14b15
docs: prepare Agentic Batch Changes documentation for GA (#1958)
danielmarquespt Sep 14, 2026
d3ee437
ci: Attach Vercel build logs to Slack post on failures (#1956)
marcleblanc2 Sep 14, 2026
1104286
Fix formatting in resume file
carrascomalany42-lgtm Sep 14, 2026
befd5a5
Merge branch 'SEC-3728-admin-passkey-docs' into patch-1
carrascomalany42-lgtm Sep 15, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 9 additions & 0 deletions .agents/resume
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash
# Runs on every orb wake. Nothing to authenticate or reconnect; just confirm the
# toolchain from .agents/setup still resolves so a broken snapshot fails loudly.
set -euo pipefail

repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
eval "$("$HOME/.local/bin/mise" -C "$repo_root" env -s bash)"
node --version
pnpm --version
46 changes: 46 additions & 0 deletions .agents/setup
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#!/usr/bin/env bash
# Prepares a fresh Amp orb: the Node and pnpm versions pinned in .tool-versions,
# then the pnpm dependencies. Idempotent: Amp reruns it on stale snapshots.
set -euo pipefail

repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$repo_root"

step() { printf '\n==> %s (%s)\n' "$1" "$(date +%T)"; }

mise_bin="$HOME/.local/bin/mise"
step "Install mise"
if [ ! -x "$mise_bin" ]; then
curl -fsSL https://mise.run | sh
fi

step "Install pinned toolchain from .tool-versions"
"$mise_bin" install --yes
# The installer cannot change this running script's environment.
eval "$("$mise_bin" env -s bash)"

step "Expose the toolchain to login shells"
profile_marker="# sourcegraph/docs: pinned Node and pnpm from mise"
if ! grep -Fqx "$profile_marker" "$HOME/.bash_profile" 2>/dev/null; then
cat >>"$HOME/.bash_profile" <<EOF

$profile_marker
[ -d "$repo_root" ] && eval "\$("$mise_bin" -C "$repo_root" env -s bash)"
EOF
fi

step "Install dependencies"
# CI=true: without a TTY, pnpm otherwise aborts if a stale snapshot's
# node_modules was built by a different pnpm version and must be recreated.
CI=true pnpm install --frozen-lockfile

step "Write orb agent guidance"
mkdir -p "$HOME/.config/amp"
cat >"$HOME/.config/amp/AGENTS.md" <<'EOF'
# Inside the Orb

- Node and pnpm come from mise (`.tool-versions`); `.agents/setup` puts them on PATH for login shells. Use `pnpm`, not `npm`.
- Dev server: `amp orb services ensure` starts `pnpm dev` from `.amp/services.yaml` and returns a portal link.
EOF

step "Done: node $(node --version), pnpm $(pnpm --version)"
142 changes: 142 additions & 0 deletions .agents/skills/publishing-docs-versions/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
---
name: publishing-docs-versions
description: "Archives Sourcegraph docs release branches and updates latest-version metadata. Use when a new Sourcegraph docs version is released, when creating docs legacy branches, or when updating DOCS_LATEST_VERSION and previous-version lists."
---

# Publishing Sourcegraph Docs Versions

Use this skill for the Sourcegraph docs repo release-version workflow: cutting legacy branches in the `legacy` remote and updating `origin` so the newest version becomes `latest`.

## Repository conventions

- Remotes:
- `origin` = `sourcegraph/docs`
- `legacy` = `sourcegraph/docs-legacy-versions`
- 7.x legacy branches use underscores: `v7_0`, `v7_1`, `v7_2`, etc.
- Legacy branches are pushed directly to the `legacy` remote.
- `origin/main` is protected; direct pushes are rejected. Make a branch on `origin` and open a PR.
- The files that control latest/previous versions are:
- `docs.config.js`
- `src/data/versions.ts`
- `docs/legacy.mdx`
- `src/data/versions.ts` on `origin/main` is the canonical dropdown list. The
current site exposes it through `/docs/api/versions`, and legacy selectors
load that manifest at runtime.
- A legacy branch's bundled `src/data/versions.ts` is only a fallback. Its first
entry identifies the archived site and must not have the `latest` label.

## Standard workflow for a new release

For a new release `X.Y`:

1. Archive the previous docs version `P.Q` in the `legacy` remote.
2. Ensure the legacy branch’s own config says it is version `P.Q`, marks it as
selected rather than latest, and lists older fallback versions only.
3. Update `origin` so `X.Y` is latest and `P.Q` appears as a previous version.

Example: when 7.4 is released, archive 7.3 as `legacy/v7_3`, then update `origin` with `DOCS_LATEST_VERSION: '7.4'` and add 7.3 to previous-version lists.

## Finding the cut point for a legacy branch

Always inspect history instead of guessing:

```bash
git fetch --all --prune
git log --date=short --pretty=format:'%h %ad %s' origin/main --since='<release date - 1 week>' --until='<release date + 2 weeks>' --reverse
git for-each-ref refs/remotes/legacy --format='%(refname:short) %(objectname:short) %(committerdate:short) %(subject)' | sort -V | tail -50
```

Pick the commit the user considers the correct snapshot for the previous version. If the user gives a release date but not a commit, use the repo’s existing pattern:

- Choose a hand-picked `origin/main` commit near the release cut.
- Prefer the last relevant docs commit on the release date when obvious.
- If no version-bump commit exists yet and the user wants the just-current docs archived, use the current `origin/main` tip.

For reference, recent historical decisions:

- `legacy/v7_0` was cut from `a5d80e5e` and then got empty no-op marker commits.
- `legacy/v7_1` was cut from `6b8ae421` for the Apr 24 release-date snapshot.
- `legacy/v7_2` was cut from `fccceac6`, then updated with a version metadata commit.

## Creating and pushing the legacy branch

Create the branch from the selected cut commit, add an empty marker commit, and push to `legacy`:

```bash
git switch --detach <cut-commit>
git switch -c vX_Y
git commit --allow-empty -m "Branch for docs version X.Y"
git push -u legacy vX_Y
```

Then update the legacy branch so it identifies itself as `X.Y` and lists only
older fallback versions. The runtime manifest supplies the current canonical
list when the current docs site is available.

For `v7_3`, for example:

- `docs.config.js`: `DOCS_LATEST_VERSION: '7.3'`
- `src/data/versions.ts`: first entry identifies `v7.3` without a `latest`
label; fallback entries should include `v7.2`, `v7.1`, `v7.0`, then 6.x.
- `docs/legacy.mdx`: `Sourcegraph 7.X` should include `7.2`, `7.1`, `7.0` (not 7.3 itself).

Commit and push:

```bash
git add docs.config.js src/data/versions.ts docs/legacy.mdx
git commit -m "Update docs latest version to X.Y"
git push legacy vX_Y
```

## Updating origin for the newly released version

Work on a branch from `origin/main`:

```bash
git switch main
git pull --ff-only origin main
git switch -c eg-update-docs-to-X-Y
```

Apply the same version metadata pattern, but for the new latest version.

For `7.4`, for example:

- `docs.config.js`: `DOCS_LATEST_VERSION: '7.4'`
- `src/data/versions.ts`: add previous versions in descending order: `v7.3`, `v7.2`, `v7.1`, `v7.0`, then 6.x.
- `docs/legacy.mdx`: add/update `Sourcegraph 7.X` with `7.3`, `7.2`, `7.1`, `7.0`.

Commit, push the branch, and open a PR:

```bash
git add docs.config.js src/data/versions.ts docs/legacy.mdx
git commit -m "Update docs latest version to X.Y"
git push -u origin eg-update-docs-to-X-Y
gh pr create --base main --head eg-update-docs-to-X-Y --title "Update docs latest version to X.Y" --body "## Summary
- Set DOCS_LATEST_VERSION to X.Y
- Add previous 7.x versions to the version selector
- Update the legacy versions page

## Test plan
- Not run (config/navigation content change only)"
```

## Verification

Use lightweight verification for this content/config change:

```bash
git diff -- docs.config.js src/data/versions.ts docs/legacy.mdx
git status --short --branch
git ls-remote --heads legacy 'v7_*'
```

Confirm:

- The legacy branch points to the pushed commit.
- The legacy branch identifies itself without claiming to be latest and lists
only older fallback versions.
- The origin PR branch sets the new latest version and includes the archived version in previous-version lists.
- The current manifest lists the new latest version first, and its URL points to
`https://sourcegraph.com/docs`.
- Return the local workspace to clean `main` unless the user asked to stay on a release branch.
10 changes: 10 additions & 0 deletions .amp/services.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
services:
docs:
command: pnpm dev --hostname 0.0.0.0
port: 31420
env:
NODE_OPTIONS: --max-old-space-size=3072
health: /agentic-batch-changes
portal:
url: /agentic-batch-changes
title: Sourcegraph Docs
110 changes: 110 additions & 0 deletions .github/workflows/check-links.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
name: Check links

# Reports internal links and #anchors that this PR breaks, compared with the
# merge base, absolute links to this site, and external links on added lines
# that 404. Pre-existing broken links on the base branch are ignored.

on:
pull_request:

# A new push supersedes the run for the previous one
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true

permissions:
contents: read
pull-requests: write

jobs:
check-links:
name: Broken links introduced by this PR
runs-on: ubuntu-latest
steps:
- name: Check out pull request head
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0

- name: Install github-slugger, the only dependency of dev/check-links.mjs
# Into a scratch prefix, not the repo: `npm install <pkg>` next to
# package.json would install every dependency of the site
run: |
npm install --prefix "$RUNNER_TEMP/deps" --no-package-lock --no-audit --no-fund \
"github-slugger@$(node -p 'require("./package.json").dependencies["github-slugger"]')"
ln -s "$RUNNER_TEMP/deps/node_modules" node_modules

- name: Check out merge base
env:
BASE_SHA: ${{ github.event.pull_request.base.sha }}
run: |
merge_base=$(git merge-base "$BASE_SHA" HEAD)
git worktree add "$RUNNER_TEMP/base" "$merge_base"
git diff -U0 "$merge_base" HEAD > "$RUNNER_TEMP/changes.diff"

- name: Record broken links already present on the base branch
# Exit 1 means findings, which is expected here
run: |
node dev/check-links.mjs --check-anchors --check-self-links --format json \
--root "$RUNNER_TEMP/base" > "$RUNNER_TEMP/base-links.json" \
|| [ $? -eq 1 ]

- name: Find broken links introduced by this PR
id: check
env:
# File links in the report open the file on the PR branch
LINK_BASE: ${{ github.event.pull_request.head.repo.html_url }}/blob/${{ github.event.pull_request.head.ref }}
run: |
if node dev/check-links.mjs --check-anchors --check-self-links --check-external --format markdown \
--baseline "$RUNNER_TEMP/base-links.json" \
--diff "$RUNNER_TEMP/changes.diff" \
--review "$RUNNER_TEMP/review.json" \
--link-base "$LINK_BASE" > "$RUNNER_TEMP/report.md"; then
echo "broken=false" >> "$GITHUB_OUTPUT"
else
echo "broken=true" >> "$GITHUB_OUTPUT"
fi
cat "$RUNNER_TEMP/report.md"

- name: Comment on the pull request
# Fork PRs get a read-only token; the report is still in the job log
if: github.event.pull_request.head.repo.full_name == github.repository
env:
GH_TOKEN: ${{ github.token }}
PR_NUMBER: ${{ github.event.pull_request.number }}
BROKEN: ${{ steps.check.outputs.broken }}
run: |
marker='<!-- check-links-report -->'
existing_comment=$(gh api "repos/$GITHUB_REPOSITORY/issues/$PR_NUMBER/comments" \
--paginate --jq ".[] | select(.body | startswith(\"$marker\")) | .id" | head -n 1)

# Comment only when there is something to report, or an earlier report to resolve
if [ "$BROKEN" = true ]; then
{ echo "$marker"; cat "$RUNNER_TEMP/report.md"; } > "$RUNNER_TEMP/comment.md"
elif [ -n "$existing_comment" ]; then
printf '%s\n### ✅ The broken links an earlier revision of this PR introduced are fixed\n' \
"$marker" > "$RUNNER_TEMP/comment.md"
else
exit 0
fi

if [ -n "$existing_comment" ]; then
gh api --method PATCH "repos/$GITHUB_REPOSITORY/issues/comments/$existing_comment" \
--field body=@"$RUNNER_TEMP/comment.md"
else
gh pr comment "$PR_NUMBER" --body-file "$RUNNER_TEMP/comment.md"
fi

- name: Suggest fixes as review comments
# One suggested change per finding with a fix, kept in sync with the
# findings; see dev/sync-review-comments.sh
if: github.event.pull_request.head.repo.full_name == github.repository
env:
GH_TOKEN: ${{ github.token }}
PR_NUMBER: ${{ github.event.pull_request.number }}
run: dev/sync-review-comments.sh '<!-- check-links-finding:' "$RUNNER_TEMP/review.json"

- name: Fail when this PR introduces broken links
if: steps.check.outputs.broken == 'true'
run: exit 1
Loading