Skip to content

Commit 595eda4

Browse files
test: break links, spelling, and redirects to exercise every PR check (do not merge)
Check links: three absolute self-links (one to a moved page) and a dead external link on one line; a missing page, missing heading, and wrong-case path on the next; and the "Symbol search" heading renamed to break the inbound anchor link from search-based-code-navigation.mdx. Spell check: nine misspellings on one line, five of them block-list words. Check redirects: one broken entry per category (shadowed page, #fragment source, /docs prefix, duplicate source, chain, missing page, missing heading). Co-authored-by: Amp <amp@ampcode.com> Amp-Thread-ID: https://ampcode.com/threads/T-01a08fee-74b4-76dc-aaf9-d1245d68fdc9
1 parent 69dc1a7 commit 595eda4

6 files changed

Lines changed: 34 additions & 5 deletions

File tree

cspell-allow-list.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -598,3 +598,4 @@ YOURUSERNAME
598598
Zaporizhzhia
599599
Zoekt
600600
zoomable
601+
aardvark # test entry for the sorted-list check (will be reverted)

docs/admin/markdown.mdx

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

docs/admin/tls_ssl.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: TLS test page
3+
---
4+
5+
# TLS test page

docs/batch-changes/server-side.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Running batch changes server-side has been tested to run a simple **45K changese
3737

3838
By default, docker on mac will build docker images for `linux/arm64`, which will result in errors when running server-side because executors provide `linux/amd64` hosts. If you're creating your own images to run in batch changes, this can be a problem. Use the `--platform linux/amd64` flag with `docker build` to build images compatible with the server-side host.
3939

40-
## Using file mounts with server-side execution
40+
## Using file mounts with SSBC
4141

4242
<Callout type="note">
4343
Running a batch spec server-side with file mounts is currently only

docs/code-search/features.mdx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Searching over commit messages is supported in Sourcegraph by adding `type:commi
4545

4646
See our [query syntax](/code-search/queries#diff-and-commit-searches-only) documentation for a comprehensive list of supported parameters.
4747

48-
## Symbol search
48+
## Symbol lookup
4949

5050
Searching for symbols makes it easier to find specific functions, variables, and more. Use the `type:symbol` filter to search for symbol results. Symbol results also appear in typeahead suggestions, so you can jump directly to symbols by name. When on an [indexed](/admin/search#indexed-search) commit, it uses Zoekt. Otherwise it uses the [symbols service](/code-search/types/symbol)
5151

@@ -148,3 +148,9 @@ This file picker is useful when comparing branches with thousands of changed fil
148148

149149
- When viewing a file or directory, press the `y` key to expand the URL to its canonical form (with the full 40-character Git commit SHA).
150150
- To share a link to multi-line range in a file, click on the starting line number and shift-click on the ending line number (in the left-hand gutter).
151+
152+
Test links for the check-links workflow (will be reverted): [site config](https://sourcegraph.com/docs/admin/config/site-config), [search](//www.sourcegraph.com/docs/code-search/), [moved page](http://docs.sourcegraph.com/admin/http_https_configuration#sourcegraph-via-docker-compose-caddy-2), [dead external](https://github.com/sourcegraph/docs/blob/main/this-file-does-not-exist.md), [live external](https://github.com/sourcegraph/docs).
153+
154+
More test links, none of which the check can fix for you: [missing page](/code-search/no-such-page), [missing heading](/code-search/features#no-such-heading), [wrong case](/Code-Search/queries).
155+
156+
Test paragraph for the spell check workflow (will be reverted): Sourcegraph indexs every repositry acros your organization, so seach results are alwasy fresh. It keeps compatability with the databse layer, and the exector runs each batch spec in its own contiainer.

src/data/redirects.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
11
import {TECHNICAL_CHANGELOG_RSS_URL} from './constants';
22

33
const redirectsData = [
4+
{
5+
source: "/docs/old-prefixed",
6+
destination: "/code-ownership"
7+
},
8+
{
9+
source: "/old-chain",
10+
destination: "/admin/http_https_configuration"
11+
},
12+
{
13+
source: "/old-ownership",
14+
destination: "/code-ownershp"
15+
},
16+
{
17+
source: "/old-ownership#anchor",
18+
destination: "/code-ownership"
19+
},
420
{
521
source: '/integration/img/disable_extension.png',
622
destination: '/integration/img/disable-extension.png'
@@ -5896,6 +5912,10 @@ const redirectsData = [
58965912
source: '/code-search/how-to/create-search-context-graphql',
58975913
destination: '/api'
58985914
},
5915+
{
5916+
source: "/admin/http_https_configuration",
5917+
destination: "/self-hosted/http-https-configuration"
5918+
}
58995919
];
59005920

59015921
const updatedRedirectsData = redirectsData.map(redirect => {

0 commit comments

Comments
 (0)