Skip to content
This repository has been archived by the owner on Sep 22, 2023. It is now read-only.

Commit

Permalink
docs: Reorganize and cross-link the API doc
Browse files Browse the repository at this point in the history
  • Loading branch information
achimnol committed Dec 6, 2018
1 parent 9320b06 commit 06f8272
Show file tree
Hide file tree
Showing 18 changed files with 86 additions and 25 deletions.
4 changes: 2 additions & 2 deletions docs/cli.examples.rst → docs/cli/examples.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CLI Examples
============
Examples
========

.. note::

Expand Down
8 changes: 8 additions & 0 deletions docs/cli/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Command-line Interface
======================

.. toctree::
:maxdepth: 1
:caption: Table of contents

examples
File renamed without changes.
File renamed without changes.
13 changes: 13 additions & 0 deletions docs/func/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
High-level Function Reference
=============================

.. toctree::
:maxdepth: 1
:caption: Table of contents

admin
agent
kernel
keypair
manager
vfolder
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 10 additions & 0 deletions docs/gsg/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Getting Started
===============

.. toctree::
:maxdepth: 1
:caption: Table of contents

examples
session
config
File renamed without changes.
66 changes: 43 additions & 23 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,38 +6,58 @@
Backend.AI Client SDK for Python
================================

.. toctree::
:maxdepth: 2
:caption: Getting Started:
This is the documentation for the Python Client SDK which implements
:doc:`the Backend.AI API <backendai:index>`.

examples
session
config
Requirements
------------

.. toctree::
:maxdepth: 2
:caption: High-level Function Reference:
Python 3.5 or higher is required.

admin
agent
kernel
keypair
manager
vfolder
You can download `its official installer from python.org
<https://www.python.org/downloads/>`_, or use a 3rd-party package/version manager
such as `homebrew <http://brew.sh/index_ko.html>`_, `miniconda
<http://conda.pydata.org/miniconda.html>`_, or `pyenv
<https://github.com/pyenv/pyenv>`_. It works on Linux, macOS, and Windows.

.. toctree::
:maxdepth: 2
:caption: Low-level SDK Reference:

base
request
exceptions
Getting Started
---------------

We recommend to create a virtual environment for isolated, unobtrusive installation
of the client SDK library and tools.

.. code-block:: console
$ python3 -m venv venv-backend-ai
$ source venv-backend-ai/bin/activate
(venv-backend-ai) $
Then install the client library from PyPI.

.. code-block:: console
(venv-backend-ai) $ pip install -U pip wheel setuptools
(venv-backend-ai) $ pip install backend.ai-client
Set your API keypair as environment variables:

.. code-block:: console
(venv-backend-ai) $ export BACKEND_ACCESS_KEY=AKIA...
(venv-backend-ai) $ export BACKEND_SECRET_KEY=...
Check out more details at :doc:`gsg/config` and :doc:`gsg/examples`.


.. toctree::
:maxdepth: 2
:caption: Command-line Interface:
:caption: Table of contents

cli.examples
gsg/index
cli/index
func/index
lowlevel/index


Indices and tables
Expand Down
File renamed without changes.
File renamed without changes.
10 changes: 10 additions & 0 deletions docs/lowlevel/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Low-level SDK Reference
=======================

.. toctree::
:maxdepth: 1
:caption: Table of contents

base
request
exceptions
File renamed without changes.

0 comments on commit 06f8272

Please sign in to comment.