Skip to content

Commit 4e32ef0

Browse files
Documentation improvements (#319)
* WIP * WIP * WIP * WIP * Adds preview * [add] updated performance section with diagrams and some rephrasing * [add] added configuration info regarding INTRA_OP_PARALLELISM and INTER_OP_PARALLELISM * [add] added AI.DAGRUN documentation * [wip] kicked off examples page * [wip] kicked off examples page * [wip] wip on documentation * [wip] wip on documentation * [wip] chaning example image location * [wip] experimenting with image positioning on examples * [fix] correcting classified image path * [fix] fixed example image path * [fix] fixed TBD on scriptrun example * ASCII-fies diagram * ASCII-fies diagram * Dang the diagram * Diagram again * [add] kick-off the developer notes page * [wip] kick-off developer page. reference dlpack on documentation * [add] added Developer reference link * [wip] added main source files to document * [wip] improved code documentation of dag.h/c err.h/c and tensor.h/c * [wip] improved further code documentation on tensor.h * [wip] added backends.h and backends directory developer info. pushing forward on developer.md information * [add] updated model.h/c with the documentation of each method * [wip] added further documentation on the src/background_workers.h/.c files. wip on coverage fix * [wip] wip on coverage fix * [wip] added documentation to the stats.h/c and script.h/c files. Ran a spelling on src/* and docs/* * [fix] removed repeating ai.tensorget from dag's documentation * [wip] fixed formatting issues on developer.md * [fix] fixed documentation on ai.tensorget * [wip] finished code comment all methods on the major building blocks of RedisAI * Adds contrib.md * [add] documentation revision for RC - iteration 1 * [fix] updated developer notes * [fix] fixed the quickstart commands and made reference to #developer * Tweeks pt. 1 * [fix] fix performance diagram links * Tweaks pt.2 * Corrects to `MODULE LOAD` ht @DvirDukhan * Adds versioned docs and deploys docs from a GitHub Action Co-authored-by: filipecosta90 <filipecosta.90@gmail.com>
1 parent 45214e5 commit 4e32ef0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+2621
-869
lines changed

.circleci/config.yml

Lines changed: 18 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 2.1
22

33
commands:
4-
ci_steps:
4+
setup_steps:
55
parameters:
66
platform:
77
type: string
@@ -27,6 +27,13 @@ commands:
2727
command: |
2828
mkdir -p ~/workspace
2929
chown `whoami` ~/workspace
30+
31+
test_steps:
32+
parameters:
33+
platform:
34+
type: string
35+
steps:
36+
- checkout
3037
- run:
3138
name: Build
3239
command: make -C opt all SHOW=1
@@ -48,7 +55,7 @@ commands:
4855
- 'packages/branch/*.tgz'
4956
- store_artifacts:
5057
path: test/logs
51-
58+
5259
deploy:
5360
parameters:
5461
from:
@@ -64,7 +71,9 @@ jobs:
6471
docker:
6572
- image: redisfab/rmbuilder:5.0.7-x64-buster
6673
steps:
67-
- ci_steps:
74+
- setup_steps:
75+
platform: debian
76+
- test_steps:
6877
platform: debian
6978

7079
coverage:
@@ -89,7 +98,7 @@ jobs:
8998
mkdir -p ~/workspace
9099
chown `whoami` ~/workspace
91100
- run:
92-
name: Build
101+
name: Build for coverage
93102
command: |
94103
make -C opt all COV=1 SHOW=1
95104
- run:
@@ -107,7 +116,9 @@ jobs:
107116
name: Fix macOS Python installation
108117
command: |
109118
brew reinstall -f python2
110-
- ci_steps:
119+
- setup_steps:
120+
platform: macosx
121+
- test_steps:
111122
platform: macosx
112123

113124
build-multiarch-docker:
@@ -170,19 +181,6 @@ jobs:
170181
- store_artifacts:
171182
path: ~/workspace/packages/<<parameters.package>>
172183

173-
deploy_docs:
174-
docker:
175-
- image: redisfab/rmbuilder:5.0.7-x64-buster
176-
steps:
177-
- checkout
178-
- run:
179-
name: Build Docs
180-
command: python3 -m mkdocs build
181-
- run:
182-
name: Deploy Docs to S3
183-
command: |
184-
aws s3 cp site s3://oss.redislabs.com/$WEBSITE_FOLDER/ --acl public-read --recursive
185-
186184
workflows:
187185
version: 2
188186
build_and_package:
@@ -196,7 +194,7 @@ workflows:
196194
branches:
197195
only: /.*/
198196
tags:
199-
only: /.*/
197+
only: /.*/
200198
# - build-macos:
201199
# filters:
202200
# branches:
@@ -206,7 +204,7 @@ workflows:
206204
#- build-multiarch-docker:
207205
# filters:
208206
# tags:
209-
# only: /^v[0-9].*/
207+
# only: /^v[0-9].*/
210208
# branches:
211209
# ignore: /.*/
212210
- build-gpu:
@@ -231,10 +229,6 @@ workflows:
231229
ignore: /.*/
232230
tags:
233231
only: '/^v[0-9].*/'
234-
- deploy_docs:
235-
filters:
236-
branches:
237-
only: master
238232

239233
#nightly:
240234
# triggers:

.github/workflows/deploy-docs.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Deploy docs to website
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- '[0-9]+.[0-9]+'
8+
paths:
9+
- 'mkdocs.yml'
10+
- 'docs/**'
11+
12+
jobs:
13+
deploy:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@master
18+
- name: Set up Python 3.x
19+
uses: actions/setup-python@v1
20+
with:
21+
python-version: '3.x'
22+
- name: Display Python version
23+
run: python -c "import sys; print(sys.version)"
24+
- name: Install docs dependencies
25+
run: pip install -r docs/requirements.txt
26+
- name: Build docs
27+
run: mkdocs build
28+
- uses: jakejarvis/s3-sync-action@master
29+
with:
30+
args: --acl public-read --follow-symlinks --delete
31+
env:
32+
AWS_S3_ENDPOINT: ${{ secrets.DOCS_AWS_S3_ENDPOINT }}
33+
AWS_S3_BUCKET: ${{ secrets.DOCS_AWS_S3_BUCKET }}
34+
AWS_ACCESS_KEY_ID: ${{ secrets.DOCS_AWS_ACCESS_KEY_ID }}
35+
AWS_SECRET_ACCESS_KEY: ${{ secrets.DOCS_AWS_SECRET_ACCESS_KEY }}
36+
SOURCE_DIR: 'site'

.gitignore

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
/test/venv/
66
logs/
77
/test/logs/
8+
.env/
9+
env*/
810
.venv/
911
venv*/
1012
/install
@@ -79,7 +81,7 @@ __pycache__
7981

8082
# Debug/Profile files
8183
# ignore perf html reports
82-
*.html
84+
*.html
8385

8486
# Kernel Module Compile Results
8587
*.mod*
@@ -129,4 +131,7 @@ dkms.conf
129131
/out/
130132

131133
# mpeltonen/sbt-idea plugin
132-
.idea_modules/
134+
.idea_modules/
135+
136+
# docs site
137+
site/

docs/clients.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# RedisAI Clients
2+
3+
Some languages already have client libraries that provide support for RedisAI's commands. The following table lists the known ones:
4+
5+
| Project | Language | License | Author | URL |
6+
| ------- | -------- | ------- | ------ | --- |
7+
| JRedisAI | Java | BSD-3 | [RedisLabs](https://redislabs.com/) | [Github](https://github.com/RedisAI/JRedisAI) |
8+
| redisai-py | Python | BSD-3 | [RedisLabs](https://redislabs.com/) | [Github](https://github.com/RedisAI/redisai-py) |
9+
| redisai-go | Go | BSD-3 | [RedisLabs](https://redislabs.com/) | [Github](https://github.com/RedisAI/redisai-go) |
10+
11+
The full documentation for RedisAI's API can be found at the [Commands page](commands.md).

0 commit comments

Comments
 (0)