Add infra submodule 47/33947/5
authoragardner <agardner@linuxfoundation.org>
Thu, 27 Apr 2017 11:27:05 +0000 (13:27 +0200)
committerAric Gardner <agardner@linuxfoundation.org>
Mon, 8 May 2017 22:18:54 +0000 (22:18 +0000)
document how to add submodules
clean up some spacing

Change-Id: I7640f123911650dcf31933ed2fbfbdd26620798a
Signed-off-by: agardner <agardner@linuxfoundation.org>
.gitmodules
docs/how-to-use-docs/include-documentation.rst
docs/submodules/infra [new submodule]

index dfb3093..efb29d5 100644 (file)
        branch = .
        ignore = dirty
 [submodule "docs/submodules/dovetail"]
-        path = docs/submodules/dovetail
-        url = ../dovetail
-        branch = .
-        ignore = dirty
+       path = docs/submodules/dovetail
+       url = ../dovetail
+       branch = .
+       ignore = dirty
 [submodule "docs/submodules/escalator"]
        path = docs/submodules/escalator
        url = ../escalator
 [submodule "docs/submodules/openretriever"]
        path = docs/submodules/openretriever
        url = ../openretriever
-        branch = .
-        ignore = dirty
+       branch = .
+       ignore = dirty
 [submodule "docs/submodules/ovsnfv"]
        path = docs/submodules/ovsnfv
        url = ../ovsnfv
        url = ../barometer
        branch = .
        ignore = dirty
+[submodule "docs/submodules/infra"]
+       path = docs/submodules/infra
+       url = ../infra
+       branch = .
+       ignore = dirty
index 1430b94..0bc3264 100644 (file)
@@ -226,3 +226,18 @@ Your documentation shall be built as HTML inside the
 specified output folder directory.
 
 .. note:: Be sure to remove the `conf.py`, the static/ files and the output folder from the `<project>/docs/`. This is for testing only. Only commit the rst files and related content.
+
+
+Adding your project repository as a submodule
+--------------------------
+
+Clone the opnfvdocs repository and your submodule to .gitmodules following the convention of the file
+
+.. code-block:: bash
+
+  cd docs/submodules/
+  git submodule git https://gerrit.opnfv.org/gerrit/$reponame
+  git submodule init $reponame/
+  git submodule update $reponame/
+  git add .
+  git review
diff --git a/docs/submodules/infra b/docs/submodules/infra
new file mode 160000 (submodule)
index 0000000..1297f44
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit 1297f44c1bb0e9b0e2b9620b73190bec00604c24