Commit Graph

34 Commits

Author SHA1 Message Date
YK
e6ae7d44b2
fix(docs): update quickstart guide links (#64202)
- Update the "getting started" link in the quickstart guide to point to
the correct URL
- Remove the outdated developer help links as they are no longer
relevant

## Test plan

Test the links manually
2024-08-01 16:18:55 -07:00
YK
09bd207693
Update the outdated link to #dev-experience to #discuss-dev-infra (#64018)
## Test plan

Test each link manually.

---------

Co-authored-by: Bolaji Olajide <25608335+BolajiOlajide@users.noreply.github.com>
2024-07-25 06:58:22 -05:00
Erik Seliger
83d0f6876c
dotcom: Remove on-demand cloning of repositories (#63321)
Historically, sourcegraph.com has been the only instance. It was
connected to GitHub.com and GitLab.com only.
Configuration should be as simple as possible, and we wanted everyone to
try it on any repo. So public repos were added on-demand when browsed
from these code hosts.

Since, dotcom is no longer the only instance, and this is a special case
that only exists for sourcegraph.com.
This causes a bunch of additional complexity and various extra code
paths that we don't test well enough today.

We want to make dotcom simpler to understand, so we've made the decision
to disable that feature, and instead we will maintain a list of
repositories that we have on the instance.
We already disallowed several repos half a year ago, by restricting size
of repos with few stars heavily.
This is basically just a continuation of that.

In the diff, you'll mostly find deletions. This PR does not do much
other than removing the code paths that were only enabled in dotcom mode
in the repo syncer, and then removes code that became unused as a result
of that.

## Test plan

Ran a dotcom mode instance locally, it did not behave differently than a
regular instance wrt. repo cloning.
We will need to verify during the rollout that we're not suddenly
hitting code paths that don't scale to the dotcom size.

## Changelog

Dotcom no longer clones repos on demand.
2024-06-26 14:53:14 -07:00
Jean-Hadrien Chabran
85438e62d5
Backport dev docs changes that happened in docsite v2 (#61931)
* backport https://github.com/sourcegraph/docs/pull/216

* backport d1e81d254d

* backprot https://github.com/sourcegraph/docs/pull/158

* backport https://github.com/sourcegraph/docs/pull/135

* backport https://github.com/sourcegraph/docs/pull/150

* backport https://github.com/sourcegraph/docs/pull/138

* backport https://github.com/sourcegraph/docs/pull/115

* backport https://github.com/sourcegraph/docs/pull/123

* backport https://github.com/sourcegraph/docs/pull/118

* fix outgoing links

* backport https://github.com/sourcegraph/docs/pull/51

* backport https://github.com/sourcegraph/docs/pull/26

* backport https://github.com/sourcegraph/docs/pull/23

* Fix broken links
2024-04-16 16:51:00 +02:00
Quinn Slack
69f927e666
refer to sg help instead of auto-generating markdown docs for sg (#58225)
The docs for `sg` can be found in `sg help`, which is more up-to-date and customized to the user's environment than auto-generated Markdown docs. Removing this also simplifies our build and makes it simpler to change `sg` and `sg.config.yaml`.
2023-11-09 23:40:03 -08:00
Quinn Slack
90c6683218
remove gulp (task runner) (#57963)
Removed usage of gulp for running commands. Instead, we just use `package.json` scripts (that mostly invoke `ts-node -T ...`). The purpose of removing gulp is to remove a layer of duplication/indirection between the tasks we need to run and where they are defined.

The code generation tasks (GraphQL operations, CSS modules types, and schema/ JSON Schema types) no longer run in watch mode in local dev. If you make changes that require regeneration of this code, run `pnpm run generate` from the root. This is for simplicity and speed (they would run on many unrelated changes and slow down local dev).
2023-10-29 12:09:50 -07:00
Quinn Slack
de613e92b6
use esbuild for client/web builds (#57365)
Use [esbuild](https://esbuild.github.io/) instead of Webpack for builds of `client/web`, for faster builds (dev and prod) and greater dev-prod parity. This PR completely removes all use of Webpack in this repository.

`client/web` is the last build target that still uses Webpack; all others have been recently migrated to esbuild. Most devs here have been using esbuild for local dev of `client/web` for the last 6-12 months anyway. The change here is that now our production builds will be built by esbuild.

All sg commands, integration/e2e tests, etc., continue to work as-is. The bundlesize report will take a while to stabilize because the new build products use different filenames.

## Benchmarks

Running `pnpm run generate && time pnpm -C client/web run task:gulp webBuild` and taking the `time` output from the last command:

- Webpack: 62.5s
- esbuild: 6.7s

Note: This understates esbuild's victory for 2 reasons: (1) because esbuild is building both the main and embed entrypoints, whereas Webpack only builds the main entrypoint in this benchmark) and (2) because a lot of it is in the fixed startup time of `gulp`; esbuild incremental rebuilds during local dev only take ~1s.

## Notes

We no longer use Babel to produce web builds (we use esbuild), so we don't need any Babel plugins that optimize the output or improve browser compatibility. Right now, Babel is only used by Jest (for tests) and by Bazel as an intermediate step.
2023-10-23 10:59:06 -07:00
Quinn Slack
7984c4abde
rename {webpack => web}.manifest.json (#57449)
This file is produced by both Webpack and esbuild. It is not Webpack-specific.

```
fastmod -e yaml,ts,js,md,tsx WEBPACK_MANIFEST WEB_BUILD_MANIFEST
fastmod -e yaml,ts,js,md,tsx,go webpack.manifest.json web.manifest.json
fastmod -e yaml,ts,js,md,tsx,go webpackManifestPath webBuildManifestPath
fastmod -e yaml,ts,js,md,tsx,go 'webpack manifest' 'web build manifest'
fastmod -e go,ts,tsx webpackManifest webBuildManifest
fastmod -e go,ts,tsx WebpackManifest WebBuildManifest # not all accepted
```
2023-10-07 14:02:41 -10:00
Stefan Hengl
3193c373a8
Revert "name client/web entrypoint bundles after their entrypoint, no… (#57376)
This reverts commit 3a9aff1.

Reverting because locally Sourcegraph wasn't reachable anymore.
2023-10-05 12:08:09 +00:00
Quinn Slack
3a9aff1472
name client/web entrypoint bundles after their entrypoint, not a custom name (#57292)
This removes another source of "names" and also makes it so that client/web can be built by esbuild via Bazel in the future (which does not support renaming entrypoints).
2023-10-05 06:29:34 +00:00
Jean-Hadrien Chabran
bf14a0f1c2
doc: drop sg deprecated docs (#57125) 2023-09-28 11:52:43 +02:00
Kelli Rockwell
894605399d
docs: clean up development docs table of contents (#55175)
While looking up developer docs about a couple things, I felt compelled
to do a bit of cleanup.

We had two docs, `dev/index.md` and
`dev/background-information/index.md`, which featured the same lengthy
table of contents to other subpages. The two lists were meant to be
identical, as was noted by a comment at the top of the latter doc:

```
<!-- Link back any new sections to doc/dev/index.md as well -->
```

But the lists had actually diverged quite a bit, and frankly it just
felt redundant to have the latter doc when it was literally only this
table of contents and nothing else. So I removed the redundant doc,
merged the lists, dropped outdated and duplicative subpage links, and
regrouped a couple sections that only had one or two items listed under
then. The header hierarchy had also gotten messed up in a couple ways
(for example SQL was listed as a subsection of `git` 🤪), so I fixed that
up. This hopefully means both maintaining and browsing the developer
docs will be easier!

I have left a couple comments inline to clarify items that were moved or
removed.

## Test plan

Tested locally, tried to verify most links still worked!

Also verified the ToC hierarchy is corrected:

<img width="366" alt="image"
src="https://github.com/sourcegraph/sourcegraph/assets/8942601/df064955-6c8f-4a40-bfd2-bf493fc0ec40">


<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->
2023-07-20 20:36:50 -07:00
Jean-Hadrien Chabran
e0746e18e5
dev: drop outdated build scripts + minor updates (#53841)
This PR drops all now outdated `build.sh`, `Dockerfile*` from artifacts
entirely built from Bazel. It also updates `sg.config.yaml` to replace
`install` steps that were using them.

## Test plan

<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->

- Ran locally all new sg targets
- CI 
- 🟢 Main-dry-run
https://buildkite.com/sourcegraph/sourcegraph/builds/229439
2023-06-21 18:58:39 +02:00
coury-clark
2885babf00
docs: remove references to the removed OSS version in 5.1 (#53413)
Scrubbing references to the deprecated OSS version from the
documentation. There were a few places it seemed like leaving the
reference made sense, so I annotated with a note it is deprecated.

## Test plan

I started Sourcegraph using sg, that seemed useful to test.

<!-- All pull requests REQUIRE a test plan:
https://docs.sourcegraph.com/dev/background-information/testing_principles
-->

---------

Co-authored-by: Joe Chen <joe@sourcegraph.com>
2023-06-16 09:04:47 -07:00
Dax McDonald
c6dcfe3b6e
add sg start tips for rosetta (#50945) 2023-04-20 17:13:58 -07:00
ErikaRS
2ca437b7a1
Add a step for verifying GitHub SSH key setup (#48780)
## Test plan

1. Use `sg run docsite` and navigate to the quickstart page. 
2. Read the new documentation and click on the added link
2023-03-08 13:05:18 -08:00
David Veszelovszki
68ed0abf80
Docs: Replace hyphens in text with em-dashes (#42367) 2023-01-31 13:18:49 +01:00
Valery Bugakov
304acdb5da
web: migrate from yarn to pnpm (#46143)
Bazel's rules_js rely on the pnpm package manager. To simplify the integration, we're migrating to pnpm from our current package manager — yarn. Another reason to migrate is that pnpm is cool and fast. 😉
2023-01-11 19:50:09 -08:00
Julie Tibshirani
0772911442
Fix missing reference about alternative dev set-up (#45380)
The 'alternative instrucitons' section never seemed to exist, so this reference
can be removed. Also fixes some typos.

Co-authored-by: davejrt <davetry@gmail.com>
2022-12-11 16:47:26 +01:00
Jason Hawk Harris
73258317fd
grammar/readability improvements (#40027) 2022-08-16 05:13:25 -04:00
Indradhanush Gupta
55645419be
doc/dev/setup: Fix typo (#36559) 2022-06-04 00:03:22 +05:30
Robert Lin
d40b6e7298
dev/sg: markdown doc generator (#34307)
Migrates the existing sg usage examples into UsageText, which is used to generate similar docs as before, except now automatically annotated with more details about the command. This centralizes all documentation within sg code, so that consistent help is available both on docs.sourcegraph.com and locally.
2022-05-31 07:56:47 -07:00
Robert Lin
a643cdcfac
doc/dev: feature CI in quickstart, move development to separate page (#34528) 2022-04-26 11:11:19 -07:00
Joe Chen
d04ed54b6e
doc: format edits of troubleshooting (#32994) 2022-03-25 14:08:03 +08:00
Michal Vrtiak
8d48fc0107
Fix link to 'How-tos' in setup docs page (#32654) 2022-03-16 08:56:52 +01:00
Eric Fritz
cf6faf3723
chore: Remove outdated docs (#30786) 2022-02-08 13:31:48 -06:00
Adam Harvey
66bf14f694
doc/dev: add note about Firefox certificate issues on macOS (#30715) 2022-02-04 16:43:36 -08:00
Jean-Hadrien Chabran
96e11c3e51
sg: update jaeger and drop the m1 section (#29815) 2022-01-18 09:27:07 +01:00
Giselle Northy
3b4cbb5649
fix typo (#29129) 2021-12-16 18:05:00 +00:00
Chris Wendt
6ac3c78a2e
docs: Update M1 docs for Puppeteer 12 (#29093) 2021-12-16 08:58:58 +00:00
Chris Wendt
adb630f141
docs: update M1 docs (#29068) 2021-12-15 18:08:41 -07:00
Daniel Dides
e7ab5a441c
Document troubleshooting steps for running sg on WSL2 (#28169)
* sg: document troubleshooting steps for WSL2

* sg: Move WSL troubleshooting

Move the WSL2 troubleshooting document into `setup/troubleshooting`
along with other useful information

* sg: Update wsl doc with permalink
2021-12-15 17:26:47 +00:00
Thorsten Ball
455b78b4c0
Document "too many open files" workaround on M1 with sg (#28289) 2021-11-29 15:41:08 +01:00
Jean-Hadrien Chabran
cb45591275
docs: rework setup instructions (#27959)
Co-authored-by: Thorsten Ball <mrnugget@gmail.com>
2021-11-29 13:45:47 +01:00