docs: add spellcheck to 'make docs' sphinx docs 78/23278/3
authorPaul Vinciguerra <pvinci@vinciconsulting.com>
Tue, 5 Nov 2019 20:34:36 +0000 (15:34 -0500)
committerDave Barach <openvpp@barachs.net>
Wed, 6 Nov 2019 17:53:42 +0000 (17:53 +0000)
The CI gate will fail if there are typos in the docs.

  writing output... [ 21%] events/Summits/OpensourceSummit...
  writing output... [ 22%] events/Summits/UKNO/2017_04_30_...

  featuresbyrelease/vpp16.06.rst:34:Rasberry:vpp16.06
  writing output... [100%] usecases/vppinazure
  Spelling checker messages written to /vpp/docs/_build/html/output.txt

  Warning, treated as error:
  Found 1 misspelled words
  Makefile:31: recipe for target 'html' failed
  make[1]: *** [html] Error 2
  make[1]: Leaving directory '/vpp/docs'

If you introduce a term that is not recognized,
please add it to custom dictionary at
docs/spelling_wordlist.txt.

Type: feature

Change-Id: Id49be4fbee617f544f1ab8e78e7de8a4df36448b
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
18 files changed:
docs/Makefile
docs/conf.py
docs/etc/requirements.txt
docs/featuresbyrelease/vpp16.06.rst
docs/featuresbyrelease/vpp17.01.rst
docs/featuresbyrelease/vpp17.04.rst
docs/featuresbyrelease/vpp17.07.rst
docs/featuresbyrelease/vpp18.07.rst
docs/featuresbyrelease/vpp18.10.rst
docs/gettingstarted/developers/fib20/routes.rst
docs/gettingstarted/developers/fib20/tunnels.rst
docs/gettingstarted/developers/metadata.md
docs/gettingstarted/developers/vlib.md
docs/reference/vppvagrant/VagrantVMSetup.rst
docs/usecases/ConnectingVPC.rst
docs/usecases/contiv/K8s_Overview.md
docs/usecases/simpleperf/iperf3.rst
src/plugins/quic/quic_plugin.rst

index 4308777..a67b28a 100644 (file)
@@ -1,5 +1,16 @@
 # Minimal makefile for Sphinx documentation
 #
+# We support MacOS for docs generation
+ifeq ($(shell uname),Darwin)
+OS_ID = darwin
+endif
+
+# Work out the OS if we haven't already
+OS_ID ?= $(shell grep '^ID=' /etc/os-release | cut -f2- -d= | sed -e 's/\"//g')
+
+DOC_DEB_DEPENDS = enchant libenchant-dev
+DOC_RPM_DEPENDS = enchant libenchant-dev
+
 
 # You can set these variables from the command line.
 SPHINXOPTS    =
@@ -17,4 +28,19 @@ help:
 # Catch-all target: route all unknown targets to Sphinx using the new
 # "make mode" option.  $(O) is meant as a shortcut for $(SPHINXOPTS).
 %: Makefile
+       @echo "Checking whether dependencies for Docs are installed..."
+ifeq ($(OS_ID),ubuntu)
+       @set -e; inst=; \
+               for i in $(DOC_DEB_DEPENDS); do \
+                       dpkg-query --show $$i >/dev/null 2>&1 || inst="$$inst $$i"; \
+               done; \
+               if [ "$$inst" ]; then \
+                       sudo apt-get update; \
+                       sudo apt-get $(CONFIRM) $(FORCE) install $$inst; \
+               fi
+else ifneq ("$(wildcard /etc/redhat-release)","")
+       @sudo yum install $(CONFIRM) $(DOC_RPM_DEPENDS)
+endif
+       @python3 -m pip install sphinxcontrib-spelling
+       @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" -W -b spelling  $(O)
        @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
index e9d7bb8..eb66cb3 100644 (file)
@@ -41,8 +41,9 @@ extensions = [
     'sphinx.ext.autodoc',
     'sphinx.ext.viewcode',
     'recommonmark',
-]
+    'sphinxcontrib.spelling']
 
+spelling_word_list_filename = 'spelling_wordlist.txt'
 # Add any paths that contain templates here, relative to this directory.
 templates_path = ['_templates']
 
@@ -52,7 +53,7 @@ templates_path = ['_templates']
 source_suffix = {
     '.rst': 'restructuredtext',
     '.md': 'markdown'
-    }
+}
 
 # The master toctree document.
 master_doc = 'index'
@@ -106,6 +107,7 @@ html_logo = '_static/fd-io_red_white.png'
 # so a file named "default.css" will overwrite the builtin "default.css".
 html_static_path = ['_static']
 
+
 def setup(app):
     app.add_stylesheet('css/rules.css')
 
@@ -150,7 +152,8 @@ latex_elements = {
 # (source start file, target name, title,
 #  author, documentclass [howto, manual, or own class]).
 latex_documents = [
-    (master_doc, 'Vector Packet Processor.tex', u'Vector Packet Processor Documentation',
+    (master_doc, 'Vector Packet Processor.tex',
+     u'Vector Packet Processor Documentation',
      u'John DeNisco', 'manual'),
 ]
 
@@ -160,7 +163,8 @@ latex_documents = [
 # One entry per manual page. List of tuples
 # (source start file, name, description, authors, manual section).
 man_pages = [
-    (master_doc, 'Vector Packet Processor', u'Vector Packet Processor Documentation',
+    (master_doc, 'Vector Packet Processor',
+     u'Vector Packet Processor Documentation',
      [author], 1)
 ]
 
@@ -171,7 +175,8 @@ man_pages = [
 # (source start file, target name, title, author,
 #  dir menu entry, description, category)
 texinfo_documents = [
-    (master_doc, 'Vector Packet Processor', u'Vector Packet Processor Documentation',
+    (master_doc, 'Vector Packet Processor',
+     u'Vector Packet Processor Documentation',
      author, 'Vector Packet Processor', 'One line description of project.',
      'Miscellaneous'),
 ]
index 660fc6c..b8b69bb 100644 (file)
@@ -27,4 +27,5 @@ sphinxcontrib-htmlhelp==1.0.2
 sphinxcontrib-jsmath==1.0.1
 sphinxcontrib-qthelp==1.0.2
 sphinxcontrib-serializinghtml==1.1.3
+sphinxcontrib-spelling==4.3.0
 urllib3==1.24.3
index b8d213b..7b2a195 100644 (file)
@@ -1,35 +1,35 @@
-.. _vpp16.06:\r
-\r
-###############################\r
-Features for Release VPP 16.06\r
-###############################\r
-\r
-The FD.io Project, relentlessly focused on data IO speed and efficiency supporting the creation of high performance, flexible, and scalable software defined infrastructures, announces the availability of the community’s first software release (16.06).\r
-\r
-In the four months since launching, FD.io has brought together more than 75 developers from 11 different companies including network operators, solution providers chip vendors, and network equipment vendors who are collaborating to enhance and innovate around the Vector Packet Processing (VPP) technology. The FD.io community has quickly formed to grow the number of projects from the initial VPP project to an additional 6 projects addressing a diverse set of requirements and usability across a variety of deployment environments.\r
-\r
-The 16.06 release brings unprecedented performance: 480Gbps/200mpps with 8 million routes and 2k whitelist entries on standard high volume x86 servers.\r
-\r
-\r
-Features\r
-=========\r
-\r
-In addition to the existing full suite of vswitch/vrouter features, the new 16.06 release adds:\r
-\r
-* Enhanced Switching and Routing:\r
-   - IPv6 Segment Routing multicast support\r
-   - LISP xTR support\r
-   - VXLAN over IPv6 underlay\r
-   - Per interface whitelists\r
-   - Shared adjacencies in FIB\r
-* New and improved interface support:\r
-   - Jumbo frame support for vhost-user\r
-   - Netmap interface support\r
-   - AF_Packet interface support\r
-* Expanded and improved programmability:\r
-   - Python API bindings\r
-   - Enhanced JVPP Java API bindings\r
-   - Debugging CLI\r
-* Expanded Hardware and Software Support:\r
-   - Support for ARM 32 targets including Rasberry Pi single-board computer\r
-   - Support for DPDK 16.04\r
+.. _vpp16.06:
+
+###############################
+Features for Release VPP 16.06
+###############################
+
+The FD.io Project, relentlessly focused on data IO speed and efficiency supporting the creation of high performance, flexible, and scalable software defined infrastructures, announces the availability of the community's first software release (16.06).
+
+In the four months since launching, FD.io has brought together more than 75 developers from 11 different companies including network operators, solution providers chip vendors, and network equipment vendors who are collaborating to enhance and innovate around the Vector Packet Processing (VPP) technology. The FD.io community has quickly formed to grow the number of projects from the initial VPP project to an additional 6 projects addressing a diverse set of requirements and usability across a variety of deployment environments.
+
+The 16.06 release brings unprecedented performance: 480Gbps/200mpps with 8 million routes and 2k whitelist entries on standard high volume x86 servers.
+
+
+Features
+=========
+
+In addition to the existing full suite of vswitch/vrouter features, the new 16.06 release adds:
+
+* Enhanced Switching and Routing:
+   - IPv6 Segment Routing multicast support
+   - LISP xTR support
+   - VXLAN over IPv6 underlay
+   - Per interface whitelists
+   - Shared adjacencies in FIB
+* New and improved interface support:
+   - Jumbo frame support for vhost-user
+   - Netmap interface support
+   - AF_Packet interface support
+* Expanded and improved programmability:
+   - Python API bindings
+   - Enhanced JVPP Java API bindings
+   - Debugging CLI
+* Expanded Hardware and Software Support:
+   - Support for ARM 32 targets including Raspberry Pi single-board computer
+   - Support for DPDK 16.04
index ab7a969..b4022b6 100644 (file)
@@ -14,7 +14,7 @@ Features
 * Performance Improvements\r
    - Improvements in DPDK input and output nodes\r
    - Improvements in L2 path\r
-   - Improvmeents in IPv4 lookup node\r
+   - Improvements in IPv4 lookup node\r
 * Feature Arcs Improvements\r
    - Consolidation of the code\r
    - New feature arcs\r
index f62b880..ca26ddc 100644 (file)
@@ -55,14 +55,14 @@ Network features
    -  CGN (Deterministic and dynamic)\r
    -  CGN configurable port allocation algorithm\r
    -  ICMP support\r
-   -  Tentant VRF id for SNAT outside addresses\r
+   -  Tenant VRF id for SNAT outside addresses\r
    -  Session dump / User dump\r
    -  Port allocation per protocol\r
 * Security groups\r
    -  Routed interface support\r
    -  L2+L3 unified processing node\r
    -  Improve fragment handling\r
-* Segement routing v6\r
+* Segment routing v6\r
    -  SR policies with weighted SID lists\r
    -  Binding SID\r
    -  SR steering policies\r
index 9774421..57b3a52 100644 (file)
@@ -32,7 +32,7 @@ Interfaces
 \r
 * memif: IP mode, jumbo frames, multi queue\r
 * virtio-user support\r
-* vhost-usr; adaptive (poll/interupt) support.\r
+* vhost-usr; adaptive (poll/interrupt) support.\r
 \r
 Network features\r
 ++++++++++++++++++\r
@@ -41,13 +41,13 @@ Network features
 * BFD FIB integration\r
 * NAT64 support\r
 * GRE over IPv6\r
-* Segement routing MPLS\r
+* Segment routing MPLS\r
 * IOAM configuration for SRv6 localsid\r
 * LISP\r
    -  NSH support\r
    -  native forward static routes\r
    -  L2 ARP\r
-* ACL multi-core suuport\r
+* ACL multi-core support\r
 * Flowprobe:\r
    -  Add flowstartns, flowendns and tcpcontrolbits\r
    -  Stateful flows and IPv6, L4 recording\r
index b4ee1ae..1f82f5c 100644 (file)
@@ -13,7 +13,7 @@ Infrastructure
 \r
    - Complete rework of the dpdk-input node\r
    - Display rx/tx burst function name in "show hardware detail"\r
-   - Improve buffer alloc perfomance\r
+   - Improve buffer alloc performance\r
       + This is ~50% improvement in buffer alloc performance. For a 256 buffer allocation, it was ~10 clocks/buffer, now is < 5 clocks.\r
    - Add per-numa page allocation info to 'show memory'\r
    - Vectorized bihash_{48,40,24,16}_8 key compare\r
index 8fb9d22..f21ac64 100644 (file)
@@ -33,9 +33,9 @@ Host stack
 * Support for applications with multiple workers\r
 * Support for binds from multiple app workers to same ip:port\r
 * Switched to a message queue for io and control event notifications\r
-* Support for eventfd based notifications as alternative to mutext-condvar pair\r
+* Support for eventfd based notifications as alternative to mutex-condvar pair\r
 * VCL refactor to support async event notifications and multiple workers\r
-* TLS async support in client for HW accleration\r
+* TLS async support in client for HW acceleration\r
 * Performance optimizations and bug-fixing\r
 * A number of binary APIs will be deprecated in favor of using the event message queue. Details in the API section.\r
 \r
index 464a24a..1ee09ce 100644 (file)
@@ -27,7 +27,7 @@ The route data is decomposed into three parts; entry, path-list and paths;
 
     * Attached next-hop: the path is described with an interface and a next-hop. The next-hop is in the same sub-net as the router's own address on that interface, hence the peer is considered to be *attached*
 
-    * Attached: the path is described only by an interface. All address covered by the prefix are on the same L2 segment to which that router's interface is attached. This means it is possible to ARP for any address covered by the prefix Рwhich is usually not the case (hence the proxy ARP debacle in IOS). An attached path is only appropriate for a point-to-point (P2P) interface where ARP is not required, i.e. a GRE tunnel.
+    * Attached: the path is described only by an interface. All address covered by the prefix are on the same L2 segment to which that router's interface is attached. This means it is possible to ARP for any address covered by the prefix which is usually not the case (hence the proxy ARP debacle in IOS). An attached path is only appropriate for a point-to-point (P2P) interface where ARP is not required, i.e. a GRE tunnel.
 
     * Recursive: The path is described only via the next-hop and table-id. 
 
@@ -132,7 +132,7 @@ is attached are installed in forwarding. This requires the use of *cover trackin
 where a route maintains a dependency relationship with the route that is its less
 specific cover. When this cover changes (i.e. there is a new covering route) or the
 forwarding information of the cover is updated, then the covered route is notified.
-Adj-fibs that fail this cover check are not installed in the fib_table_tճ forwarding
+Adj-fibs that fail this cover check are not installed in the fib_table_t's forwarding
 table, there are only present in the non-forwarding table.
 
 Overlapping sub-nets are not supported, so no adj-fib has multiple paths. The control
index 1613a69..c33d63c 100644 (file)
@@ -18,7 +18,7 @@ Figure 11 shows the control plane object graph for a route via a tunnel. The two
 sub-graphs for the route via the tunnel and the route for the tunnel's
 destination are shown to the right and left respectively. The red line shows the
 relationship form by stacking the two sub-graphs. The adjacency on the tunnel
-interface is termed a ԭid-chainՠthis it is now present in the middle of the
+interface is termed a 'mid-chain' this it is now present in the middle of the
 graph/chain rather than its usual terminal location.
 
 The mid-chain adjacency is contributed by the gre_tunnel_t , which also becomes
index 2f20596..34400ef 100644 (file)
@@ -10,7 +10,7 @@ We will examine vpp buffer metadata in some detail, but folks who need
 to manipulate and/or extend the scheme should expect to do a certain
 level of code inspection.
 
-Vlib (Vector library) primary buffer metatdata
+Vlib (Vector library) primary buffer metadata
 ----------------------------------------------
 
 The first 64 octets of each vlib_buffer_t carries the primary buffer
@@ -119,7 +119,7 @@ Important fields:
   * NAT fields
   * u32 unused[6]
 
-Vnet (network stack) secondary buffer metatdata
+Vnet (network stack) secondary buffer metadata
 -----------------------------------------------
 
 Vnet primary buffer metadata occupies space reserved in the vlib
index 4621686..504ee07 100644 (file)
@@ -527,7 +527,7 @@ Here is a complete example:
 
 This example implements the "show ip tuple match" debug cli
 command. In ordinary usage, the vlib cli is available via the "vppctl"
-applicationn, which sends traffic to a named pipe. One can configure
+application, which sends traffic to a named pipe. One can configure
 debug CLI telnet access on a configurable port.
 
 The cli implementation has an output redirection facility which makes it
index f9f4304..c13a87e 100644 (file)
@@ -34,7 +34,7 @@ Become the root with:
 
 Now *install* VPP in the VM. Keep in mind that VPP is already built (but not yet installed) at this point based on the commands from the provisioned script *build.sh*. 
 
-When you ssh into your Vagrant box you will be placed in the directory */home/vagrant*. Change directories to */vpp/build-root*, and run these commands to install VPP based on your OS and architechture:
+When you ssh into your Vagrant box you will be placed in the directory */home/vagrant*. Change directories to */vpp/build-root*, and run these commands to install VPP based on your OS and architecture:
 
 For Ubuntu systems:
 
index cc8c927..f5b2c5d 100644 (file)
@@ -25,7 +25,7 @@ In our VPC we will have two instances: one, in which we will install VPP and the
 Figure 2: Example of the resources present inside our VPC
 
 
-Notice that the following example works with two VPCs, where in each of them there are a VM with VPP and a VM. Hence,  you will have to execute the same commands also in the other VPC to make the connection between the two VPC possibile.
+Notice that the following example works with two VPCs, where in each of them there are a VM with VPP and a VM. Hence,  you will have to execute the same commands also in the other VPC to make the connection between the two VPC possible.
 
 
 Now, create a new VM instance (you can use same setting as before (Ubuntu Server 16.04 and m5 type)) and attach a NIC. Remember that the two Client/Server machine's NICs should stay in two different IPv4 Subnet. Afterwards, on the VM's terminal execute these commands:
index ba3a8e1..69f144b 100644 (file)
@@ -6,7 +6,7 @@
 Kubernetes is a container orchestration system that efficiently manages Docker containers. The Docker containers and container platforms provide many advantages over traditional virtualization. Container isolation is done on the kernel level, which eliminates the need for a guest virtual operating system, and therefore makes containers much more efficient, faster, and lightweight. The containers in Contiv/VPP are referred to as PODs.
 
 Contiv/VPP is a Kubernetes network plugin that uses [FD.io VPP](https://fd.io/) 
-to provide network connectivity between PODs in a k8s cluster (k8s is an abbreviated reference for kubernates).
+to provide network connectivity between PODs in a k8s cluster (k8s is an abbreviated reference for kubernetes).
 It deploys itself as a set of system PODs in the `kube-system` namespace,
 some of them (`contiv-ksr`, `contiv-etcd`) on the master node, and some
 of them (`contiv-cni`, `contiv-vswitch`, `contiv-stn`) on each node in the cluster. 
index 0b0de37..6f5d345 100644 (file)
@@ -3,7 +3,7 @@
 Introduction
 ============
 
-This tutorial shows how to use VPP use iperf3 and Trex to get some basic performance
+This tutorial shows how to use VPP use iperf3 and TRex to get some basic performance
 numbers from a few basic configurations. Four examples are shown. In the first two
 examples, the **iperf3** tool is used to generate traffic, and in the last two examples
 the Cisco's `TRex Realistic Traffic Generator <http://trex-tgn.cisco.com/>`_ is used. For
index 3bbddd8..429b83e 100644 (file)
@@ -47,7 +47,7 @@ After having setup two interconnected vpps, you can attach the quic_echo binary
 * To run the client & server use ``quic_echo socket-name /vpp.sock client|server uri quic://1.1.1.1/1234``
 * Several options are available to customize the amount of data sent, number of threads, logging and timing.
 
-The behavior of this app when run with ``nclient 2/4`` is two first establish 2 connections with the given peer, and once everything has been openend start opening 4 quic streams, and transmit data. Flow is as follows.
+The behavior of this app when run with ``nclient 2/4`` is two first establish 2 connections with the given peer, and once everything has been opened start opening 4 quic streams, and transmit data. Flow is as follows.
 
 .. image:: /_images/quic_plugin_echo_flow.png