Skip to content

Commit

Permalink
Replace absolute URLs with relative ones
Browse files Browse the repository at this point in the history
  • Loading branch information
philkra committed Jul 22, 2024
1 parent 5073e6b commit 9d222c3
Show file tree
Hide file tree
Showing 15 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion 010-Getting-started/010-what-is-xata.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ While PostgreSQL is an incredibly versatile database good for almost any startin

A good example of this is our [File Attachments](/docs/sdk/file-attachments) feature. While it is possible to store files as BLOBs in PostgreSQL, it would be expensive and inefficient to do so. Instead, we use S3 for file storage and the Cloudflare CDN for file delivery and image transformations.

Similarly, while PostgreSQL has full-text search capabilities, we can provide a significantly better full-text search experience by using Elasticsearch. A blog post comparing the two approaches is available [here](https://xata.io/blog/postgres-full-text-search-postgres-vs-elasticsearch).
Similarly, while PostgreSQL has full-text search capabilities, we can provide a significantly better full-text search experience by using Elasticsearch. A blog post comparing the two approaches is available [here](/blog/postgres-full-text-search-postgres-vs-elasticsearch).

The difference between Xata and a cloud provider that provides multiple DBaaS offerings is that in Xata the secondary data stores are **integrated**, meaning that the data is automatically replicated and kept in sync. Also, they are available via the same SDKs and APIs and authorization works the same way.

Expand Down
2 changes: 1 addition & 1 deletion 010-Getting-started/040-Examples/010-gallery-app.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ This small gallery application using Next.js and Chakra UI, highlights the follo

### More information

- [File attachments feature](https://xata.io/file-attachments)
- [File attachments feature](/file-attachments)
- [File attachments docs](/docs/sdk/file-attachments)
8 changes: 4 additions & 4 deletions 010-Getting-started/040-Examples/025-xata-chatgpt.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ slug: examples/xata-chatgpt
published: false
---

[Xata ChatGPT](https://xata.io/chatgpt) helps you easily build a Q&A bot to answer questions in your website, application, documentation or knowledge base.
[Xata ChatGPT](/chatgpt) helps you easily build a Q&A bot to answer questions in your website, application, documentation or knowledge base.

- [Explore the app](https://xata.io/chatgpt)
- [Explore the app](/chatgpt)
- [View the source code](https://github.com/xataio/examples/tree/main/apps/sample-chatgpt)

![Xata ChatGPT](images/xchatgpt.png)
Expand All @@ -20,7 +20,7 @@ published: false
| ----------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
| [xata-sample-chatgpt](https://github.com/xataio/examples/apps/sample-chatgpt) | The core repository for the sample ChatGPT application. |
| [Node.js](https://nodejs.org/en) and [npm](https://www.npmjs.com/) | The runtime and package manager used to run JavaScript-based applications. |
| [Xata client library](https://xata.io/docs/getting-started/cli) | A library for interacting with the Xata.io database. |
| [Xata client library](/docs/getting-started/cli) | A library for interacting with the Xata.io database. |

## Features

Expand All @@ -30,4 +30,4 @@ published: false

## More information

- [Ask AI docs](https://xata.io/docs/sdk/ask)
- [Ask AI docs](/docs/sdk/ask)
2 changes: 1 addition & 1 deletion 010-Getting-started/040-Examples/030-xmdb.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ published: true
| [React icons](https://react-icons-kit.vercel.app) | SVG icons as React components. |
| [TailwindCSS](https://tailwindcss.com) | Utility-first CSS framework for style. |
| [Vercel/OG](https://vercel.com/docs/concepts/functions/edge-functions/og-image-generation#using-@vercel/o) | Open Graph (OG) image generation. |
| [Xata client](https://xata.io/docs/getting-started/cli) | Object-relational mapping (ORM) with the SDK to handle data manipulation, querying, and other database-related tasks. |
| [Xata client](/docs/getting-started/cli) | Object-relational mapping (ORM) with the SDK to handle data manipulation, querying, and other database-related tasks. |
| [Zod](https://zod.dev) | TypeScript-first runtime validation library for schema validation. |

### Features
Expand Down
2 changes: 1 addition & 1 deletion 030-Data-types/030-data-model.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ users = self.client.data().query("Users", {

Note that `createdAt` in the above sample is an additional, explicitly created, datetime column.
The default columns `xata.createdAt`,`xata.updatedAt` and `xata.version` are not supported for reverse link sorting.
In [Postgres enabled](https://xata.io/docs/postgres) databases, the corresponding internal columns can be used for reverse link sorting.
In [Postgres enabled](/docs/postgres) databases, the corresponding internal columns can be used for reverse link sorting.

The response would look like this (notice the nested `records` array under the `posts` field):

Expand Down
2 changes: 1 addition & 1 deletion 040-Data-operations/103-update.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ The way to treat this error depends on your application. You might be able to re

## Updating multiple records

If you have multiple records to update, you can send them in a single call using the [`/transactions` endpoint](/docs/sdk/transaction). The Xata transactions API allows bulk updates where specified fields of records are modified. These updates require an ID. By default updates will fail when the IDs are not found in the database. However, enabling the `upsert` flag to `true` allows the creation of new records missing IDs. For more details, refer to the [transactions updates documentation](https://xata.io/docs/sdk/transaction#updates).
If you have multiple records to update, you can send them in a single call using the [`/transactions` endpoint](/docs/sdk/transaction). The Xata transactions API allows bulk updates where specified fields of records are modified. These updates require an ID. By default updates will fail when the IDs are not found in the database. However, enabling the `upsert` flag to `true` allows the creation of new records missing IDs. For more details, refer to the [transactions updates documentation](/docs/sdk/transaction#updates).

## Next Steps

Expand Down
2 changes: 1 addition & 1 deletion 040-Data-operations/140-ask.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ At a high level, the `ask` endpoint works like this:
1. Take the most relevant results, and create a custom prompt for OpenAI.
1. Send the prompt to the ChatGPT API and let the model complete the answer.

The `ask` endpoint can use either keyword or vector search to find records that are most relevant to the user's query. To learn more about keyword or vector searches, see our [blog the compares the two approaches](https://xata.io/blog/keyword-vs-semantic-search-chatgpt).
The `ask` endpoint can use either keyword or vector search to find records that are most relevant to the user's query. To learn more about keyword or vector searches, see our [blog the compares the two approaches](/blog/keyword-vs-semantic-search-chatgpt).

When you use the `ask` endpoint, you can choose to continue any conversation you've started. Xata will remember the rules and context you've set, and allow you to continue to ask follow-up questions. Check the examples below to see how to use it.

Expand Down
2 changes: 1 addition & 1 deletion 050-Manage/030-migrations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Migrations must be ordered. Ordering is guaranteed by the `parent` and the ledge

## Multi-version Schema Migrations (Postgres enabled only)

For Postgres enabled branches, Xata provides a Migration Editor to create [multi-version schema migrations](https://xata.io/blog/multi-version-schema-migrations) using [pgroll](https://github.com/xataio/pgroll) operations.
For Postgres enabled branches, Xata provides a Migration Editor to create [multi-version schema migrations](/blog/multi-version-schema-migrations) using [pgroll](https://github.com/xataio/pgroll) operations.

Multi-version schema migrations address the pain point of having to keep your application code in sync with your database schema by allowing you two active database schemas at once. With multi-version schema migrations, running a migration means being able to preview the new version of your schema alongside the old one. Reading and writing data in both schemas continues to work normally. As a result of having two active schema versions, rollbacks become seamless operations which is particularly useful in the case of an unwanted schema change or backfill.

Expand Down
2 changes: 1 addition & 1 deletion 050-Manage/040-pr-based-workflow.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ If you've already run `xata pull` and committed it, but you are still recieving
- When copying data, it is assumed that the main and preview branches have identical schemas at the time of copying.
- We guarantee point-in-time consistency of the data. As a result, any changes made to the main branch during the data copying process will not be incorporated into the preview branch.
- Xata currently has a copy limit of 10,000 rows per database.
- If your main branch database is under 10,000 rows, all your data will get copied. This includes columns with sensitive data. We have it on our [roadmap](https://xata.io/roadmap) to configure obfuscation of columns in the near future.
- If your main branch database is under 10,000 rows, all your data will get copied. This includes columns with sensitive data. We have it on our [roadmap](/roadmap) to configure obfuscation of columns in the near future.
- If your main branch database has more than 10,000 rows, we will copy approximately 10,000 rows, while ensuring the subset is self-contained - meaning that all the links resolve correctly.
- To ensure that the links resolve correctly, we will sometimes copy more than 10,000 rows.
- Due to the wide variability in database schemas, Xata cannot guarantee a specific number of rows will be copied per table. However, Xata will ensure that at least one row is copied in every table.
Expand Down
6 changes: 3 additions & 3 deletions 070-Integrations/024-cloudflare-workers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ A complete [Cloudflare and Xata starter](https://github.com/xataio/examples/tree

### Before you begin

- Ensure you [install the Xata CLI and authenticate](https://xata.io/docs/getting-started/installation)
- Ensure you [install the Xata CLI and authenticate](/docs/getting-started/installation)

- Ensure you have a [basic project with Cloudflare workers running](https://xata.io/docs/integrations/cloudflare#create-a-new-cloudflare-app-optional)
- Ensure you have a [basic project with Cloudflare workers running](/docs/integrations/cloudflare#create-a-new-cloudflare-app-optional)

### Install the Xata client

Expand All @@ -36,7 +36,7 @@ A file called `.xatarc` should also be generated at the project root, with the f

```json title=".xatarc"
{
"databaseURL": <YOUR_DATABASE_URL_HERE>,
"databaseURL": "<YOUR_DATABASE_URL_HERE>",
"codegen": {
"output": "src/xata.ts"
}
Expand Down
2 changes: 1 addition & 1 deletion 070-Integrations/030-github.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ After connecting a database to a GitHub repository, Xata will create and maintai

{/* prettier-ignore */}
<Alert>
[File attachments](https://xata.io/docs/sdk/file-attachments) are not copied to the preview branch.
[File attachments](/docs/sdk/file-attachments) are not copied to the preview branch.
</Alert>

Every new push to the pull request will trigger these steps again, so the Xata preview branch will always be up to date with the latest changes in the pull request.
Expand Down
2 changes: 1 addition & 1 deletion 070-Integrations/060-netlify.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ To enable the import map, declare it in netlify.toml:
deno_import_map = "deno.json"
```

Pass additional [configuration parameters](https://xata.io/docs/sdk/typescript/overview#configuration) to the Xata Client using `Netlify.env` variables.
Pass additional [configuration parameters](/docs/sdk/typescript/overview#configuration) to the Xata Client using `Netlify.env` variables.

```ts
const xata = new XataClient({
Expand Down
4 changes: 2 additions & 2 deletions 070-Integrations/070-vercel.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ published: true

Vercel transforms application development for modern developers with efficient workflows through preview deployments.

Xata, using [preview branches](https://xata.io/docs/getting-started/workflow), a [Vercel integration](https://vercel.com/integrations/xata), and an [application for GitHub](https://github.com/apps/xata-app), completes the Vercel workflow by pairing each pull request and Vercel preview with a preview branch of the production database.
Xata, using [preview branches](/docs/getting-started/workflow), a [Vercel integration](https://vercel.com/integrations/xata), and an [application for GitHub](https://github.com/apps/xata-app), completes the Vercel workflow by pairing each pull request and Vercel preview with a preview branch of the production database.

## Working with Xata and Vercel

The following is an example workflow for adding a star rating to each product review in an e-commerce application.

To get started using example workflow, ensure you [sign up](https://app.xata.io/signin) and follow the [step-by-step](https://xata.io/docs/getting-started/workflow) instructions to install the GitHub and Vercel integrations.
To get started using example workflow, ensure you [sign up](https://app.xata.io/signin) and follow the [step-by-step](/docs/getting-started/workflow) instructions to install the GitHub and Vercel integrations.

### Create branches for local development

Expand Down
4 changes: 2 additions & 2 deletions 100-Appendix/020-pricing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ The Enterprise plan is designed for large organizations that require specific, l

### Change plans

Visit the [pricing page](https://xata.io/pricing) to upgrade from the Free to Pro plan. For the Enterprise plan, [contact us](mailto:contactus@xata.io)
Visit the [pricing page](/pricing) to upgrade from the Free to Pro plan. For the Enterprise plan, [contact us](mailto:contactus@xata.io)

### Startup and organization discounts

Expand All @@ -139,7 +139,7 @@ No, you can serve as many reads and writes as you want within the rate limit, wh

##### What happens if I exceed the rate limit?

If you exceed the rate limit on Xata, you will receive a 429 HTTP status as a notification of the overload. Xata’s pricing structure is specifically tailored to cater to diverse user needs, from individual endeavors to large-scale enterprise applications. Detailed information about pricing, billing, and usage limits is available in the documentation on this page. Additionally, our [pricing page](https://xata.io/pricing) offers a thorough breakdown of our pricing model.
If you exceed the rate limit on Xata, you will receive a 429 HTTP status as a notification of the overload. Xata’s pricing structure is specifically tailored to cater to diverse user needs, from individual endeavors to large-scale enterprise applications. Detailed information about pricing, billing, and usage limits is available in the documentation on this page. Additionally, our [pricing page](/pricing) offers a thorough breakdown of our pricing model.

##### Is it possible to increase my rate limit?

Expand Down
2 changes: 1 addition & 1 deletion 100-Appendix/040-Support.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ It's important to select the most suitable method based on the nature of your qu

### Documentation

You can refer to our [documentation](https://xata.io/docs) for detailed information about Xata's features, concepts, and usage.
You can refer to our [documentation](/docs) for detailed information about Xata's features, concepts, and usage.

### Community forum

Expand Down

0 comments on commit 9d222c3

Please sign in to comment.