Skip to content

Commit

Permalink
Changes in Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
HazAT committed Nov 22, 2023
1 parent 26c1b79 commit 09979f1
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 20 deletions.
2 changes: 1 addition & 1 deletion packages/astro/src/snippets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function serializeEnvelope(envelope) {
for (const item of items) {
const [itemHeaders, payload] = item;
parts.push('\n' + JSON.stringify(itemHeaders)+ '\n');
parts.push('\\n' + JSON.stringify(itemHeaders)+ '\\n');
parts.push(JSON.stringify(payload));
}
Expand Down
4 changes: 4 additions & 0 deletions packages/website/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ export default defineConfig({
label: 'Write an integration',
link: '/guides/integration/',
},
{
label: 'How to make a Release',
link: '/guides/release/',
},
],
},
{
Expand Down
2 changes: 1 addition & 1 deletion packages/website/src/components/AstroShowcase.astro
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
<img class="icon" src="/images/dev-tools-audit.svg"/>
</button>
<button type="button">
<img class="icon" src="/images/dev-tools-sentry.svg"/>
<img class="icon" src="/images/glyph.svg"/>
</button>
<button type="button" disabled>
<img class="icon" src="/images/dev-tools-settings.svg"/>
Expand Down
18 changes: 0 additions & 18 deletions packages/website/src/content/docs/error.tsx

This file was deleted.

41 changes: 41 additions & 0 deletions packages/website/src/content/docs/guides/release.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
title: Contributing
description: How to make a release in the repo
---

## Local Setup

- `pnpm install`
- `pnpm build`

### Run Local Dev build

If you want to run this locally for development, you have to open two terminals and run the following commands:

1. Terminal 1: `pnpm dev:core`
2. Terminal 2: `pnpm dev:website`

Then you can find the website under http://localhost:4321/spotlight.

## Changesets

Spotlight uses [Changesets](https://github.com/changesets/changesets) to track changes & versions.

Whenever you make a change that is users facing, you should add a changeset to your PR. You can do this by runing the
following command:

```bash
pnpm changeset:add
```

This will guide you through the process to define the changeset. You have to select which package(s) are affected by
this change, if it is a patch/minor/major change, and provide a description for the change.

Note that not all PRs need a changeset (e.g. if you only write docs), and a PR can also have more than one changeset.

## Publishing

When you want to publish a new version, you need to trigger the
[Prepare Publish](https://github.com/getsentry/spotlight/actions/workflows/prepare-publish.yml) Github Action. This
action will open a PR with all versions bumped & changelogs updated according to the currently pending changesets. If
you approve & merge this PR, these versions will automatically be published to NPM.

0 comments on commit 09979f1

Please sign in to comment.