blob: d5192293933eab9c26e429cc6534b7acab774d99 [file] [log] [blame]
Rich Bennettac93e0e2017-07-19 01:36:52 -04001.. This work is licensed under a Creative Commons Attribution 4.0 International License.
2
3
4Documentation Guide
5===================
6
7This page describes how documentation is created for the Open Network Automation Platform (ONAP).
8ONAP projects create a variety of document types depending on the nature of the project.
9Some projects will create detailed technical descriptions such as configuration parameters or how to
10use or extend the functionality of platform component that may be used as a standalone reference for that project and/or
11be used in larger end to end documents tailored to a specific user audience and task they are performing.
12
13Acknowledgement
14---------------
15
16Much of the content in this document is derived from similar documentation processes used in other Linux Foundation Projects
17including OPNFV and Open Daylight.
18
19.. contents::
20 :depth: 3
21 :local:
22
23Getting Started
24---------------
25ONAP documentation is stored in git repositories, changes are managed with gerrit reviews, and published documents
26automatically generated when there is a change in any source used to build the documentation.
27
28Authors create source for documents in reStructured Text (RST) that is automatically rendered to HTML and PDF
29and published on Readthedocs.io.
30The developer WiKi can reference these rendered documents directly allowing projects to
31easily maintain current release documentation.
32Read :ref:`this page <include-documentation>` which describes how documentation is created from
33ONAP Documentation project (doc) documentation source and other ONAP projects providing source material.
34
35Licencing Your Documentation
36^^^^^^^^^^^^^^^^^^^^^^^^^^^^
37All contributions to the ONAP project are done in accordance with the ONAP licensing requirements.
38Documentation in ONAP is contributed
39in accordance with the `Creative Commons 4.0 <https://creativecommons.org/licenses/by/4.0/>`_ license.
40All documentation files need to be licensed using the text below. The license may be applied in the first lines of
41all contributed RST files:
42
43.. code-block:: bash
44
45 .. This work is licensed under a Creative Commons Attribution 4.0 International License.
46 .. (c) <optionally add copywriters name>
47
48 These lines will not be rendered in the html and pdf files.
49
50Storing Content Files in Your Repository
51^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
52All documentation for your project should be structured and stored in `<your_project_repo>/docs/` directory.
53The documentation toolchain will look in these directories and be triggered by events in repositories
54containing these directories.
55when generating documents.
56
57Document Structure and Contribution
58-----------------------------------
59A top level structure is proposed for organizing and storing all documents.
60Four areas as shown below with some additional detail under each area.
61This structure may change some as we get the full requirements and gain experience with the first reelase of ONAP.
62Where multiple sections with similar content are expected, templates can be created and stored
63under `doc/docs/templates/`. For example each component providing release notes uses the same release-note template.
64A template is a directory name in `doc/docs/templates` and the directory contains at least an index.rst file with
65content and as needed references to other sources in the template directory.
66
67Project teams are encouraged to reuse and if needed propose new templates to ensure that there is
68consistency across projects.
69
70::
71
72 docs/
73 ├── onap-developer
74 ├── architecture
75 ├── develop
76 ├── test
77 └── tutorial
78 ├── release
79 ├── configure
80 ├── install
81 ├── overview
82 └── release-notes
83 ├── service-designer
84 ├── deploy
85 ├── design
86 └── portal
87 └── vnf-provider
88 ├── guidelines
89 └── sdk
90
91
92Release Documentation
93^^^^^^^^^^^^^^^^^^^^^
94Release documentation is the set of documents that are published for each ONAP release.
95The documents have a master index.rst file in the <doc> repository and reference content as needed
96from other project repository.
97To provide content for these other projects place <content>.rst files in a directory in your repository that
98matches the master document and add a reference to that file in the correct place in the
99corresponding master index.rst.
100
101**Release Overview**: `doc/docs/release/overview`
102
103- Content for this is prepared by the Marketing team together with the use case committee and doc project team.
104- This document is not a project contribution driven document.
105
106**Installation Instruction**: `doc/docs/release/install`
107
108- Document providing an introduction, order, and aggregation of release notes from other component projects.
109- This document is a contribution driven document.
110
111**To Be Provided**: `<repo>/docs/xxxxxxxx`
112
113- Additional descriptions for the above outline as it is finalized.
114
115