Skip to content

Commit

Permalink
Don't include current version in URL after all
Browse files Browse the repository at this point in the history
  • Loading branch information
kearfy committed Mar 12, 2024
1 parent 5da5120 commit ed4c527
Show file tree
Hide file tree
Showing 93 changed files with 511 additions and 511 deletions.
2 changes: 1 addition & 1 deletion _redirects
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
https://docs.surrealdb.com/docs/* https://surrealdb.com/docs/surrealdb/1.x/:splat 200
https://docs.surrealdb.com/docs/* https://surrealdb.com/docs/surrealdb/:splat 200
https://docs.surrealdb.com/* https://surrealdb.com/docs/:splat 200
2 changes: 1 addition & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const config = {
versions: {
"1.x": {
label: '1.x',
path: '1.x',
path: '',
},
},
editUrl: 'https://github.com/surrealdb/docs.surrealdb.com/edit/main/',
Expand Down
16 changes: 8 additions & 8 deletions src/components/SDK/list.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import SDKBoxes from './SDKBoxes.mdx';
<SDKBoxes
items={[
{
link: '/docs/surrealdb/1.x/integration/sdks/rust',
link: '/docs/surrealdb/integration/sdks/rust',
icon: <ThemedImage
alt="Rust"
width="35"
Expand All @@ -21,7 +21,7 @@ import SDKBoxes from './SDKBoxes.mdx';
available: true,
},
{
link: '/docs/surrealdb/1.x/integration/sdks/nodejs',
link: '/docs/surrealdb/integration/sdks/nodejs',
icon: <ThemedImage
alt="Node"
width="35"
Expand All @@ -35,7 +35,7 @@ import SDKBoxes from './SDKBoxes.mdx';
available: true,
},
{
link: '/docs/surrealdb/1.x/integration/sdks/python',
link: '/docs/surrealdb/integration/sdks/python',
icon: <ThemedImage
alt="Python"
width="35"
Expand All @@ -49,7 +49,7 @@ import SDKBoxes from './SDKBoxes.mdx';
available: true,
},
{
link: '/docs/surrealdb/1.x/integration/sdks/golang',
link: '/docs/surrealdb/integration/sdks/golang',
icon: <img width='35' height='35' className='devicon' src={useBaseUrl('/img/golang-icon.png')} />,
icon: <ThemedImage
alt="Golang"
Expand All @@ -64,7 +64,7 @@ import SDKBoxes from './SDKBoxes.mdx';
available: true,
},
{
link: '/docs/surrealdb/1.x/integration/sdks/deno',
link: '/docs/surrealdb/integration/sdks/deno',
icon: <ThemedImage
alt="Deno"
width="35"
Expand All @@ -78,7 +78,7 @@ import SDKBoxes from './SDKBoxes.mdx';
available: true,
},
{
link: '/docs/surrealdb/1.x/integration/sdks/dotnet',
link: '/docs/surrealdb/integration/sdks/dotnet',
icon: <ThemedImage
alt="dotnet"
width="35"
Expand All @@ -92,7 +92,7 @@ import SDKBoxes from './SDKBoxes.mdx';
available: true,
},
{
link: '/docs/surrealdb/1.x/integration/sdks/java',
link: '/docs/surrealdb/integration/sdks/java',
icon: <ThemedImage
alt="Java"
width="35"
Expand Down Expand Up @@ -204,7 +204,7 @@ import SDKBoxes from './SDKBoxes.mdx';
<SDKBoxes
items={[
{
link: '/docs/surrealdb/1.x/integration/sdks/javascript',
link: '/docs/surrealdb/integration/sdks/javascript',
icon: <ThemedImage
alt="Javascript"
width="35"
Expand Down
16 changes: 8 additions & 8 deletions src/components/SDK/sdks_container.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import SDKClientBoxes from './SDKClientBoxes.mdx';
<SDKServerBoxes
serverBoxes={[
{
link: '/docs/surrealdb/1.x/integration/sdks/rust',
link: '/docs/surrealdb/integration/sdks/rust',
icon: <ThemedImage
alt="Rust"
width="35"
Expand All @@ -20,7 +20,7 @@ import SDKClientBoxes from './SDKClientBoxes.mdx';
available: true,
},
{
link: '/docs/surrealdb/1.x/integration/sdks/nodejs',
link: '/docs/surrealdb/integration/sdks/nodejs',
icon: <ThemedImage
alt="Node"
width="35"
Expand All @@ -34,7 +34,7 @@ import SDKClientBoxes from './SDKClientBoxes.mdx';
available: true,
},
{
link: '/docs/surrealdb/1.x/integration/sdks/python',
link: '/docs/surrealdb/integration/sdks/python',
icon: <ThemedImage
alt="Python"
width="35"
Expand All @@ -48,7 +48,7 @@ import SDKClientBoxes from './SDKClientBoxes.mdx';
available: true,
},
{
link: '/docs/surrealdb/1.x/integration/sdks/golang',
link: '/docs/surrealdb/integration/sdks/golang',
icon: <img width='35' height='35' className='devicon' src={useBaseUrl('/img/golang-icon.png')} />,
icon: <ThemedImage
alt="Golang"
Expand All @@ -63,7 +63,7 @@ import SDKClientBoxes from './SDKClientBoxes.mdx';
available: true,
},
{
link: '/docs/surrealdb/1.x/integration/sdks/deno',
link: '/docs/surrealdb/integration/sdks/deno',
icon: <ThemedImage
alt="Deno"
width="35"
Expand All @@ -77,7 +77,7 @@ import SDKClientBoxes from './SDKClientBoxes.mdx';
available: true,
},
{
link: '/docs/surrealdb/1.x/integration/sdks/dotnet',
link: '/docs/surrealdb/integration/sdks/dotnet',
icon: <ThemedImage
alt="dotnet"
width="35"
Expand All @@ -91,7 +91,7 @@ import SDKClientBoxes from './SDKClientBoxes.mdx';
available: true,
},
{
link: '/docs/surrealdb/1.x/integration/sdks/java',
link: '/docs/surrealdb/integration/sdks/java',
icon: <ThemedImage
alt="Java"
width="35"
Expand Down Expand Up @@ -203,7 +203,7 @@ import SDKClientBoxes from './SDKClientBoxes.mdx';
<SDKClientBoxes
clientBoxes={[
{
link: '/docs/surrealdb/1.x/integration/sdks/javascript',
link: '/docs/surrealdb/integration/sdks/javascript',
icon: <ThemedImage
alt="Javascript"
width="35"
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-1.x/cli/backup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description: The backup command backs up data into or from an existing database.
The backup command backs up data into or from an existing database.

:::note
__BEFORE YOU START :__ Make sure you’ve [installed SurrealDB](/docs/surrealdb/1.x/installation) — it should only take a second!
__BEFORE YOU START :__ Make sure you’ve [installed SurrealDB](/docs/surrealdb/installation) — it should only take a second!
:::

## Command options
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-1.x/cli/export.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description: The export command exports a SurrealQL script file from a local or
The export command exports a SurrealQL script file from a local or remote SurrealDB database server.

:::note
__BEFORE YOU START :__ Make sure you’ve [installed SurrealDB](/docs/surrealdb/1.x/installation) — it should only take a second!
__BEFORE YOU START :__ Make sure you’ve [installed SurrealDB](/docs/surrealdb/installation) — it should only take a second!
:::

## Command options
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-1.x/cli/help.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description: The help command displays help information and instructions on the
The help command displays help information and instructions on the command-line tool and its arguments.

:::note
__BEFORE YOU START :__ Make sure you’ve [installed SurrealDB](/docs/surrealdb/1.x/installation) — it should only take a second!
__BEFORE YOU START :__ Make sure you’ve [installed SurrealDB](/docs/surrealdb/installation) — it should only take a second!
:::

## Show the command-line help information
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-1.x/cli/import.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description: The import command imports a SurrealQL script file into a local or
The import command imports a SurrealQL script file into a local or remote SurrealDB database server.

:::note
__BEFORE YOU START :__ Make sure you’ve [installed SurrealDB](/docs/surrealdb/1.x/installation) — it should only take a second!
__BEFORE YOU START :__ Make sure you’ve [installed SurrealDB](/docs/surrealdb/installation) — it should only take a second!
:::

## Command options
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-1.x/cli/isready.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description: The isready command attempts to connect to a remote SurrealDB serve
The isready command attempts to connect to a remote SurrealDB server to detect if it has successfully started.

:::note
__BEFORE YOU START :__ Make sure you’ve [installed SurrealDB](/docs/surrealdb/1.x/installation) — it should only take a second!
__BEFORE YOU START :__ Make sure you’ve [installed SurrealDB](/docs/surrealdb/installation) — it should only take a second!
:::

## Command options
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-1.x/cli/ml/export.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description: The CLI ML export command is used to export a machine learning mode
The ML export command is used to export an existing machine learning model from SurrealDB.

:::note
__BEFORE YOU START :__ Make sure you’ve [installed SurrealDB](/docs/surrealdb/1.x/installation) — it should only take a second!
__BEFORE YOU START :__ Make sure you’ve [installed SurrealDB](/docs/surrealdb/installation) — it should only take a second!
:::

## Command arguments
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-1.x/cli/ml/import.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description: The CLI ML import command is used to import a new machine learning
The ML import command is used to import a new machine learning model into SurrealDB.

:::note
__BEFORE YOU START :__ Make sure you’ve [installed SurrealDB](/docs/surrealdb/1.x/installation) — it should only take a second!
__BEFORE YOU START :__ Make sure you’ve [installed SurrealDB](/docs/surrealdb/installation) — it should only take a second!
:::

## Command arguments
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-1.x/cli/ml/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description: The ML commands can be used to import and export machine learning m
The ML commands can be used to import and export machine learning models.

:::note
__BEFORE YOU START :__ Make sure you’ve [installed SurrealDB](/docs/surrealdb/1.x/installation) — it should only take a second!
__BEFORE YOU START :__ Make sure you’ve [installed SurrealDB](/docs/surrealdb/installation) — it should only take a second!
:::


Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-1.x/cli/sql.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description: The SQL command starts a REPL for running or piping SurrealQL queri
The SQL command starts a REPL for running or piping SurrealQL queries to a local or remote SurrealDB database server.

:::note
__BEFORE YOU START :__ Make sure you’ve [installed SurrealDB](/docs/surrealdb/1.x/installation) — it should only take a second!
__BEFORE YOU START :__ Make sure you’ve [installed SurrealDB](/docs/surrealdb/installation) — it should only take a second!
:::

## Command options
Expand Down Expand Up @@ -117,7 +117,7 @@ Once you see the `>` character you can type your SurrealQL query, followed by th
surreal sql --endpoint http://localhost:8000 --username root --password root --namespace test --database test
```

It is also possible to pipe a set of statements to a remote database. This functionality is only designed for submitting a small number of queries to the database server. For a large number of queries, use the [import command](/docs/surrealdb/1.x/cli/import).
It is also possible to pipe a set of statements to a remote database. This functionality is only designed for submitting a small number of queries to the database server. For a large number of queries, use the [import command](/docs/surrealdb/cli/import).

```bash
cat myfile.surql | surreal sql --endpoint http://localhost:8000 --username root --password root --namespace test --database test
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-1.x/cli/start.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description: The start command starts a SurrealDB server in memory, on disk, or
The start command starts a SurrealDB server in memory, on disk, or in a distributed setup.

:::note
__BEFORE YOU START :__ Make sure you’ve [installed SurrealDB](/docs/surrealdb/1.x/installation) — it should only take a second!
__BEFORE YOU START :__ Make sure you’ve [installed SurrealDB](/docs/surrealdb/installation) — it should only take a second!
:::

## Command options
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-1.x/cli/upgrade.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description: The upgrade command upgrades SurrealDB to the latest version, night
The upgrade command upgrades SurrealDB to the latest version, nightly or a specified version.

:::note
__BEFORE YOU START :__ Make sure you’ve [installed SurrealDB](/docs/surrealdb/1.x/installation) — it should only take a second!
__BEFORE YOU START :__ Make sure you’ve [installed SurrealDB](/docs/surrealdb/installation) — it should only take a second!
:::

## Command options
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-1.x/cli/validate.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description: The validate command validates one or many SurrealQL language files
The validate command validates one or many SurrealQL language files.

:::note
__BEFORE YOU START :__ Make sure you’ve [installed SurrealDB](/docs/surrealdb/1.x/installation) — it should only take a second!
__BEFORE YOU START :__ Make sure you’ve [installed SurrealDB](/docs/surrealdb/installation) — it should only take a second!
:::

## Command options
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-1.x/cli/version.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ description: The version command outputs the current version of the installed co
The version command outputs the current version of the installed command-line tool, and the machine architecture.

:::note
__BEFORE YOU START :__ Make sure you’ve [installed SurrealDB](/docs/surrealdb/1.x/installation) — it should only take a second!
__BEFORE YOU START :__ Make sure you’ve [installed SurrealDB](/docs/surrealdb/installation) — it should only take a second!
:::

## Example usage
Expand Down
16 changes: 8 additions & 8 deletions versioned_docs/version-1.x/deployment/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Getting started with SurrealDB is intended to be quick and easy. All of SurrealD
<DeploymentComponent
deploymentBoxes={[
{
link: '/docs/surrealdb/1.x/deployment/fly',
link: '/docs/surrealdb/deployment/fly',
icon: <ThemedImage
alt="Fly"
width="35"
Expand All @@ -33,7 +33,7 @@ Getting started with SurrealDB is intended to be quick and easy. All of SurrealD
available: true,
},
{
link: '/docs/surrealdb/1.x/deployment/heroku',
link: '/docs/surrealdb/deployment/heroku',
icon: <ThemedImage
alt="Heroku"
width="35"
Expand All @@ -48,7 +48,7 @@ Getting started with SurrealDB is intended to be quick and easy. All of SurrealD
available: false,
},
{
link: '/docs/surrealdb/1.x/deployment/railway',
link: '/docs/surrealdb/deployment/railway',
icon: <ThemedImage
alt="Railway"
width="35"
Expand All @@ -63,7 +63,7 @@ Getting started with SurrealDB is intended to be quick and easy. All of SurrealD
available: false,
},
{
link: '/docs/surrealdb/1.x/deployment/digitalocean',
link: '/docs/surrealdb/deployment/digitalocean',
icon: <ThemedImage
alt="DigitalOcean"
width="35"
Expand All @@ -85,7 +85,7 @@ Getting started with SurrealDB is intended to be quick and easy. All of SurrealD
<DeploymentComponent
deploymentBoxes={[
{
link: '/docs/surrealdb/1.x/deployment/kubernetes',
link: '/docs/surrealdb/deployment/kubernetes',
icon: <ThemedImage
alt="Kubernetes"
width="35"
Expand All @@ -100,7 +100,7 @@ Getting started with SurrealDB is intended to be quick and easy. All of SurrealD
available: true,
},
{
link: '/docs/surrealdb/1.x/deployment/google',
link: '/docs/surrealdb/deployment/google',
icon: <ThemedImage
alt="Google"
width="35"
Expand All @@ -115,7 +115,7 @@ Getting started with SurrealDB is intended to be quick and easy. All of SurrealD
available: true,
},
{
link: '/docs/surrealdb/1.x/deployment/amazon',
link: '/docs/surrealdb/deployment/amazon',
icon: <ThemedImage
alt="Amazon"
width="35"
Expand All @@ -130,7 +130,7 @@ Getting started with SurrealDB is intended to be quick and easy. All of SurrealD
available: true,
},
{
link: '/docs/surrealdb/1.x/deployment/azure',
link: '/docs/surrealdb/deployment/azure',
icon: <ThemedImage
alt="Azure"
width="35"
Expand Down
4 changes: 2 additions & 2 deletions versioned_docs/version-1.x/embedding/deno.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ import useBaseUrl from '@docusaurus/useBaseUrl';

# Embedding in Deno

SurrealDB is designed to be run in many different ways, and environments. Due to the [separation of the storage and compute](/docs/surrealdb/1.x/introduction/architecture) layers, SurrealDB can be run in embedded mode, from within a number of different language environments. In Deno, SurrealDB can be run as an in-memory database, or it can persist data using a file-based storage engine.
SurrealDB is designed to be run in many different ways, and environments. Due to the [separation of the storage and compute](/docs/surrealdb/introduction/architecture) layers, SurrealDB can be run in embedded mode, from within a number of different language environments. In Deno, SurrealDB can be run as an in-memory database, or it can persist data using a file-based storage engine.

The documentation for embedding SurrealDB within Deno has not yet been released. In the meantime, please refer to the [Deno](/docs/surrealdb/1.x/integration/sdks/nodejs) client SDK documentation to get started with connecting to SurrealDB from Deno.
The documentation for embedding SurrealDB within Deno has not yet been released. In the meantime, please refer to the [Deno](/docs/surrealdb/integration/sdks/nodejs) client SDK documentation to get started with connecting to SurrealDB from Deno.
4 changes: 2 additions & 2 deletions versioned_docs/version-1.x/embedding/javascript.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ import useBaseUrl from '@docusaurus/useBaseUrl';

# Embedding in Javascript

SurrealDB is designed to be run in many different ways, and environments. Due to the [separation of the storage and compute](/docs/surrealdb/1.x/introduction/architecture) layers, SurrealDB can be run in embedded mode, from within a number of different language environments. In JavaScript, SurrealDB can be run as an in-memory database, or it can persist data using IndexedDB in the browser.
SurrealDB is designed to be run in many different ways, and environments. Due to the [separation of the storage and compute](/docs/surrealdb/introduction/architecture) layers, SurrealDB can be run in embedded mode, from within a number of different language environments. In JavaScript, SurrealDB can be run as an in-memory database, or it can persist data using IndexedDB in the browser.

The documentation for embedding SurrealDB within JavaScript has not yet been released. In the meantime, please refer to the [JavaScript client SDK](/docs/surrealdb/1.x/integration/sdks/javascript) documentation to get started with connecting to SurrealDB from JavaScript.
The documentation for embedding SurrealDB within JavaScript has not yet been released. In the meantime, please refer to the [JavaScript client SDK](/docs/surrealdb/integration/sdks/javascript) documentation to get started with connecting to SurrealDB from JavaScript.
4 changes: 2 additions & 2 deletions versioned_docs/version-1.x/embedding/node.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ import useBaseUrl from '@docusaurus/useBaseUrl';

# Embedding in Node.js

SurrealDB is designed to be run in many different ways, and environments. Due to the [separation of the storage and compute](/docs/surrealdb/1.x/introduction/architecture) layers, SurrealDB can be run in embedded mode, from within a number of different language environments. In Node.js, SurrealDB can be run as an in-memory database, or it can persist data using a file-based storage engine.
SurrealDB is designed to be run in many different ways, and environments. Due to the [separation of the storage and compute](/docs/surrealdb/introduction/architecture) layers, SurrealDB can be run in embedded mode, from within a number of different language environments. In Node.js, SurrealDB can be run as an in-memory database, or it can persist data using a file-based storage engine.

The documentation for embedding SurrealDB within Node.js has not yet been released. In the meantime, please refer to the [Node.js](/docs/surrealdb/1.x/integration/sdks/nodejs) client SDK documentation to get started with connecting to SurrealDB from Node.js.
The documentation for embedding SurrealDB within Node.js has not yet been released. In the meantime, please refer to the [Node.js](/docs/surrealdb/integration/sdks/nodejs) client SDK documentation to get started with connecting to SurrealDB from Node.js.
Loading

0 comments on commit ed4c527

Please sign in to comment.