Skip to content

Commit

Permalink
Fix URLs like... (#5510)
Browse files Browse the repository at this point in the history
docs.dgraph.io to dgraph.io/docs/
  • Loading branch information
MichelDiz authored May 28, 2020
1 parent 3b96d18 commit e22db97
Show file tree
Hide file tree
Showing 28 changed files with 55 additions and 55 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ about: Suggest improvements, additions, or revisions to Dgraph documentation.

## Documentation

<!-- If you think Dgraph's documentation at https://docs.dgraph.io is lacking, please -->
<!-- If you think Dgraph's documentation at https://dgraph.io/docs/ is lacking, please -->
<!-- explain it here. -->
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/issue--question.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ about: The issue tracker is not for questions. Please ask questions on https://d
The issue tracker is not for questions.

If you have a question, please ask it on https://discuss.dgraph.io
Our Docs: https://docs.dgraph.io/
Our Docs: https://dgraph.io/docs/
Slack Channel: https://slack.dgraph.io/
20 changes: 10 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -1650,7 +1650,7 @@ upgrading or rolling back. The underlying data format has been changed.**

- This version switches Badger Options to reasonable settings for p and w directories. This removes the need to expose `--badger.options` option and removes the `none` option from `--badger.vlog`. ([#2605](https://github.com/dgraph-io/dgraph/issues/2605))
- Add support for ignoring parse errors in bulk loader with the option `--ignore_error`. ([#2599](https://github.com/dgraph-io/dgraph/issues/2599))
- Introduction of new command `dgraph cert` to simplify initial TLS setup. See [TLS configuration docs](https://docs.dgraph.io/deploy/#tls-configuration) for more info.
- Introduction of new command `dgraph cert` to simplify initial TLS setup. See [TLS configuration docs](https://dgraph.io/docs/deploy/#tls-configuration) for more info.
- Add `expand(_forward_)` and `expand(_reverse_)` to GraphQL+- query language. If `_forward_` is passed as an argument to `expand()`, all predicates at that level (minus any reverse predicates) are retrieved.
If `_reverse_` is passed as an argument to `expand()`, only the reverse predicates are retrieved.

Expand Down Expand Up @@ -1999,15 +1999,15 @@ For `/commit` API, keys are passed in the body.

### Added

* Dgraph adds support for distributed ACID transactions (a blog post is in works). Transactions can be done via the Go, Java or HTTP clients (JS client coming). See [docs here](https://docs.dgraph.io/clients/).
* Support for Indexing via [Custom tokenizers](https://docs.dgraph.io/query-language/#indexing-with-custom-tokenizers).
* Dgraph adds support for distributed ACID transactions (a blog post is in works). Transactions can be done via the Go, Java or HTTP clients (JS client coming). See [docs here](https://dgraph.io/docs/clients/).
* Support for Indexing via [Custom tokenizers](https://dgraph.io/docs/query-language/#indexing-with-custom-tokenizers).
* Support for CJK languages in the full-text index.

### Changed

#### Running Dgraph

* We have consolidated all the `server`, `zero`, `live/bulk-loader` binaries into a single `dgraph` binary for convenience. Instructions for running Dgraph can be found in the [docs](https://docs.dgraph.io/get-started/).
* We have consolidated all the `server`, `zero`, `live/bulk-loader` binaries into a single `dgraph` binary for convenience. Instructions for running Dgraph can be found in the [docs](https://dgraph.io/docs/get-started/).
* For Dgraph server, Raft ids can be assigned automatically. A user can optionally still specify an ID, via `--idx` flag.
* `--peer` flag which was used to specify another Zero instance’s IP address is being replaced by `--zero` flag to indicate the address corresponds to Dgraph zero.
* `port`, `grpc_port` and `worker_port` flags have been removed from Dgraph server and Zero. The ports are:
Expand All @@ -2032,14 +2032,14 @@ Users can set `port_offset` flag, to modify these fixed ports.
}
```
* Facets response structure has been modified and is a lot flatter. Facet key is now `predicate|facet_name`.
Examples for [Go client](https://godoc.org/github.com/dgraph-io/dgraph/client#example-Txn-Mutate-Facets) and [HTTP](https://docs.dgraph.io/query-language/#facets-edge-attributes).
Examples for [Go client](https://godoc.org/github.com/dgraph-io/dgraph/client#example-Txn-Mutate-Facets) and [HTTP](https://dgraph.io/docs/query-language/#facets-edge-attributes).
* Query latency is now returned as numeric (ns) instead of string.
* [`Recurse`](https://docs.dgraph.io/query-language/#recurse-query) is now a directive. So queries with `recurse` keyword at root won't work anymore.
* Syntax for [`count` at root](https://docs.dgraph.io/query-language/#count) has changed. You need to ask for `count(uid)`, instead of `count()`.
* [`Recurse`](https://dgraph.io/docs/query-language/#recurse-query) is now a directive. So queries with `recurse` keyword at root won't work anymore.
* Syntax for [`count` at root](https://dgraph.io/docs/query-language/#count) has changed. You need to ask for `count(uid)`, instead of `count()`.

#### Mutations

* Mutations can only be done via `Mutate` Grpc endpoint or via [`/mutate` HTTP handler](https://docs.dgraph.io/clients/#transactions).
* Mutations can only be done via `Mutate` Grpc endpoint or via [`/mutate` HTTP handler](https://dgraph.io/docs/clients/#transactions).
* `Mutate` Grpc endpoint can be used to set/ delete JSON, or set/ delete a list of N-Quads and set/ delete raw RDF strings.
* Mutation blocks don't require the mutation keyword anymore. Here is an example of the new syntax.
```
Expand All @@ -2050,7 +2050,7 @@ Examples for [Go client](https://godoc.org/github.com/dgraph-io/dgraph/client#ex
}
}
```
* [`Upsert`](https://docs.dgraph.io/v0.8.3/query-language/#upsert) directive and [mutation variables](https://docs.dgraph.io/v0.8.3/query-language/#variables-in-mutations) go away. Both these functionalities can now easily be achieved via transactions.
* [`Upsert`](https://dgraph.io/docs/v0.8.3/query-language/#upsert) directive and [mutation variables](https://dgraph.io/docs/v0.8.3/query-language/#variables-in-mutations) go away. Both these functionalities can now easily be achieved via transactions.

#### Schema

Expand All @@ -2063,7 +2063,7 @@ Examples for [Go client](https://godoc.org/github.com/dgraph-io/dgraph/client#ex
* `Query` Grpc endpoint returns response in JSON under `Json` field instead of protocol buffer. `client.Unmarshal` method also goes away from the Go client. Users can use `json.Unmarshal` for unmarshalling the response.
* Response for predicate of type `geo` can be unmarshalled into a struct. Example [here](https://godoc.org/github.com/dgraph-io/dgraph/client#example-package--SetObject).
* `Node` and `Edge` structs go away along with the `SetValue...` methods. We recommend using [`SetJson`](https://godoc.org/github.com/dgraph-io/dgraph/client#example-package--SetObject) and `DeleteJson` fields to do mutations.
* Examples of how to use transactions using the client can be found at https://docs.dgraph.io/clients/#go.
* Examples of how to use transactions using the client can be found at https://dgraph.io/docs/clients/#go.

### Removed
- Embedded dgraph goes away. We haven’t seen much usage of this feature. And it adds unnecessary maintenance overhead to the code.
Expand Down
8 changes: 4 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

## Getting Started

- Read the [Getting Started Guide](https://docs.dgraph.io/get-started/)
- [Take the Dgraph tour](https://tour.dgraph.io)
- Read the [Getting Started Guide](https://dgraph.io/docs/get-started/)
- [Take the Dgraph tour](https://dgraph.io/tour/)

## Setting Up the Development Environment

Expand Down Expand Up @@ -91,7 +91,7 @@ Commit timestamp : 2019-12-16 18:24:50 -0800
Branch : HEAD
Go version : go1.13.5
For Dgraph official documentation, visit https://docs.dgraph.io.
For Dgraph official documentation, visit https://dgraph.io/docs/.
For discussions about Dgraph , visit https://discuss.dgraph.io.
To say hi to the community , visit https://dgraph.slack.com.
Expand Down Expand Up @@ -126,7 +126,7 @@ Commit timestamp : 2019-12-16 20:52:06 -0800
Branch : master
Go version : go1.13.5
For Dgraph official documentation, visit https://docs.dgraph.io.
For Dgraph official documentation, visit https://dgraph.io/docs/.
For discussions about Dgraph , visit https://discuss.dgraph.io.
To say hi to the community , visit https://dgraph.slack.com.
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**Fast, Transactional, Distributed Graph Database.**

[![Wiki](https://img.shields.io/badge/res-wiki-blue.svg)](https://docs.dgraph.io)
[![Wiki](https://img.shields.io/badge/res-wiki-blue.svg)](https://dgraph.io/docs/)
[![Build Status](https://teamcity.dgraph.io/guestAuth/app/rest/builds/buildType:(id:Dgraph_Ci)/statusIcon.svg)](https://teamcity.dgraph.io/viewLog.html?buildTypeId=Dgraph_Ci&buildId=lastFinished&guest=1)
[![Coverage Status](https://coveralls.io/repos/github/dgraph-io/dgraph/badge.svg?branch=master)](https://coveralls.io/github/dgraph-io/dgraph?branch=master)
[![Go Report Card](https://goreportcard.com/badge/github.com/dgraph-io/dgraph)](https://goreportcard.com/report/github.com/dgraph-io/dgraph)
Expand All @@ -15,7 +15,7 @@ reducing disk seeks and network calls in a cluster.

Dgraph's goal is to provide [Google](https://www.google.com) production level scale and throughput,
with low enough latency to be serving real time user queries, over terabytes of structured data.
Dgraph supports [GraphQL-like query syntax](https://docs.dgraph.io/master/query-language/), and responds in [JSON](http://www.json.org/) and [Protocol Buffers](https://developers.google.com/protocol-buffers/) over [GRPC](http://www.grpc.io/) and HTTP.
Dgraph supports [GraphQL-like query syntax](https://dgraph.io/docs/master/query-language/), and responds in [JSON](http://www.json.org/) and [Protocol Buffers](https://developers.google.com/protocol-buffers/) over [GRPC](http://www.grpc.io/) and HTTP.

## Status

Expand Down Expand Up @@ -63,8 +63,8 @@ make install
## Get Started
**To get started with Dgraph, follow:**

- Installation to queries in 3 steps via [docs.dgraph.io](https://docs.dgraph.io/get-started/).
- A longer interactive tutorial via [tour.dgraph.io](https://tour.dgraph.io).
- Installation to queries in 3 steps via [dgraph.io/docs/](https://dgraph.io/docs/get-started/).
- A longer interactive tutorial via [dgraph.io/tour/](https://dgraph.io/tour/).
- Tutorial and
presentation videos on [YouTube channel](https://www.youtube.com/channel/UCghE41LR8nkKFlR3IFTRO4w/featured).

Expand Down Expand Up @@ -98,7 +98,7 @@ makes it easy to build applications with it.
| License | Apache 2.0 | GPL v3 | Apache 2.0 |

## Users
- **Dgraph official documentation is present at [docs.dgraph.io](https://docs.dgraph.io).**
- **Dgraph official documentation is present at [dgraph.io/docs/](https://dgraph.io/docs/).**
- For feature requests or questions, visit
[https://discuss.dgraph.io](https://discuss.dgraph.io).
- Check out [the demo at dgraph.io](http://dgraph.io) and [the visualization at
Expand All @@ -117,7 +117,7 @@ makes it easy to build applications with it.
- Please see [Contributing to Dgraph](https://github.com/dgraph-io/dgraph/blob/master/CONTRIBUTING.md) for guidelines on contributions.

## Client Libraries
The Dgraph team maintain a number of [officially supported client libraries](https://docs.dgraph.io/clients/). There are also libraries contributed by the community [unofficial client libraries](https://docs.dgraph.io/clients#unofficial-dgraph-clients).
The Dgraph team maintain a number of [officially supported client libraries](https://dgraph.io/docs/clients/). There are also libraries contributed by the community [unofficial client libraries](https://dgraph.io/docs/clients#unofficial-dgraph-clients).

## Contact
- Please use [discuss.dgraph.io](https://discuss.dgraph.io) for documentation, questions, feature requests and discussions.
Expand Down
2 changes: 1 addition & 1 deletion contrib/config/kubernetes/dgraph-ha/dgraph-ha.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ spec:
# Initializing the Alphas:
#
# You may want to initialize the Alphas with data before starting, e.g.
# with data from the Dgraph Bulk Loader: https://docs.dgraph.io/deploy/#bulk-loader.
# with data from the Dgraph Bulk Loader: https://dgraph.io/docs/deploy/#bulk-loader.
# You can accomplish by uncommenting this initContainers config. This
# starts a container with the same /dgraph volume used by Alpha and runs
# before Alpha starts.
Expand Down
2 changes: 1 addition & 1 deletion contrib/config/terraform/kubernetes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ The following table lists the configurable parameters of the template and their
> # Initializing the Alphas:
> #
> # You may want to initialize the Alphas with data before starting, e.g.
> # with data from the Dgraph Bulk Loader: https://docs.dgraph.io/deploy/#bulk-loader.
> # with data from the Dgraph Bulk Loader: https://dgraph.io/docs/deploy/#bulk-loader.
> # You can accomplish by uncommenting this initContainers config. This
> # starts a container with the same /dgraph volume used by Alpha and runs
> # before Alpha starts.
Expand Down
4 changes: 2 additions & 2 deletions graphql/admin/admin.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const (
"""
The group this node belongs to in the Dgraph cluster.
See : https://docs.dgraph.io/deploy/#cluster-setup.
See : https://dgraph.io/docs/deploy/#cluster-setup.
"""
group: Int
Expand Down Expand Up @@ -262,7 +262,7 @@ const (
"""
Starts an export of all data in the cluster. Export format should be 'rdf' (the default
if no format is given), or 'json'.
See : https://docs.dgraph.io/deploy/#export-database
See : https://dgraph.io/docs/deploy/#export-database
"""
export(input: ExportInput!): ExportPayload
Expand Down
4 changes: 2 additions & 2 deletions graphql/admin/endpoints_ee.go
Original file line number Diff line number Diff line change
Expand Up @@ -371,13 +371,13 @@ const adminTypes = `
const adminMutations = `
"""
Start a binary backup. See : https://docs.dgraph.io/enterprise-features/#binary-backups
Start a binary backup. See : https://dgraph.io/docs/enterprise-features/#binary-backups
"""
backup(input: BackupInput!) : BackupPayload
"""
Start restoring a binary backup. See :
https://docs.dgraph.io/enterprise-features/#binary-backups
https://dgraph.io/docs/enterprise-features/#binary-backups
"""
restore(input: RestoreInput!) : RestorePayload
Expand Down
4 changes: 2 additions & 2 deletions paper/dgraph.bib
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ @online{badger
}

@online{dgql,
title = "GraphQL+-: Dgraph Query Language \url{https://docs.dgraph.io/query-language}",
url = "https://docs.dgraph.io/query-language"
title = "GraphQL+-: Dgraph Query Language \url{https://dgraph.io/docs/query-language}",
url = "https://dgraph.io/docs/query-language"
}

@online{gql,
Expand Down
2 changes: 1 addition & 1 deletion systest/bulk_live_cases_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,6 @@ func DONOTRUNTestGoldenData(t *testing.T) {
// queries will have to be modified.

// TODO: Add tests similar to those in
// https://docs.dgraph.io/query-language/. These test most of the main
// https://dgraph.io/docs/query-language/. These test most of the main
// functionality of dgraph.
}
2 changes: 1 addition & 1 deletion wiki/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Dgraph Wiki

If you are looking for Dgraph documentation, you might find https://docs.dgraph.io much more readable.
If you are looking for Dgraph documentation, you might find https://dgraph.io/docs/ much more readable.

## Contributing

Expand Down
2 changes: 1 addition & 1 deletion wiki/content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Dgraph is an open-source, scalable, distributed, highly available and fast graph
<div class="col-12 col-sm-6">
<div class="section-item">
<div class="section-name">
<a href="https://tour.dgraph.io" target="_blank">
<a href="https://dgraph.io/tour/" target="_blank">
Tour of Dgraph
</a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion wiki/content/deploy/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -1518,7 +1518,7 @@ To enable query logging, you must set `-v=3` which will enable verbose logging f
## TLS configuration

{{% notice "note" %}}
This section refers to the `dgraph cert` command which was introduced in v1.0.9. For previous releases, see the previous [TLS configuration documentation](https://docs.dgraph.io/v1.0.7/deploy/#tls-configuration).
This section refers to the `dgraph cert` command which was introduced in v1.0.9. For previous releases, see the previous [TLS configuration documentation](https://dgraph.io/docs/v1.0.7/deploy/#tls-configuration).
{{% /notice %}}


Expand Down
2 changes: 1 addition & 1 deletion wiki/content/design-concepts/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ them in a Raft group.

---

{{% notice "outdated" %}}Sections below this one are outdated. You will find [Tour of Dgraph](https://tour.dgraph.io) a much helpful resource.{{% /notice %}}
{{% notice "outdated" %}}Sections below this one are outdated. You will find [Tour of Dgraph](https://dgraph.io/tour/) a much helpful resource.{{% /notice %}}

## Consistency Models
[Last updated: Mar 2018. This is outdated and is not how we do things anymore]
Expand Down
4 changes: 2 additions & 2 deletions wiki/content/enterprise-features/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -741,8 +741,8 @@ mutation {
{{% notice "note" %}}
This feature was introduced in [v1.1.1](https://github.com/dgraph-io/dgraph/releases/tag/v1.1.1).
For migrating unencrypted data to a new Dgraph cluster with encryption enabled, you need to
[export the database](https://docs.dgraph.io/deploy/#exporting-database) and [fast data load](https://docs.dgraph.io/deploy/#fast-data-loading),
preferably using the [bulk loader](https://docs.dgraph.io/deploy/#bulk-loader).
[export the database](https://dgraph.io/docs/deploy/#exporting-database) and [fast data load](https://dgraph.io/docs/deploy/#fast-data-loading),
preferably using the [bulk loader](https://dgraph.io/docs/deploy/#bulk-loader).
{{% /notice %}}

Encryption at rest refers to the encryption of data that is stored physically in any
Expand Down
4 changes: 2 additions & 2 deletions wiki/content/get-started/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ You need at least one Dgraph Zero and one Dgraph Alpha to get started.
**Here's a four-step tutorial to get you up and running.**

This is a quick-start guide to running Dgraph.
For an interactive walkthrough, take the [tour](https://tour.dgraph.io).
For an interactive walkthrough, take the [tour](https://dgraph.io/tour/).

{{% notice "tip" %}}
This guide is for the powerful query language of Dgraph, [GraphQL+-](https://dgraph.io/docs/master/query-language/#graphql)
Expand Down Expand Up @@ -288,7 +288,7 @@ data, set a schema and queried that data back.

- Go to [Clients]({{< relref "clients/index.md" >}}) to see how to
communicate with Dgraph from your application.
- Take the [Tour](https://tour.dgraph.io) for a guided tour of how to write queries in Dgraph.
- Take the [Tour](https://dgraph.io/tour/) for a guided tour of how to write queries in Dgraph.
- A wider range of queries can also be found in the
[Query Language]({{< relref "query-language/index.md" >}}) reference.
- See [Deploy]({{< relref "deploy/index.md" >}}) if you wish to run Dgraph
Expand Down
2 changes: 1 addition & 1 deletion wiki/content/howto/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ docker-compose up
```
### Use the increment tool to start a gRPC LB

In a different shell, run the `dgraph increment` [docs](https://docs.dgraph.io/howto/#using-the-increment-tool) tool against the Nginx gRPC load balancer (`nginx:9080`):
In a different shell, run the `dgraph increment` [docs](https://dgraph.io/docs/howto/#using-the-increment-tool) tool against the Nginx gRPC load balancer (`nginx:9080`):

```
docker-compose exec alpha1 dgraph increment --alpha nginx:9080 --num=10
Expand Down
4 changes: 2 additions & 2 deletions wiki/content/query-language/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ Dgraph's GraphQL+- is based on Facebook's [GraphQL](https://facebook.github.io/g

GraphQL+- is a work in progress. We're adding more features and we might further simplify existing ones.

## Take a Tour - https://tour.dgraph.io
## Take a Tour - https://dgraph.io/tour/

This document is the Dgraph query reference material. It is not a tutorial. It's designed as a reference for users who already know how to write queries in GraphQL+- but need to check syntax, or indices, or functions, etc.

{{% notice "note" %}}If you are new to Dgraph and want to learn how to use Dgraph and GraphQL+-, take the tour - https://tour.dgraph.io{{% /notice %}}
{{% notice "note" %}}If you are new to Dgraph and want to learn how to use Dgraph and GraphQL+-, take the tour - https://dgraph.io/tour/{{% /notice %}}


### Running examples
Expand Down
2 changes: 1 addition & 1 deletion wiki/content/tutorial-1/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ In our query, we have named it as `people`. However, you could use any other nam

The `func` parameter has to be associated with a built-in function of Dgraph.
Dgraph offers a variety of built-in functions. The `has` function is one of them.
Check out the [query language guide](https://docs.dgraph.io/query-language) to know more about other built-in functions in Dgraph.
Check out the [query language guide](https://dgraph.io/docs/query-language) to know more about other built-in functions in Dgraph.

The inner fields of the query are similar to the column names in a SQL select statement or to a GraphQL query!

Expand Down
Loading

0 comments on commit e22db97

Please sign in to comment.