Skip to content
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

added lab_api to documentation #574

Merged
merged 1 commit into from
Feb 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
9 changes: 8 additions & 1 deletion docker-compose-doc-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,18 @@ services:
context: .
dockerfile: docs/Dockerfile
args:
- USE_WHEELS=0
- USE_WHEELS=1
working_dir: /appsrc/docs
command: bash -c "make html"
tty: true
stdin_open: true
volumes:
- "./:/appsrc"
- "/appsrc/lab/webapp/node_modules"

doc_api_builder:
image: "node:18.13.0-slim"
command: bash -c "npm i -g raml2html && raml2html /appsrc/lab/api.raml >
/appsrc/target/ai_docs/html/lab_api_source.html"
volumes:
- "./:/appsrc"
2 changes: 2 additions & 0 deletions docs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ FROM python:3.7.16-buster
ARG USE_WHEELS
ARG wheel_directory=docker/wheels

RUN pip install --upgrade pip

COPY /docs/requirements.txt /
RUN pip install -r /requirements.txt

Expand Down
4 changes: 4 additions & 0 deletions docs/guides/developerGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -414,3 +414,7 @@ dev tag should be `0.19a0`.

1. From the Aliro directory, run the command `docker-compose up` to start the
Aliro server.


<!-- ## Aliro Lab API -->
<!-- <iframe src="lab_api.html" width="100%" height="100%"></iframe> -->
157 changes: 114 additions & 43 deletions docs/guides/userGuide.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
# -- Project information -----------------------------------------------------

project = 'Aliro'
copyright = '2018, Penn'
author = 'University of Pennsylvania'
copyright = '2023, Cedars-Sinai Medical Center'
author = 'Cedars-Sinai Medical Center'

# read version from .env
env = Env()
Expand Down
1 change: 1 addition & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ And, it has an *AI* assistant that can choose the analysis to run for you.
quickstart
userguide
developerguide
lab_api
ai
recommenders
api
Expand Down
6 changes: 6 additions & 0 deletions docs/source/lab_api.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Lab API
=======

.. raw:: html

<iframe src="lab_api_source.html" width="100%" height="1200px"></iframe>
44 changes: 22 additions & 22 deletions lab/api.raml
Original file line number Diff line number Diff line change
Expand Up @@ -335,28 +335,28 @@ mediaType: application/json
application/json:
example: |
{
[ { name: 'BernoulliNB',
command: 'python',
cwd: 'machine/learn/BernoulliNB',
args: [Object],
options: 'double-dash',
capacity: '1',
results: 'machine/learn/BernoulliNB/tmp' },
{ name: 'DecisionTreeClassifier',
command: 'python',
cwd: 'machine/learn/DecisionTreeClassifier',
args: [Object],
options: 'double-dash',
capacity: '1',
results: 'machine/learn/DecisionTreeClassifier/tmp' },
{ name: 'DecisionTreeRegressor',
command: 'python',
cwd: 'machine/learn/DecisionTreeRegressor',
args: [Object],
options: 'double-dash',
capacity: '1',
results: 'machine/learn/DecisionTreeRegressor/tmp' }
]
[ { name: 'BernoulliNB',
command: 'python',
cwd: 'machine/learn/BernoulliNB',
args: [Object],
options: 'double-dash',
capacity: '1',
results: 'machine/learn/BernoulliNB/tmp' },
{ name: 'DecisionTreeClassifier',
command: 'python',
cwd: 'machine/learn/DecisionTreeClassifier',
args: [Object],
options: 'double-dash',
capacity: '1',
results: 'machine/learn/DecisionTreeClassifier/tmp' },
{ name: 'DecisionTreeRegressor',
command: 'python',
cwd: 'machine/learn/DecisionTreeRegressor',
args: [Object],
options: 'double-dash',
capacity: '1',
results: 'machine/learn/DecisionTreeRegressor/tmp' }
]
}
/files:
/{fileId}:
Expand Down