Skip to content

docs/hostnames: Normalize placeholder hostnames to *.example.com - #1932

Draft
marcleblanc2 wants to merge 3 commits into
mainfrom
marc/docs/normalize-example-hostnames
Draft

docs/hostnames: Normalize placeholder hostnames to *.example.com#1932
marcleblanc2 wants to merge 3 commits into
mainfrom
marc/docs/normalize-example-hostnames

Conversation

@marcleblanc2

Copy link
Copy Markdown
Contributor

Summary

The docs used ~20 different spellings for "your Sourcegraph instance" and a handful of inconsistent code-host placeholders. This PR standardizes them:

  • Sourcegraph instance → sourcegraph.example.com (already the incumbent at ~150 uses). Replaces your-sourcegraph-instance.com (25), sourcegraph.company.com/.io, sourcegraph.yourcompany.com, sourcegraph.yourdomain.com, sourcegraph.your-domain.com, sourcegraph.your_instance_name.com, sourcegraph.mycompany.com, myinstance/yourinstance/yourdomain/example.sourcegraph.com, sourcegraph.test:3443, src.acme.com, and URL-position placeholders (https://<YOUR-SOURCEGRAPH-INSTANCE-URL>, <Sourcegraph URL>/.api, <sourcegraph-host>.com, $your_sourcegraph_url, SRC_ENDPOINT="YOUR_SOURCEGRAPH_URL").
  • Code hosts / infra → <service>.example.com: my-{gitlab,bitbucket,phabricator}.example.com, bitbucketserver.example.com, your-bbs-instance.example.combitbucket.example.com, github-enterprise.example.comgithub.example.com, smtp-server.example.comsmtp.example.com, *.internal.company.net*.internal.example.com, and an internal bitbucket.sgdev.org repo reference in a batch-changes example.
  • Generic infra placeholders → <service>.example.com: grafana.mycompany.com, prometheus.mycompany.com, psql1/psql2.mycompany.org, redis.mycompany.org, sourcegraph-pgbouncer.mycompany.com, sourcegraph-codeintel-pgbouncer.mycompany.com, pgsql.database.company.com, myregistry.company.com, and dig acme.com caadig example.com caa.
  • Cloud custom-domain walkthrough: src.acme.comsourcegraph.example.com, acme.sourcegraphcloud.comexample.sourcegraphcloud.com (matching the # e.g. example.sourcegraphcloud.com comments elsewhere in the cloud docs).
  • OneLogin SAML page: mycompany.onelogin.comexample.onelogin.com, with the "replace mycompany" instruction updated to match.

Deliberately left alone

  • Auto-generated SCHEMA_SYNC blocks (src.example.com, my-*.example.com, artifactory.acme.com, swarm.company.com in JSON schema descriptions) — those must change upstream in sourcegraph/sourcegraph.
  • docs/technical-changelog.mdx (historical record).
  • localhost:3080 in local-install guides (genuinely local access, not a placeholder).
  • Non-URL prose placeholders such as <sourcegraph-instance>/campaigns/* and <INSTANCE_URL> (cloud, paired with example.sourcegraphcloud.com).
  • Generic git.example.com/code.example.com.

~100 line changes across 40 files; pure text substitution, no structural edits.

Amp threads


Replaces #1876 (branch renamed to marc/docs/normalize-example-hostnames).

marcleblanc2 and others added 3 commits September 8, 2026 01:28
Standardize on sourcegraph.example.com for "your Sourcegraph instance"
(replacing your-sourcegraph-instance.com, sourcegraph.company.com,
sourcegraph.your*.com, *.sourcegraph.com placeholders, sourcegraph.test:3443,
src.acme.com, and URL-style angle-bracket placeholders), and on
<service>.example.com for code hosts and infra (my-*.example.com,
bitbucketserver/your-bbs-instance, github-enterprise, smtp-server,
*.company.net, bitbucket.sgdev.org).

Auto-generated SCHEMA_SYNC blocks and the technical changelog are left
untouched; the schema descriptions must be fixed upstream.

Co-authored-by: Amp <amp@ampcode.com>
Amp-Thread-ID: https://ampcode.com/threads/T-01a07e6a-e26f-753a-8486-cd5b81a79672
… *.example.com

Postgres, PgBouncer, Redis, Grafana, Prometheus, registry, and external
pgsql example hosts, plus the CAA dig example in the Cloud docs.

Amp-Thread-ID: https://ampcode.com/threads/T-01a07e6a-e26f-753a-8486-cd5b81a79672
Co-authored-by: Amp <amp@ampcode.com>
@vercel

vercel Bot commented Sep 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sourcegraph-docs Error Error Sep 11, 2026 5:25pm UTC

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

No description provided.

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.

1 participant