CDS Read the Docs refactoring 58/115958/1
authorJakobKrieg <jakob.krieg@bcmsolutions.de>
Tue, 1 Dec 2020 13:17:11 +0000 (14:17 +0100)
committerJakobKrieg <jakob.krieg@bcmsolutions.de>
Tue, 1 Dec 2020 13:17:24 +0000 (14:17 +0100)
Issue-ID: CCSDK-3011
Change-Id: Id8cff94b104bfa03643eb534e36c2bce8b0b4088
Signed-off-by: JakobKrieg <jakob.krieg@bcmsolutions.de>
22 files changed:
docs/cba/cba-description.rst [new file with mode: 0644]
docs/cba/index.rst
docs/index.rst
docs/modelingconcepts/cba.rst
docs/modelingconcepts/index.rst
docs/userguides/design-time-guide/designtime.rst [moved from docs/userguide/designtime.rst with 96% similarity]
docs/userguides/design-time-guide/resourceassignment.rst [moved from docs/userguide/resourceassignment.rst with 100% similarity]
docs/userguides/developer-guide/index.rst [moved from docs/userguide/developer-guide.rst with 84% similarity]
docs/userguides/developer-guide/media/blueprintprocessor.jpg [moved from docs/userguide/media/blueprintprocessor.jpg with 100% similarity]
docs/userguides/developer-guide/media/build_logs.png [moved from docs/userguide/media/build_logs.png with 100% similarity]
docs/userguides/developer-guide/media/create_run_config_java.png [moved from docs/userguide/media/create_run_config_java.png with 100% similarity]
docs/userguides/developer-guide/media/create_run_config_kt.png [moved from docs/userguide/media/create_run_config_kt.png with 100% similarity]
docs/userguides/developer-guide/media/expand_vm_options.PNG [moved from docs/userguide/media/expand_vm_options.PNG with 100% similarity]
docs/userguides/developer-guide/media/import_project.png [moved from docs/userguide/media/import_project.png with 100% similarity]
docs/userguides/developer-guide/media/reimport_maven.png [moved from docs/userguide/media/reimport_maven.png with 100% similarity]
docs/userguides/developer-guide/media/run_config_java.png [moved from docs/userguide/media/run_config_java.png with 100% similarity]
docs/userguides/developer-guide/media/run_config_kt.png [moved from docs/userguide/media/run_config_kt.png with 100% similarity]
docs/userguides/developer-guide/media/run_config_set_up.png [moved from docs/userguide/media/run-config-set-up.png with 100% similarity]
docs/userguides/developer-guide/media/run_debug.png [moved from docs/userguide/media/run_debug.png with 100% similarity]
docs/userguides/developer-guide/media/vsc_logs.png [moved from docs/userguide/media/vsc_logs.png with 100% similarity]
docs/userguides/developer-guide/running-bp-processor-in-ide.rst [moved from docs/userguide/running-bp-processor-in-ide.rst with 98% similarity]
docs/userguides/installation.rst [moved from docs/userguide/installation.rst with 100% similarity]

diff --git a/docs/cba/cba-description.rst b/docs/cba/cba-description.rst
new file mode 100644 (file)
index 0000000..08702fb
--- /dev/null
@@ -0,0 +1,41 @@
+.. This work is licensed under a Creative Commons Attribution 4.0
+.. International License. http://creativecommons.org/licenses/by/4.0
+.. Copyright (C) 2019 IBM.
+
+
+The **C**\ ontroller **B**\ lueprint **A**\ rchive is the overall service design, fully model-driven, intent based
+**package** needed for SELF SERVICE provisioning and configuration management automation.
+
+The CBA is **.zip** file, comprised of the following folder structure, the files may vary:
+
+.. code-block language is required for ReadTheDocs to render code-blocks. Python set as default.
+
+.. code-block:: python
+
+    ├── Definitions
+    │   ├── blueprint.json                          Overall TOSCA service template (workflow + node_template)
+    │   ├── artifact_types.json                     (generated by enrichment)
+    │   ├── data_types.json                         (generated by enrichment)
+    │   ├── policy_types.json                       (generated by enrichment)
+    │   ├── node_types.json                         (generated by enrichment)
+    │   ├── relationship_types.json                 (generated by enrichment)
+    │   ├── resources_definition_types.json         (generated by enrichment, based on Data Dictionaries)
+    │   └── *-mapping.json                          One per Template
+    │
+    ├── Environments                                Contains *.properties files as required by the service
+    │
+    ├── Plans                                       Contains Directed Graph
+    │
+    ├── Tests                                       Contains uat.yaml file for testing cba actions within a cba package
+    │
+    ├── Scripts                                     Contains scripts
+    │   ├── python                                  Python scripts
+    │   └── kotlin                                  Kotlin scripts
+    │
+    ├── TOSCA-Metadata
+    │   └── TOSCA.meta                              Meta-data of overall package
+    │
+    └── Templates                                   Contains combination of mapping and template
+
+To process a CBA for any service we need to enrich it first. This will gather all the node- type, data-type,
+artifact-type, data-dictionary definitions provided in the blueprint.json.
index 70ed2ae..62eb927 100644 (file)
@@ -11,43 +11,8 @@ Controller Blueprint Archived Designer Tool (CBA)
 
 Introduction
 ------------
-The **C**\ ontroller **B**\ lueprint **A**\ rchive is the overall service design, fully model-driven, intent based
-**package** needed for SELF SERVICE provisioning and configuration management automation.
-
-The CBA is **.zip** file, comprised of the following folder structure, the files may vary:
-
-.. code-block language is required for ReadTheDocs to render code-blocks. Python set as default.
-
-.. code-block:: python
-
-    ├── Definitions
-    │   ├── blueprint.json                          Overall TOSCA service template (workflow + node_template)
-    │   ├── artifact_types.json                     (generated by enrichment)
-    │   ├── data_types.json                         (generated by enrichment)
-    │   ├── policy_types.json                       (generated by enrichment)
-    │   ├── node_types.json                         (generated by enrichment)
-    │   ├── relationship_types.json                 (generated by enrichment)
-    │   ├── resources_definition_types.json         (generated by enrichment, based on Data Dictionaries)
-    │   └── *-mapping.json                          One per Template
-    │
-    ├── Environments                                Contains *.properties files as required by the service
-    │
-    ├── Plans                                       Contains Directed Graph
-    │
-    ├── Tests                                       Contains uat.yaml file for testing cba actions within a cba package
-    │
-    ├── Scripts                                     Contains scripts
-    │   ├── python                                  Python scripts
-    │   └── kotlin                                  Kotlin scripts
-    │
-    ├── TOSCA-Metadata
-    │   └── TOSCA.meta                              Meta-data of overall package
-    │
-    └── Templates                                   Contains combination of mapping and template
-
-To process a CBA for any service we need to enrich it first. This will gather all the node- type, data-type,
-artifact-type, data-dictionary definitions provided in the blueprint.json.
 
+.. include:: cba-description.rst
 
 Architecture
 ------------
index af25a59..ef2d94f 100644 (file)
@@ -12,13 +12,14 @@ CONTROLLER DESIGN STUDIO (CDS)
 
 Introduction
 ------------
-    The system is designed to be self service, which means that users, not just
+
+The system is designed to be self service, which means that users, not just
 programmers, can reconfigure the software system as needed to meet customer
 requirements. To accomplish this goal, the system is built around models that
 provide for real-time changes in how the system operates.  Users merely need
 to change a model to change how a service operates.
 
-    Self service is a completely new way of delivering services.  It removes the
+Self service is a completely new way of delivering services.  It removes the
 dependence on code releases and the delays they cause and puts the control of
 services into the hands of the service providers.  They can change a model and
 its parameters and create a new service without writing a single line of code.
@@ -27,18 +28,19 @@ deliver products that more closely match the needs of its customers.
 
 Architecture
 ------------
+
 The Controller Design Studio is composed of two major components:
    * The GUI (or frontend)
    * The Run Time (or backend)
 
-    The GUI handles direct user input and allows for displaying both design time
+The GUI handles direct user input and allows for displaying both design time
 and run time activities. For design time, it allows for the creation of
 controller blueprint, from selecting the DGs to be included, to incorporating
 the artifact templates, to adding necessary components.  For run time, it
 allows the user to direct the system to resolve the unresolved elements of the
 controller blueprint and download the resulting configuration into a VNF.
 
-    At a more basic level, it allows for creation of data dictionaries,
+At a more basic level, it allows for creation of data dictionaries,
 capabilities catalogs, and controller blueprint, the basic elements that are
 used to generate a configuration. The essential function of the Controller
 Design Studio is to create and populate a controller blueprint, create a
@@ -51,11 +53,11 @@ configuration file (configlet) to a VNF/PNF.
 Modeling Concept
 ----------------
 
-    In Dublin release, the CDS community has contributed a framework to automate
+In Dublin release, the CDS community has contributed a framework to automate
 the resolution of resources for instantiation and any config provisioning
 operation, such as day0, day1 or day2 configuration.
 
-    The content of the CBA Package is driven from a catalog of reusable data
+The content of the CBA Package is driven from a catalog of reusable data
 dictionary, component and workflow, delivering a reusable and simplified
 self service experience.
 
@@ -105,15 +107,16 @@ Library
 .. |cdsArchitectureImage| image:: media/CDS_architecture.jpg
    :width: 500pt
 
-User Guide
-----------
+User Guides
+------------
 
 .. toctree::
    :maxdepth: 3
 
-   userguide/developer-guide
-   userguide/installation
-   userguide/designtime
+   userguides/developer-guide/index
+   userguides/installation
+   userguides/design-time-guide/designtime
+   userguides/resourceassignment
 
 Use Cases
 ---------
index 41baa99..a352e76 100644 (file)
@@ -9,39 +9,4 @@
 Controller Blueprint Archive (.cba)
 -----------------------------------
 
-The **C**\ ontroller **B**\ lueprint **A**\ rchive is the overall service design, fully model-driven, intent based
-**package** needed for SELF SERVICE provisioning and configuration management automation.
-
-The CBA is **.zip** file, comprised of the following folder structure, the files may vary:
-
-.. code-block language is required for ReadTheDocs to render code-blocks. Python set as default.
-
-.. code-block:: python
-
-    ├── Definitions
-    │   ├── blueprint.json                          Overall TOSCA service template (workflow + node_template)
-    │   ├── artifact_types.json                     (generated by enrichment)
-    │   ├── data_types.json                         (generated by enrichment)
-    │   ├── policy_types.json                       (generated by enrichment)
-    │   ├── node_types.json                         (generated by enrichment)
-    │   ├── relationship_types.json                 (generated by enrichment)
-    │   ├── resources_definition_types.json         (generated by enrichment, based on Data Dictionaries)
-    │   └── *-mapping.json                          One per Template
-    │
-    ├── Environments                                Contains *.properties files as required by the service
-    │
-    ├── Plans                                       Contains Directed Graph
-    │
-    ├── Tests                                       Contains uat.yaml file for testing cba actions within a cba package
-    │
-    ├── Scripts                                     Contains scripts
-    │   ├── python                                  Python scripts
-    │   └── kotlin                                  Kotlin scripts
-    │
-    ├── TOSCA-Metadata
-    │   └── TOSCA.meta                              Meta-data of overall package
-    │
-    └── Templates                                   Contains combination of mapping and template
-
-To process a CBA for any service we need to enrich it first. This will gather all the node- type, data-type,
-artifact-type, data-dictionary definitions provided in the blueprint.json.
\ No newline at end of file
+.. include:: ../cba/cba-description.rst
\ No newline at end of file
index d8ea3de..a709995 100644 (file)
@@ -27,6 +27,8 @@ Most of the TOSCA modeled entity presented in the bellow documentation
 can be found
 `here <https://github.com/onap/ccsdk-cds/tree/master/components/model-catalog/definition-type/starter-type>`_.
 
+
+
 .. toctree::
    :caption: Table of Contents
    :maxdepth: 1
similarity index 96%
rename from docs/userguide/designtime.rst
rename to docs/userguides/design-time-guide/designtime.rst
index 805cfa8..52b6e55 100644 (file)
@@ -45,6 +45,6 @@ Services:
 .. toctree::
    :maxdepth: 2
 
-   ../cba/index
-   ../resourcedefinition/index
+   ../../cba/index
+   ../../resourcedefinition/index
    resourceassignment
similarity index 84%
rename from docs/userguide/developer-guide.rst
rename to docs/userguides/developer-guide/index.rst
index be73f59..129ff7c 100644 (file)
@@ -5,7 +5,7 @@
 Developer Guide
 =================
 
-Blueprints Processor Microservice:
+Blueprints Processor Microservice
 ----------------------------------
 
 Micro service to Manage Controller Blueprint Models, such as Resource Dictionary, Service Models, Velocity Templates etc,  which will serve service for Controller Design Studio and Controller runtimes.
@@ -13,11 +13,12 @@ Micro service to Manage Controller Blueprint Models, such as Resource Dictionary
 This microservice is used to deploy Controller Blueprint Archive file in Run time database. This also helps to test the Valid CBA.
 
 .. toctree::
+   :caption: Guide how to run Blueprint Processor in an IDE:
    :maxdepth: 1
 
    running-bp-processor-in-ide
 
-Architecture:
+Architecture
 ~~~~~~~~~~~~~
 
 |image0|
@@ -26,8 +27,8 @@ Architecture:
    :width: 400pt
 
 
-Testing in local environment:
------------------------------
+Testing in local environment
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 Point your browser to http://localhost:8000/api/v1/execution-service/ping (please note that the port is 8000, not 8080)
 
@@ -26,6 +26,10 @@ In the checked out directory, type
 
    mvn clean install -Pq -Dadditionalparam=-Xdoclint:none
 
+.. note::
+   If an error ``invalid flag: --release`` appears when executing the maven install command, you need to upgrade Java version of your local
+   Maven installation. Use something like ``export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64``.
+
 Wait for the maven install command to finish until you go further.
 
 Spin up a Docker container with the database
@@ -419,6 +423,6 @@ Compilation error?
    :width: 500pt
    :align: middle
 
-.. |imageRunConfigSetUp| image:: media/run-config-set-up.png
+.. |imageRunConfigSetUp| image:: media/run_config_set_up.png
    :width: 500pt
    :align: middle