Skip to content

Commit 18a92c2

Browse files
authored
Fix Legacy links (#156)
* Fix Legacy links Ref https://github.com/dgraph-io/website/issues/110 * fix docs legacy links * Fix links pointing to master, set it to "latest" docs.
1 parent 0a22039 commit 18a92c2

File tree

35 files changed

+57
-56
lines changed

35 files changed

+57
-56
lines changed

config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
baseURL = "https://tour.dgraph.io"
1+
baseURL = "https://dgraph.io/tour/"
22
languageCode = "en-us"
33
title = "A Tour of Dgraph"
44
theme="hugo-tutorials"

content/basic/1.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,4 @@ run them.
4848

4949
The tutorial will handle the running of the query for you, so
5050
just focus on the query text. You can also learn about [posting
51-
queries](https://docs.dgraph.io/get-started/#step-3-run-queries) or [programming with Dgraph](https://docs.dgraph.io/clients/).
51+
queries](https://dgraph.io/docs/get-started/#step-3-run-queries) or [programming with Dgraph](https://dgraph.io/docs/clients/).

content/basic/17.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ weight = 17
99

1010
Dgraph supports facets — key value pairs on edges — as an extension to RDF triples. That is, facets add properties to edges, rather than to nodes. For example, a friend edge between two nodes may have a boolean property of close friendship. Facets can also be used as weights for edges.
1111

12-
More details about Facets you can find in our Docs: https://docs.dgraph.io/query-language/#facets-edge-attributes
12+
More details about Facets you can find in our Docs: https://dgraph.io/docs/query-language/#facets-edge-attributes
1313

1414
Reading all the documentation about Facets you will have examples of:
1515

@@ -22,7 +22,7 @@ Reading all the documentation about Facets you will have examples of:
2222
- Facets and Variable Propagation
2323
- Facets and Aggregation
2424

25-
For JSON mutation with Facets see: https://docs.dgraph.io/mutations/#facets
25+
For JSON mutation with Facets see: https://dgraph.io/docs/mutations/#facets
2626

2727
Run this mutation on you terminal, before running the query:
2828
{{% expandable %}}

content/basic/3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ It’s time to talk about data types and nodes.
1212

1313
Starting in version 1.1, Dgraph has support for a type system. At the moment, the type system is basic but can be used already to categorize nodes and query them based on their type. The type system is also used during expand queries.
1414

15-
So in order to expand or delete nodes, you need to define your types correctly. You can see more about the [Type System here](https://docs.dgraph.io/master/query-language/#type-system).
15+
So in order to expand or delete nodes, you need to define your types correctly. You can see more about the [Type System here](https://dgraph.io/docs/query-language/type-system/).
1616

1717
# Data types and Schema
1818

content/intro/1.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ graph databases and how to query Dgraph.
1717
-->
1818

1919
This interactive tutorial will get you up and running with Dgraph and writing graph
20+
2021
queries in [DQL](https://docs.dgraph.io/query-language/), Dgraph's own graph query language.
2122

2223
{{% notice "note" %}}
@@ -32,7 +33,7 @@ In this tutorial, you can run and edit the queries and interact with the visuali
3233
The tutorial will guide you from your first graph query to queries a graph expert would be proud of.
3334

3435
As well as this self contained tutorial, there’s lots of
35-
[reference material](https://docs.dgraph.io) to help you use Dgraph.
36+
[reference material](https://dgraph.io/docs/) to help you use Dgraph.
3637

3738
When you are ready to begin click the right arrow.
3839

content/intro/5.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ For example, in the previous section you saw the blank nodes `_:michael` and `_:
2626
<someTypoMistake>
2727
```
2828

29-
> Dgraph's [data export](https://docs.dgraph.io/deploy/#export-database) uses blank nodes of the first form presented.
29+
> Dgraph's [data export](https://dgraph.io/docs/deploy/#export-database) uses blank nodes of the first form presented.
3030
3131
In JSON, the blank node format is similar. The blank node is defined with the `"uid"` key of a JSON object:
3232

@@ -39,7 +39,7 @@ In JSON, the blank node format is similar. The blank node is defined with the `"
3939
}
4040
```
4141

42-
Blank nodes are covered in more detail in the [mutation docs](https://docs.dgraph.io/mutations/#blank-nodes-and-uid).
42+
Blank nodes are covered in more detail in the [mutation docs](https://dgraph.io/docs/mutations/#blank-nodes-and-uid).
4343

4444
{{% notice "note" %}}
4545
In Dgraph's Bulk loader any typo will be considered blank UID reference. Because Bulk loader is a tool for populate data from scratch. Different from Live Loader.

content/schema/3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ weight = 3
99

1010
Dgraph doesn't support setting external IDs for nodes. If an application requires unique identifiers for nodes other than the UIDs assigned by Dgraph, then these have to be supplied as edges. It's up to a user application to ensure the uniqueness of such IDs/keys.
1111

12-
More about in https://docs.dgraph.io/mutations/#external-ids
12+
More about in https://dgraph.io/docs/mutations/#external-ids

content/schema/9.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ We'll see later how to use expand with variables to query for a
2020
particular set of edges.
2121

2222
{{% notice "note" %}}
23-
As of version v1.1 you will need to add Types in your schema for `expand(_all_)` to work. See more in [Type System](https://docs.dgraph.io/master/query-language/#type-system).
23+
As of version v1.1 you will need to add Types in your schema for `expand(_all_)` to work. See more in [Type System](https://dgraph.io/docs/query-language/#type-system).
2424
{{% /notice %}}
2525

2626
You can also use your Types e.g `expand(Card, Document)` as arguments to `expand()`.

nginx/tour.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
server {
22
listen 80;
33

4-
server_name tour.dgraph.io;
4+
server_name tour.dgraph.io; # TODO: Need to check if we need to change this to => dgraph.io/tour/
55
root /home/ubuntu/dgraph-tour/published;
66
rewrite ^(.*[^/])$ $1/ permanent
77

published/404.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@
2828

2929

3030
<title>404 Page not found</title>
31-
<link href="https://dgraph.io/tour//css/nucleus.css" rel="stylesheet">
32-
<link href="https://dgraph.io/tour//css/font-awesome.min.css" rel="stylesheet">
33-
<link href="https://dgraph.io/tour//css/hybrid.css" rel="stylesheet">
34-
<link href="https://dgraph.io/tour//css/featherlight.min.css" rel="stylesheet">
35-
<link href="https://dgraph.io/tour//css/perfect-scrollbar.min.css" rel="stylesheet">
36-
<link href="https://dgraph.io/tour//css/theme.css" rel="stylesheet">
37-
<link href="https://dgraph.io/tour//css/hugo-theme.css" rel="stylesheet">
31+
<link href="https://dgraph.io/tour/css/nucleus.css" rel="stylesheet">
32+
<link href="https://dgraph.io/tour/css/font-awesome.min.css" rel="stylesheet">
33+
<link href="https://dgraph.io/tour/css/hybrid.css" rel="stylesheet">
34+
<link href="https://dgraph.io/tour/css/featherlight.min.css" rel="stylesheet">
35+
<link href="https://dgraph.io/tour/css/perfect-scrollbar.min.css" rel="stylesheet">
36+
<link href="https://dgraph.io/tour/css/theme.css" rel="stylesheet">
37+
<link href="https://dgraph.io/tour/css/hugo-theme.css" rel="stylesheet">
3838
<style type="text/css">
3939
:root #header + #content > #left > #rlblock_left {
4040
display: none !important;
@@ -63,7 +63,7 @@ <h1>Error</h1>
6363
<p></p>
6464
<p><a href="https://dgraph.io/tour/">Go to homepage</a></p>
6565
<p>
66-
<img src="https://dgraph.io/tour//images/gopher-404.jpg" style="width:50%"></img>
66+
<img src="https://dgraph.io/tour/images/gopher-404.jpg" style="width:50%"></img>
6767
</p>
6868
</div>
6969
</div>

0 commit comments

Comments
 (0)