Skip to content
This repository was archived by the owner on Dec 13, 2023. It is now read-only.

Commit e3eb2d5

Browse files
Simran-Bnerpaula
andauthored
Update deps 2022-10-11 (#1143)
* Update to Jekyll 4.2.2, bundler 2.3.23, and other deps * Use _site/docs as output folder to make running htmltest easier * Adjustments for new output folder * Change Netlify publish directory * Adjust README for output dir, add jekyll clean and htmltest * Disable generation of unversioned redirects to stable (default feature of the versions plugin) * kube-arangodb: Conditional content about 3.9+ license management * Let Jenkins target _site/docs but place build artifact in the well-known location * Leave Jekyll installation to bundler to install version as per Gemlock.file Jekyll >= 4.3.0 uses Rouge 4.0+ which requires Ruby >= 2.7.0, making it incompatible with our Ruby 2.6.x setup * Update Bundler to v2.3.25, Jekyll deps, htmltest 0.16.0 * Remove 3.9+ content from older versions, fix links * Fix more links Co-authored-by: Paula Mihu <[email protected]>
1 parent 8406f82 commit e3eb2d5

22 files changed

+79
-132
lines changed

.htmltest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
DirectoryPath: "htmltest"
1+
DirectoryPath: "_site"
22
IgnoreDirectoryMissingTrailingSlash: true
33
IgnoreAltMissing: true
44
CheckDoctype: false

3.10/deployment-kubernetes-usage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ in the [kube-arangodb repository](https://github.com/arangodb/kube-arangodb/rele
6868

6969
## ArangoDB deployment creation
7070

71-
After deploying the latest ArangoDB Kubernetes operator, use the command below to deploy your [license key](../administration-license.html) as a secret which is required for the Enterprise Edition starting with version 3.9:
71+
After deploying the latest ArangoDB Kubernetes operator, use the command below to deploy your [license key](administration-license.html) as a secret which is required for the Enterprise Edition starting with version 3.9:
7272

7373
```bash
7474
kubectl create secret generic arango-license-key --from-literal=token-v2="<license-string>"

3.10/start-using-aql.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,17 @@ There are always calls to the server's API under the hood, but the web interface
5151
and the `db` object abstract away the low-level communication details and are
5252
thus easier to use.
5353

54-
The ArangoDB Web Interface has a [specific tab for AQL queries execution](../aql/invocation-with-web-interface.html).
54+
The ArangoDB Web Interface has a [specific tab for AQL queries execution](aql/invocation-with-web-interface.html).
5555

56-
You can run [AQL queries from the ArangoDB Shell](../aql/invocation-with-arangosh.html)
57-
with the [_query](aql/invocation-with-arangosh.html#with-db_query) and
58-
[_createStatement](aql/invocation-with-arangosh.html#with-db_createstatement-arangostatement) methods
59-
of the [`db` object](../appendix-references-dbobject.html). This chapter
56+
You can run [AQL queries from the ArangoDB Shell](aql/invocation-with-arangosh.html)
57+
with the [`_query()`](aql/invocation-with-arangosh.html#with-db_query) and
58+
[`_createStatement()`](aql/invocation-with-arangosh.html#with-db_createstatement-arangostatement) methods
59+
of the [`db` object](appendix-references-dbobject.html). This chapter
6060
also describes how to use bind parameters, statistics, counting and cursors with
6161
arangosh.
6262

6363
If you are using Foxx, see [how to write database queries](foxx-getting-started.html#writing-database-queries)
6464
for examples including tagged template strings.
6565

6666
If you want to run AQL queries from your application via the HTTP REST API,
67-
see the full API description at [HTTP Interface for AQL Query Cursors](../http/aql-query-cursor.html).
67+
see the full API description at [HTTP Interface for AQL Query Cursors](http/aql-query-cursor.html).

3.10/transactions-stream-transactions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ It is therefore advisable to keep the transactions as short as possible.
3333
{% endhint %}
3434

3535
For a more detailed description of how transactions work in ArangoDB, please
36-
refer to [Transactions](../transactions.html).
36+
refer to [Transactions](transactions.html).
3737

3838
You can use Stream Transactions via the [JavaScript API](#javascript-api) and
3939
the [HTTP API](http/transaction-stream-transaction.html).

3.11/deployment-kubernetes-usage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ in the [kube-arangodb repository](https://github.com/arangodb/kube-arangodb/rele
6868

6969
## ArangoDB deployment creation
7070

71-
After deploying the latest ArangoDB Kubernetes operator, use the command below to deploy your [license key](../administration-license.html) as a secret which is required for the Enterprise Edition starting with version 3.9:
71+
After deploying the latest ArangoDB Kubernetes operator, use the command below to deploy your [license key](administration-license.html) as a secret which is required for the Enterprise Edition starting with version 3.9:
7272

7373
```bash
7474
kubectl create secret generic arango-license-key --from-literal=token-v2="<license-string>"

3.11/start-using-aql.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,17 @@ There are always calls to the server's API under the hood, but the web interface
5151
and the `db` object abstract away the low-level communication details and are
5252
thus easier to use.
5353

54-
The ArangoDB Web Interface has a [specific tab for AQL queries execution](../aql/invocation-with-web-interface.html).
54+
The ArangoDB Web Interface has a [specific tab for AQL queries execution](aql/invocation-with-web-interface.html).
5555

56-
You can run [AQL queries from the ArangoDB Shell](../aql/invocation-with-arangosh.html)
57-
with the [_query](aql/invocation-with-arangosh.html#with-db_query) and
58-
[_createStatement](aql/invocation-with-arangosh.html#with-db_createstatement-arangostatement) methods
59-
of the [`db` object](../appendix-references-dbobject.html). This chapter
56+
You can run [AQL queries from the ArangoDB Shell](aql/invocation-with-arangosh.html)
57+
with the [`_query()`](aql/invocation-with-arangosh.html#with-db_query) and
58+
[`_createStatement()`](aql/invocation-with-arangosh.html#with-db_createstatement-arangostatement) methods
59+
of the [`db` object](appendix-references-dbobject.html). This chapter
6060
also describes how to use bind parameters, statistics, counting and cursors with
6161
arangosh.
6262

6363
If you are using Foxx, see [how to write database queries](foxx-getting-started.html#writing-database-queries)
6464
for examples including tagged template strings.
6565

6666
If you want to run AQL queries from your application via the HTTP REST API,
67-
see the full API description at [HTTP Interface for AQL Query Cursors](../http/aql-query-cursor.html).
67+
see the full API description at [HTTP Interface for AQL Query Cursors](http/aql-query-cursor.html).

3.11/transactions-stream-transactions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ It is therefore advisable to keep the transactions as short as possible.
3333
{% endhint %}
3434

3535
For a more detailed description of how transactions work in ArangoDB, please
36-
refer to [Transactions](../transactions.html).
36+
refer to [Transactions](transactions.html).
3737

3838
You can use Stream Transactions via the [JavaScript API](#javascript-api) and
3939
the [HTTP API](http/transaction-stream-transaction.html).

3.6/deployment-kubernetes-usage.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,6 @@ in the [kube-arangodb repository](https://github.com/arangodb/kube-arangodb/rele
6868

6969
## ArangoDB deployment creation
7070

71-
After deploying the latest ArangoDB Kubernetes operator, use the command below to deploy your [license key](../administration-license.html) as a secret which is required for the Enterprise Edition starting with version 3.9:
72-
73-
```bash
74-
kubectl create secret generic arango-license-key --from-literal=token-v2="<license-string>"
75-
```
76-
7771
Once the operator is running, you can create your ArangoDB database deployment
7872
by creating a `ArangoDeployment` custom resource and deploying it into your
7973
Kubernetes cluster.
@@ -83,15 +77,6 @@ For example (all examples can be found in the [kube-arangodb repository](https:/
8377
```bash
8478
kubectl apply -f examples/simple-cluster.yaml
8579
```
86-
Additionally, you can specify the license key required for the Enterprise Edition starting with version 3.9 as seen below:
87-
88-
```yaml
89-
spec:
90-
[...]
91-
image: arangodb/enterprise:3.9.1
92-
license:
93-
secretName: arango-license-key
94-
```
9580

9681
## Deployment removal
9782

3.7/deployment-kubernetes-usage.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,6 @@ in the [kube-arangodb repository](https://github.com/arangodb/kube-arangodb/rele
6868

6969
## ArangoDB deployment creation
7070

71-
After deploying the latest ArangoDB Kubernetes operator, use the command below to deploy your [license key](../administration-license.html) as a secret which is required for the Enterprise Edition starting with version 3.9:
72-
73-
```bash
74-
kubectl create secret generic arango-license-key --from-literal=token-v2="<license-string>"
75-
```
76-
7771
Once the operator is running, you can create your ArangoDB database deployment
7872
by creating a `ArangoDeployment` custom resource and deploying it into your
7973
Kubernetes cluster.
@@ -83,15 +77,6 @@ For example (all examples can be found in the [kube-arangodb repository](https:/
8377
```bash
8478
kubectl apply -f examples/simple-cluster.yaml
8579
```
86-
Additionally, you can specify the license key required for the Enterprise Edition starting with version 3.9 as seen below:
87-
88-
```yaml
89-
spec:
90-
[...]
91-
image: arangodb/enterprise:3.9.1
92-
license:
93-
secretName: arango-license-key
94-
```
9580

9681
## Deployment removal
9782

3.8/deployment-kubernetes-usage.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,6 @@ in the [kube-arangodb repository](https://github.com/arangodb/kube-arangodb/rele
6868

6969
## ArangoDB deployment creation
7070

71-
After deploying the latest ArangoDB Kubernetes operator, use the command below to deploy your [license key](../administration-license.html) as a secret which is required for the Enterprise Edition starting with version 3.9:
72-
73-
```bash
74-
kubectl create secret generic arango-license-key --from-literal=token-v2="<license-string>"
75-
```
76-
7771
Once the operator is running, you can create your ArangoDB database deployment
7872
by creating a `ArangoDeployment` custom resource and deploying it into your
7973
Kubernetes cluster.
@@ -83,15 +77,6 @@ For example (all examples can be found in the [kube-arangodb repository](https:/
8377
```bash
8478
kubectl apply -f examples/simple-cluster.yaml
8579
```
86-
Additionally, you can specify the license key required for the Enterprise Edition starting with version 3.9 as seen below:
87-
88-
```yaml
89-
spec:
90-
[...]
91-
image: arangodb/enterprise:3.9.1
92-
license:
93-
secretName: arango-license-key
94-
```
9580

9681
## Deployment removal
9782

3.8/transactions-stream-transactions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ It is therefore advisable to keep the transactions as short as possible.
3333
{% endhint %}
3434

3535
For a more detailed description of how transactions work in ArangoDB, please
36-
refer to [Transactions](../transactions.html).
36+
refer to [Transactions](transactions.html).
3737

3838
You can use Stream Transactions via the [JavaScript API](#javascript-api) and
3939
the [HTTP API](http/transaction-stream-transaction.html).

3.9/deployment-kubernetes-usage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ in the [kube-arangodb repository](https://github.com/arangodb/kube-arangodb/rele
6868

6969
## ArangoDB deployment creation
7070

71-
After deploying the latest ArangoDB Kubernetes operator, use the command below to deploy your [license key](../administration-license.html) as a secret which is required for the Enterprise Edition starting with version 3.9:
71+
After deploying the latest ArangoDB Kubernetes operator, use the command below to deploy your [license key](administration-license.html) as a secret which is required for the Enterprise Edition starting with version 3.9:
7272

7373
```bash
7474
kubectl create secret generic arango-license-key --from-literal=token-v2="<license-string>"

3.9/transactions-stream-transactions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ It is therefore advisable to keep the transactions as short as possible.
3333
{% endhint %}
3434

3535
For a more detailed description of how transactions work in ArangoDB, please
36-
refer to [Transactions](../transactions.html).
36+
refer to [Transactions](transactions.html).
3737

3838
You can use Stream Transactions via the [JavaScript API](#javascript-api) and
3939
the [HTTP API](http/transaction-stream-transaction.html).

Dockerfile

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
FROM ruby:2.6.7-buster
2-
3-
RUN apt update && \
4-
apt install -y ruby-full build-essential zlib1g-dev wget python2.7 libpython2.7
1+
FROM ruby:2.6.10-buster
52

63
RUN cd /tmp && \
7-
wget https://github.com/wjdp/htmltest/releases/download/v0.14.0/htmltest_0.14.0_linux_amd64.tar.gz && \
8-
tar xvzf htmltest_0.14.0_linux_amd64.tar.gz && \
4+
wget --no-verbose https://github.com/wjdp/htmltest/releases/download/v0.16.0/htmltest_0.16.0_linux_amd64.tar.gz && \
5+
tar xvzf htmltest_0.16.0_linux_amd64.tar.gz && \
96
mv htmltest /usr/local/bin
107

118
RUN mkdir /root/gems
@@ -15,7 +12,7 @@ ENV PATH="/root/gems/bin:${PATH}"
1512
# python md script needs that :S
1613
ENV LC_ALL=C.UTF-8
1714

18-
RUN gem install bundler:2.2.28 jekyll
15+
RUN gem install bundler:2.3.25
1916

2017
VOLUME /docs
2118
WORKDIR /docs

Gemfile.lock

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
addressable (2.8.0)
5-
public_suffix (>= 2.0.2, < 5.0)
4+
addressable (2.8.1)
5+
public_suffix (>= 2.0.2, < 6.0)
66
algolia_html_extractor (2.6.4)
77
json (~> 2.0)
88
nokogiri (~> 1.10)
99
algoliasearch (1.27.5)
1010
httpclient (~> 2.8, >= 2.8.3)
1111
json (>= 1.5.1)
1212
colorator (1.1.0)
13-
concurrent-ruby (1.1.9)
14-
em-websocket (0.5.2)
13+
concurrent-ruby (1.1.10)
14+
em-websocket (0.5.3)
1515
eventmachine (>= 0.12.9)
16-
http_parser.rb (~> 0.6.0)
16+
http_parser.rb (~> 0)
1717
eventmachine (1.2.7)
1818
eventmachine (1.2.7-x64-mingw32)
19-
ffi (1.15.4)
20-
ffi (1.15.4-x64-mingw32)
19+
ffi (1.15.5)
20+
ffi (1.15.5-x64-mingw32)
2121
filesize (0.2.0)
2222
forwardable-extended (2.6.0)
23-
http_parser.rb (0.6.0)
23+
http_parser.rb (0.8.0)
2424
httpclient (2.8.3)
25-
i18n (1.8.10)
25+
i18n (1.12.0)
2626
concurrent-ruby (~> 1.0)
27-
jekyll (4.2.1)
27+
jekyll (4.2.2)
2828
addressable (~> 2.4)
2929
colorator (~> 1.0)
3030
em-websocket (~> 0.5)
@@ -50,48 +50,48 @@ GEM
5050
verbal_expressions (~> 0.1.5)
5151
jekyll-redirect-from (0.16.0)
5252
jekyll (>= 3.3, < 5.0)
53-
jekyll-sass-converter (2.1.0)
53+
jekyll-sass-converter (2.2.0)
5454
sassc (> 2.0.1, < 3.0)
5555
jekyll-watch (2.2.1)
5656
listen (~> 3.0)
57-
json (2.5.1)
58-
kramdown (2.3.1)
57+
json (2.6.2)
58+
kramdown (2.4.0)
5959
rexml
6060
kramdown-parser-gfm (1.1.0)
6161
kramdown (~> 2.0)
6262
liquid (4.0.3)
63-
listen (3.7.0)
63+
listen (3.7.1)
6464
rb-fsevent (~> 0.10, >= 0.10.3)
6565
rb-inotify (~> 0.9, >= 0.9.10)
6666
mercenary (0.4.0)
67-
mini_portile2 (2.6.1)
68-
nokogiri (1.12.5)
69-
mini_portile2 (~> 2.6.1)
67+
mini_portile2 (2.8.0)
68+
nokogiri (1.13.9)
69+
mini_portile2 (~> 2.8.0)
7070
racc (~> 1.4)
71-
nokogiri (1.12.5-x64-mingw32)
71+
nokogiri (1.13.9-x64-mingw32)
7272
racc (~> 1.4)
73-
nokogiri (1.12.5-x86_64-linux)
73+
nokogiri (1.13.9-x86_64-linux)
7474
racc (~> 1.4)
7575
pathutil (0.16.2)
7676
forwardable-extended (~> 2.6)
7777
progressbar (1.11.0)
78-
public_suffix (4.0.6)
79-
racc (1.5.2)
80-
rb-fsevent (0.11.0)
78+
public_suffix (5.0.0)
79+
racc (1.6.0)
80+
rb-fsevent (0.11.2)
8181
rb-inotify (0.10.1)
8282
ffi (~> 1.0)
8383
rexml (3.2.5)
84-
rouge (3.26.1)
84+
rouge (3.30.0)
8585
safe_yaml (1.0.5)
8686
sassc (2.4.0)
8787
ffi (~> 1.9)
8888
sassc (2.4.0-x64-mingw32)
8989
ffi (~> 1.9)
9090
terminal-table (2.0.0)
9191
unicode-display_width (~> 1.1, >= 1.1.1)
92-
tzinfo (2.0.4)
92+
tzinfo (2.0.5)
9393
concurrent-ruby (~> 1.0)
94-
tzinfo-data (1.2021.2)
94+
tzinfo-data (1.2022.6)
9595
tzinfo (>= 1.0.0)
9696
unicode-display_width (1.8.0)
9797
verbal_expressions (0.1.5)
@@ -110,4 +110,4 @@ DEPENDENCIES
110110
wdm (~> 0.1.1)
111111

112112
BUNDLED WITH
113-
2.2.28
113+
2.3.25

README.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ changes, use:
9494

9595
`bundle exec jekyll build`
9696

97-
The generated content will be stored in the `_site/` folder.
97+
The generated content will be stored in the `_site/docs/` folder.
9898

9999
To serve the content from a previous build without watching for changes, use:
100100

@@ -115,28 +115,27 @@ encounter stale content, then stop the container and run:
115115

116116
`docker run --rm -v $(pwd):/docs -p 4000:4000 arangodb/arangodb-docs bundler exec jekyll serve -H 0.0.0.0 --trace`
117117

118-
Alternatively, you may stop the container, execute
119-
`rm -rf .jekyll-cache/ .jekyll-metadata _site/`, and run the Docker command
120-
again (without additional arguments).
118+
Alternatively, you may stop the container, execute either of the following
119+
commands, and run the normal Docker command again (without additional arguments).
120+
- `rm -rf .jekyll-cache/ .jekyll-metadata _site/`
121+
- `docker run --rm -v $(pwd):/docs arangodb/arangodb-docs bundler exec jekyll clean`
121122

122123
To build the documentation without watch mode or serving the resulting site,
123124
you can execute:
124125

125126
`docker run --rm -v $(pwd):/docs arangodb/arangodb-docs bundler exec jekyll build --trace`
126127

127-
After that the HTML files in `_site/` are ready to be served by a webserver.
128-
129-
Please note that you still need to put them into a `/docs` subdirectory if you
130-
want to serve the documentation with another web server (only relevant for
131-
hosting the documentation). Example:
128+
After that the HTML files in `_site/` are ready to be served by a webserver:
132129

133130
```bash
134-
mkdir -p /tmp/arangodocs
135-
cp -a _site /tmp/arangodocs/docs
136-
cd /tmp/arangodocs
137-
python -m http.server
131+
cd _site
132+
python3 -m http.server
138133
```
139134

135+
To check for broken references (e.g. internal links), you can run `htmltest`:
136+
137+
`docker run --rm -v $(pwd):/docs arangodb/arangodb-docs htmltest`
138+
140139
### Performance
141140

142141
A full build (all versions) will take quite a while. You can use Jekyll's

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
description: >- # this means to ignore newlines until "baseurl:"
1717
ArangoDB Documentation
1818
baseurl: "/docs" # the subpath of your site, e.g. /blog
19+
destination: "_site/docs"
1920

2021
url: "https://www.arangodb.com" # the base hostname & protocol for your site
2122

0 commit comments

Comments
 (0)