Skip to content

Commit 76540f5

Browse files
reorganize tutorials into guides
1 parent 47bb0f9 commit 76540f5

File tree

20 files changed

+120
-93
lines changed

20 files changed

+120
-93
lines changed

core-concepts/modules/ROOT/pages/typeql/index.adoc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,4 @@ A deeper look at invalid patterns involving disjoint variable reuse
6767
****
6868
Short definitions of terms used throughout the guide, with links to the section which introduces them.
6969
****
70-
71-
.xref:{page-version}@core-concepts::typeql/sql-vs-typeql.adoc[]
72-
[.clickable]
73-
****
74-
A guide of relational constructs in SQL compared to similar concepts in TypeQL.
75-
****
7670
--
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
name: tutorials
2-
title: Tutorials
1+
name: guides
2+
title: Guides
33
version: '3.x'
44
nav:
55
- modules/ROOT/nav.adoc
File renamed without changes.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
= Guides
2+
3+
In this section, you will find guides for accomplishing specific TypeDB tasks.
4+
5+
**New users** - We recommend new users begin with the xref:{page-version}@home::get-started/index.adoc[get started] guide
6+
in the home section.
7+
8+
[cols-2]
9+
--
10+
.xref:{page-version}@guides::integrations/index.adoc[]
11+
[.clickable]
12+
****
13+
Integrate TypeDB into your application or platform
14+
****
15+
16+
.xref:{page-version}@guides::typeql/index.adoc[]
17+
[.clickable]
18+
****
19+
Learn how to write TypeQL queries
20+
****
21+
--
22+
23+
Got other guides you'd like to see?
24+
Get in touch at link:mailto:[email protected]?subject=Request%20new%20guide[[email protected]]
25+
or link:https://typedb.com/discord[join our discord server].

tutorials/modules/ROOT/pages/deploy-through-api.adoc renamed to guides/modules/ROOT/pages/integrations/deploy-through-api.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
= Deploy TypeDB via the Cloud API
2-
:keywords: typedb, typeql, tutorial, api, cloud, cluster, deploy
2+
:keywords: typedb, typeql, tutorial, guide, api, cloud, cluster, deploy
33
:pageTitle: Deploy TypeDB via the Cloud API
4-
:summary: A tutorial on deploying TypeDB through the API
4+
:summary: A guide on deploying TypeDB through the API
55
:page-toclevels: 2
66
:tabs-sync-option:
77

8-
This tutorial will walk you through the creation of a script
8+
This guide will walk you through the creation of a script
99
to automate deployment of a TypeDB cluster on TypeDB Cloud.
1010

1111
We're going to build a script that authenticates with the API,
@@ -653,7 +653,7 @@ If successful, TypeDB Cloud will deploy your cluster, and the script will poll i
653653

654654
== Conclusion
655655

656-
This tutorial has shown you how to set up a script to deploy TypeDB through the Cloud API.
656+
This guide has shown you how to set up a script to deploy TypeDB through the Cloud API.
657657

658658
Similar approaches can be used for other common actions,
659659
such as pausing or resuming your clusters when not in use.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
= Integrations
2+
3+
In this section, you will find guides for integrating TypeDB with other tools and platforms.
4+
5+
[cols-2]
6+
--
7+
.xref:{page-version}@guides::integrations/deploy-through-api.adoc[]
8+
[.clickable]
9+
****
10+
Set up a script for launching TypeDB from the TypeDB Cloud API
11+
****
12+
13+
.xref:{page-version}@guides::integrations/use-github-actions.adoc[]
14+
[.clickable]
15+
****
16+
Run TypeDB from your GitHub Actions CI pipeline
17+
****
18+
--

tutorials/modules/ROOT/pages/use-github-actions.adoc renamed to guides/modules/ROOT/pages/integrations/use-github-actions.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
= Use TypeDB in GitHub Actions
2-
:keywords: typedb, typeql, tutorial, github actions, ci
2+
:keywords: typedb, typeql, tutorial, guide, github actions, ci
33
:pageTitle: Use TypeDB in GitHub Actions
4-
:summary: A tutorial on using the TypeDB in GitHub Actions
4+
:summary: A guide on using the TypeDB in GitHub Actions
55
:page-toclevels: 2
66

7-
This tutorial shows you how to get a running instance of TypeDB into your GitHub Actions CI pipeline
7+
This guide shows you how to get a running instance of TypeDB into your GitHub Actions CI pipeline
88
using the TypeDB GitHub Action.
99

1010
== Step 1. Install and run TypeDB

tutorials/modules/ROOT/pages/advanced-pipelines.adoc renamed to guides/modules/ROOT/pages/typeql/advanced-pipelines.adoc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
= Advanced query pipelines
2-
:keywords: typedb, typeql, tutorial, console
2+
:keywords: typedb, typeql, tutorial, guide, console
33
:pageTitle:
44
:summary:
55
:page-toclevels: 2
@@ -8,19 +8,19 @@
88

99
== Overview
1010

11-
In this tutorial, we will explore some more complex pipelines and patterns in TypeQL.
11+
In this guide, we will explore some more complex pipelines and patterns in TypeQL.
1212

1313
== Prerequisites
1414

15-
This tutorial assumes you have access to a running TypeDB instance, as well as a TypeDB Console.
15+
This guide assumes you have access to a running TypeDB instance, as well as a TypeDB Console.
1616

1717
We recommend xref:{page-version}@home::install/ce.adoc[installing TypeDB Community Edition] as it is distributed bundled with Console for easy setup.
1818

19-
This is a continuation of xref:{page-version}@tutorials::read-data.adoc[] and xref:{page-version}@tutorials::insert-update-data.adoc[], though you don't need to have completed them to follow along.
19+
This is a continuation of xref:{page-version}@guides::typeql/read-data.adoc[] and xref:{page-version}@guides::typeql/insert-update-data.adoc[], though you don't need to have completed them to follow along.
2020

2121
== Example schema and data
2222

23-
We are using the https://github.com/typedb/typedb-examples/tree/master/use-cases/bookstore[bookstore example] schema and data throughout this tutorial.
23+
We are using the https://github.com/typedb/typedb-examples/tree/master/use-cases/bookstore[bookstore example] schema and data throughout this guide.
2424
You can load the example into your TypeDB instance using the following Console command:
2525

2626
[,console]
@@ -34,12 +34,12 @@ database create-init bookstore https://github.com/typedb/typedb-examples/release
3434
[,typeql]
3535
----
3636
#!test[schema, commit]
37-
include::{page-version}@tutorials::attachment$bookstore-schema.tql[lines=20..]
37+
include::{page-version}@guides::attachment$bookstore-schema.tql[lines=20..]
3838
----
3939
[,typeql]
4040
----
4141
#!test[write, commit]
42-
include::{page-version}@tutorials::attachment$bookstore-data.tql[lines=18..]
42+
include::{page-version}@guides::attachment$bookstore-data.tql[lines=18..]
4343
----
4444
====
4545

@@ -119,7 +119,7 @@ Finished. Total answers: 8
119119
Imagine we want to update a user's loyalty tier based on their total spending.
120120
After a user has paid for an order, we want to update their total spending and, if their spending has crossed some threshold, we want to increase their loyalty tier as well.
121121

122-
We've covered in xref:{page-version}@tutorials::read-data.adoc#_fetch_discounted_price_with_optionals[Reading data] how to use a `try` pattern to assign a variable based on whether the data
122+
We've covered in xref:{page-version}@guides::typeql/read-data.adoc#_fetch_discounted_price_with_optionals[Reading data] how to use a `try` pattern to assign a variable based on whether the data
123123
exists in the database.
124124
This extends to all kinds of patterns, including comparisons.
125125
All patterns in a `try` block must succeed, otherwise the new variables defined in it will not be assigned.

0 commit comments

Comments
 (0)