From: josephthaliath Date: Thu, 8 Dec 2022 09:03:12 +0000 (+0530) Subject: Documentation files added X-Git-Tag: 1.0.0~2 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=2e0d306aa4d42d19e47ab772e44d9137c40df67f;p=aiml-fw%2Fathp%2Fdata-extraction.git Documentation files added Issue-Id: AIMLFW-12 Signed-off-by: josephthaliath Change-Id: I8dd2590a77eb0238eb518beac380349ed119b915 --- diff --git a/.readthedocs.yaml b/.readthedocs.yaml new file mode 100644 index 0000000..095222a --- /dev/null +++ b/.readthedocs.yaml @@ -0,0 +1,16 @@ +--- +version: 2 + +formats: + - htmlzip + +build: + image: latest + +python: + version: 3.7 + install: + - requirements: docs/requirements-docs.txt + +sphinx: + configuration: docs/conf.py diff --git a/docs/_static/logo.png b/docs/_static/logo.png new file mode 100644 index 0000000..3803e04 Binary files /dev/null and b/docs/_static/logo.png differ diff --git a/docs/conf.py b/docs/conf.py new file mode 100644 index 0000000..f87d976 --- /dev/null +++ b/docs/conf.py @@ -0,0 +1,35 @@ +# ================================================================================== +# +# Copyright (c) 2022 Samsung Electronics Co., Ltd. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ================================================================================== + +from docs_conf.conf import * + +linkcheck_ignore = [ + 'http://localhost.*', + 'http://127.0.0.1.*', + 'https://gerrit.o-ran-sc.org.*' +] + +#branch configuration +branch = 'latest' + +#intershpinx mapping with other projects +intersphinx_mapping = {} + + +#AIMLFW deployment installation guide +intersphinx_mapping['aimlfw-dep'] = ('https://docs.o-ran-sc.org/projects/o-ran-sc-aiml-fw-aimlfw-dep/en/%s' % branch, None) diff --git a/docs/conf.yaml b/docs/conf.yaml new file mode 100644 index 0000000..3d3b657 --- /dev/null +++ b/docs/conf.yaml @@ -0,0 +1,6 @@ +--- +project_cfg: oran +project: aimlfw-dataextraction + +# Change this to ReleaseBranchName to modify the header +version: latest diff --git a/docs/favicon.ico b/docs/favicon.ico new file mode 100644 index 0000000..00b0fd0 Binary files /dev/null and b/docs/favicon.ico differ diff --git a/docs/index.rst b/docs/index.rst new file mode 100644 index 0000000..646544c --- /dev/null +++ b/docs/index.rst @@ -0,0 +1,20 @@ +.. This work is licensed under a Creative Commons Attribution 4.0 International License. +.. SPDX-License-Identifier: CC-B + +.. Copyright (c) 2022 Samsung Electronics Co., Ltd. All Rights Reserved. + +Welcome to O-RAN SC AIMLFW Data Extraction Documentation +======================================================== + +.. toctree:: + :maxdepth: 2 + :caption: Contents: + + overview.rst + release-notes.rst + installation-guide.rst + + +* :ref:`genindex` +* :ref:`modindex` +* :ref:`search` diff --git a/docs/installation-guide.rst b/docs/installation-guide.rst new file mode 100644 index 0000000..fc738e8 --- /dev/null +++ b/docs/installation-guide.rst @@ -0,0 +1,39 @@ +.. This work is licensed under a Creative Commons Attribution 4.0 International License. +.. http://creativecommons.org/licenses/by/4.0 + +.. Copyright (c) 2022 Samsung Electronics Co., Ltd. All Rights Reserved. + + +Installation Guide +================== + +.. contents:: + :depth: 3 + :local: + +Abstract +-------- + +This document describes how to install AIMLFW, it's dependencies and required system resources. + + +Version history + ++--------------------+--------------------+--------------------+--------------------+ +| **Date** | **Ver.** | **Author** | **Comment** | +| | | | | ++--------------------+--------------------+--------------------+--------------------+ +| 2022-11-30 | 1.0.0 | Joseph Thaliath | G release | +| | | | | ++--------------------+--------------------+--------------------+--------------------+ + + +Introduction +------------ + +.. + + +Installation scripts are located in the aimlfw-dep repository and installation guide is mentioned in the following link + +* :doc:`AIMLFW Installation Guide ` diff --git a/docs/overview.rst b/docs/overview.rst new file mode 100644 index 0000000..4a00120 --- /dev/null +++ b/docs/overview.rst @@ -0,0 +1,10 @@ +.. This work is licensed under a Creative Commons Attribution 4.0 International License. +.. SPDX-License-Identifier: CC-B + +.. Copyright (c) 2022 Samsung Electronics Co., Ltd. All Rights Reserved. + + +Overview of AIMLFW Data Extraction (aiml-fw/athp/data-extraction) +----------------------------------------------------------------- + +This module is responsible for data extraction and storing the data as features in a feature store for AI/ML Training diff --git a/docs/release-notes.rst b/docs/release-notes.rst new file mode 100644 index 0000000..baddf8e --- /dev/null +++ b/docs/release-notes.rst @@ -0,0 +1,53 @@ +.. This work is licensed under a Creative Commons Attribution 4.0 International License. +.. SPDX-License-Identifier: CC-B + +.. Copyright (c) 2022 Samsung Electronics Co., Ltd. All Rights Reserved. + + +Release-Notes +------------- + +This document provides the release notes for the G release of AIMLFW Data extraction module + +.. contents:: + :depth: 3 + :local: + +Version history +--------------- + ++--------------------+--------------------+--------------------+--------------------+ +| **Date** | **Ver.** | **Author** | **Comment** | +| | | | | ++--------------------+--------------------+--------------------+--------------------+ +| 2022-12-08 | 1.0.0 | Joseph Thaliath | G release | +| | | | | ++--------------------+--------------------+--------------------+--------------------+ + + +Summary +------- + +The G release of AIMLFW Data extraction module supports the initial version of data extraction for training from databases like Influx DB + + +Release Data +------------ + ++--------------------------------------+--------------------------------------+ +| **Project** | AIMLFW Data extraction | +| | | ++--------------------------------------+--------------------------------------+ +| **Repo/commit-ID** | aiml-fw/athp/data-extraction | +| | | ++--------------------------------------+--------------------------------------+ +| **Release designation** | G release | +| | | ++--------------------------------------+--------------------------------------+ +| **Release date** | 2022-12-15 | +| | | ++--------------------------------------+--------------------------------------+ +| **Purpose of the delivery** | AIMLFW Data extraction | +| | | ++--------------------------------------+--------------------------------------+ + diff --git a/docs/requirements-docs.txt b/docs/requirements-docs.txt new file mode 100644 index 0000000..7372123 --- /dev/null +++ b/docs/requirements-docs.txt @@ -0,0 +1,6 @@ +sphinx +sphinx_rtd_theme>=1.0.0 +docutils<0.17 +sphinxcontrib-httpdomain +recommonmark +lfdocs-conf diff --git a/tox.ini b/tox.ini index 775f71a..dc7ca34 100644 --- a/tox.ini +++ b/tox.ini @@ -17,7 +17,7 @@ # ================================================================================== [tox] -envlist = code +envlist = code,docs,docs-linkcheck skipsdist = true # basic test and coverage job @@ -44,3 +44,28 @@ deps= commands = pytest --cov-report term-missing --cov-report xml --cov-report html --cov-fail-under=30 --junitxml=/tmp/tests.xml --cov={toxinidir}/dataextraction/ coverage xml -i + +# Docs + +[testenv:docs] +basepython = python3 +deps = + sphinx + sphinx-rtd-theme + sphinxcontrib-httpdomain + recommonmark + lfdocs-conf + +commands = + sphinx-build -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html + echo "Generated docs available in {toxinidir}/docs/_build/html" +whitelist_externals = echo + +[testenv:docs-linkcheck] +basepython = python3 +deps = sphinx + sphinx-rtd-theme + sphinxcontrib-httpdomain + recommonmark + lfdocs-conf +commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck