Fix .gitignore so docs/Makefile is not ignored. Add README and Makefile. Fis gitreview. 50/13750/2
authorJohn DeNisco <jdenisco@cisco.com>
Thu, 26 Jul 2018 20:21:31 +0000 (16:21 -0400)
committerDave Barach <openvpp@barachs.net>
Fri, 27 Jul 2018 00:13:36 +0000 (00:13 +0000)
Change-Id: I3d664d9c881ce127a09b9d68c1181a7098a39074
Signed-off-by: John DeNisco <jdenisco@cisco.com>
.gitignore
docs/Makefile [new file with mode: 0644]
docs/README [new file with mode: 0644]
docs/gettingstarted/writingdocs/gitreview.rst

index 28f54a3..612efd4 100644 (file)
@@ -84,6 +84,7 @@ GTAGS
 /build-root/.doxygen-siphon.dep
 /docs/_build
 /env
+!/docs/Makefile
 
 # indent backup files
 *.BAK
diff --git a/docs/Makefile b/docs/Makefile
new file mode 100644 (file)
index 0000000..60e4b90
--- /dev/null
@@ -0,0 +1,20 @@
+# Minimal makefile for Sphinx documentation
+#
+
+# You can set these variables from the command line.
+SPHINXOPTS    =
+SPHINXBUILD   = sphinx-build
+SPHINXPROJ    = fdio-firstcut
+SOURCEDIR     = .
+BUILDDIR      = _build
+
+# Put it first so that "make" without argument is like "make help".
+help:
+       @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
+
+.PHONY: help Makefile
+
+# Catch-all target: route all unknown targets to Sphinx using the new
+# "make mode" option.  $(O) is meant as a shortcut for $(SPHINXOPTS).
+%: Makefile
+       @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
\ No newline at end of file
diff --git a/docs/README b/docs/README
new file mode 100644 (file)
index 0000000..d9a7091
--- /dev/null
@@ -0,0 +1,49 @@
+
+Building VPP Documents
+
+These instructions show how the VPP documentation sources are built.
+
+To build your files, you can either Create a Virtual Environment using
+virtualenv, which installs all the required applications for you.
+
+Create a Virtual Environment using virtualenv
+============================
+
+For more information on how to use the Python virtual environment check
+out https://packaging.python.org/guides/installing-using-pip-and-virtualenv
+
+Get the Documents
+------------------------------
+
+For example start with a clone of the vpp.
+
+$ git clone https://gerrit.fd.io/r/vpp
+$ cd vpp
+
+Install the virtual environment
+----------------------------------------------
+
+$ python -m pip install --user virtualenv 
+$ python -m virtualenv env
+$ source env/bin/activate
+$ pip install -r docs/etc/requirements.txt
+$ cd docs
+
+Which installs all the required applications into it's own, isolated,
+virtual environment, so as to not interfere with other builds that may
+use different versions of software.
+
+Build the html files
+----------------------------
+
+Be sure you are in your vpp/docs directory, since that is where Sphinx will
+look for your conf.py file, and build the documents into an index.html file
+
+$ make html
+
+View the results
+------------------------
+
+If there are no errors during the build process, you should now have an
+index.html file in your vpp/docs/_build/html directory, which you can
+then view in your browser.
index 63916e1..308e313 100644 (file)
@@ -39,24 +39,24 @@ To get a new patch reviewed use the following:
 
 .. code-block:: console
 
-    git status
-    git add <filename>
-    git commit -s
-    git review
+    git status
+    git add <filename>
+    git commit -s
+    git review
 
 If the patch is a draft use the following:
 
 .. note::
 
-    git review -D
+    git review -D
 
 
 To get back to the master:
 
 .. code-block:: console
 
-    git reset --hard origin/master
-    git checkout master
+    git reset --hard origin/master
+    git checkout master
 
 Existing patch
 --------------
@@ -66,7 +66,7 @@ To modify an existing patch:
 
 .. code-block:: console
 
-    git status
-    git add <filename>
-    git commit --amend
-    git review
+    git status
+    git add <filename>
+    git commit --amend
+    git review