8000 Migrate content from old repo by Simran-B · Pull Request #199 · arangodb/docs-hugo · GitHub
[go: up one dir, main page]

Skip to content

Migrate content from old repo #199

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 19 commits into from
Sep 14, 2023
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
38b16a5
Migrate 3.10, 3.11, and 3.12 content as well as the (shared) images f…
Simran-B Sep 12, 2023
fd69778
[skip ci] Automatic commit of generated files from CircleCI
Sep 12, 2023
8ac95b7
[CircleCI Generated] generate-scheduled-5742 (#200)
arangodb-docs-automation[bot] Sep 12, 2023
1132393
Remove some leading whitespace in code blocks
Simran-B Sep 12, 2023
6958b37
Remove unnecessary ~ from curl code blocks
Simran-B Sep 12, 2023
878958e
Fix indentation of ```js examples
Simran-B Sep 12, 2023
73040f6
Remove pageToc.disable
Simran-B Sep 12, 2023
a252289
Add back horizontal rulers and a conditional text lost in migration, …
Simran-B Sep 13, 2023
9c6b2a2
Apply .fixed layout to two more special tables
Simran-B Sep 13, 2023
18a837b
Use Markdown hard breaks and fix links
Simran-B Sep 13, 2023
219e81b
CSS: Set a bottom instead of top margin for nested lists
Simran-B Sep 13, 2023
31545da
Decrease list indentation, use default bullet points (different per n…
Simran-B Sep 13, 2023
081ea43
Decrease top and bottom margin of admonitions
Simran-B Sep 13, 2023
2ac1386
Merge branch 'main' of https://github.com/arangodb/docs-hugo into mig…
Simran-B Sep 13, 2023
8f824d6
Replace more <br>
Simran-B Sep 13, 2023
1079cb2
Remove api-docs.json and add to ignore list
Simran-B Sep 13, 2023
2bf0257
Merge branch 'main' of https://github.com/arangodb/docs-hugo into mig…
Simran-B Sep 14, 2023
ada3fff
[skip ci] Automatic commit of generated files from CircleCI
Sep 14, 2023
aa55392
Update README
Simran-B Sep 14, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update README
  • Loading branch information
Simran-B committed Sep 14, 2023
commit aa553923cbe39a0756ce337e0e5195cc6a3fa3ed
51 changes: 26 additions & 25 deletions README.md
8000
Original file line number Diff line number Diff line change
Expand Up @@ -869,13 +869,13 @@ A complete example:
name: ensureUniquePersistentSingle
description: Create a unique persistent index on a single document attribute
---
~ db._create("ids");
db.ids.ensureIndex({ type: "persistent", fields: [ "myId" ], unique: true });
db.ids.save({ "myId": 123 });
db.ids.save({
"myId": 123
}); // xpError(ERROR_ARANGO_UNIQUE_CONSTRAINT_VIOLATED)
~ db._drop("ids");
~db._create("ids");
db.ids.ensureIndex({ type: "persistent", fields: [ "myId" ], unique: true });
db.ids.save({ "myId": 123 });
db.ids.save({
"myId": 123
}); // xpError(ERROR_ARANGO_UNIQUE_CONSTRAINT_VIOLATED)
~db._drop("ids");
```
````

Expand Down Expand Up @@ -919,20 +919,20 @@ relevant for the example, you can use a leading tilde `~` to suppress individual
lines:

```js
~ db._create("collection");
db.collection.save({ _key: "foo" });
~ db._drop("collection");
~db._create("collection");
db.collection.save({ _key: "foo" });
~db._drop("collection");
```

Examples need to remove the collections and Views they create. Not dropping them
will raise an error unless they are specifically exempt:

```js
~ db._create("collection");
~ db._createView("view", "arangosearch", {...});
db.collection.save({...});
~ addIgnoreView("view");
~ addIgnoreCollection("collection");
~db._create("collection");
~db._createView("view", "arangosearch", {...});
db.collection.save({...});
~addIgnoreView("view");
~addIgnoreCollection("collection");
```

This is helpful for creating collections and Views once, using them in multiple
Expand All @@ -949,10 +949,10 @@ sortable to have them execute in the correct order.
The last example of the series should undo the ignore to catch unintended leftovers:

```js
~ removeIgnoreCollection("collection");
~ removeIgnoreView("view");
~ db._dropView("view");
~ db._drop("collection");
~removeIgnoreCollection("collection");
~removeIgnoreView("view");
~db._dropView("view");
~db._drop("collection");
```

Note that a series of examples needs to be contained within a single file.
Expand Down Expand Up @@ -986,7 +986,7 @@ db._query(`RETURN REGEX_SPLIT(@t, @r)`, {t: "foo\t bar\r baz\n foob", r: "\\s+|(

Complete example:

````markdown
````yaml
```aql
---
name: joinTuples
Expand All @@ -1013,7 +1013,7 @@ An example can optionally specify a `dataset` in the front matter that will be
loaded before the query is run:

```yaml
dataset: {name_of_dataset}
dataset: name_of_dataset
```

See [datasets.json](toolchain/arangoproxy/internal/utils/)
Expand Down Expand Up @@ -1059,14 +1059,13 @@ Used to describe an HTTP REST API endpoint using the
version 3.1.0.

The content inside the codeblock is a standard OpenAPI endpoint description in
YAML format for a single ArangoDB endpoint, with a small twist: it starts with
what looks like a YAML comment but is actually the headline, which is also used
as the endpoint summary automatically:
YAML format for a single ArangoDB endpoint. The headline above the code block is
also used as the endpoint summary automatically:

````yaml
```openapi
### Get the service README

```openapi
paths:
/_api/foxx/readme:
get:
Expand Down Expand Up @@ -1105,6 +1104,7 @@ file. This file is needed by the web interface for _Swagger UI_.

Complete example:

````
```curl
---
name: HttpAqlToBase64
Expand All @@ -1116,6 +1116,7 @@ var response = logCurlRequest('POST', url, body);
assert(response.code === 201);
logJsonResponse(response);
```
````

Unlike arangosh examples (`` ```js ``), requests and responses
need to be output explicitly by calling one of the following functions:
Expand Down
0