From 1d1191eae06c17db64cce97ee4b77638e3ab4a12 Mon Sep 17 00:00:00 2001 From: Daniele Forsi Date: Wed, 4 Apr 2018 23:12:41 +0200 Subject: [PATCH] Fix typos in the docs --- docs/api/files.rst | 2 +- docs/api/printer.rst | 2 +- docs/api/printerprofiles.rst | 2 +- docs/configuration/config_yaml.rst | 2 +- docs/events/index.rst | 8 ++++---- docs/features/gcode_scripts.rst | 2 +- docs/jsclientlib/base.rst | 2 +- docs/jsclientlib/files.rst | 2 +- docs/jsclientlib/socket.rst | 2 +- docs/plugins/gettingstarted.rst | 6 +++--- docs/plugins/viewmodels.rst | 4 ++-- src/octoprint/filemanager/storage.py | 4 ++-- 12 files changed, 19 insertions(+), 19 deletions(-) diff --git a/docs/api/files.rst b/docs/api/files.rst index b13123036..23583d59c 100644 --- a/docs/api/files.rst +++ b/docs/api/files.rst @@ -472,7 +472,7 @@ Upload file or create folder :form select: Whether to select the file directly after upload (``true``) or not (``false``). Optional, defaults to ``false``. Ignored when creating a folder. :form print: Whether to start printing the file directly after upload (``true``) or not (``false``). If set, ``select`` - is implicitely ``true`` as well. Optional, defaults to ``false``. Ignored when creating a folder. + is implicitly ``true`` as well. Optional, defaults to ``false``. Ignored when creating a folder. :form userdata: [Optional] An optional string that if specified will be interpreted as JSON and then saved along with the file as metadata (metadata key ``userdata``). Ignored when creating a folder. :form foldername: The name of the folder to create. Ignored when uploading a file. diff --git a/docs/api/printer.rst b/docs/api/printer.rst index 1409bf300..5d7c8ebde 100644 --- a/docs/api/printer.rst +++ b/docs/api/printer.rst @@ -37,7 +37,7 @@ Besides that, OctoPrint also provides a :ref:`full state report of the printer < OctoPrint's internal webserver is single threaded and can only handle one request at a time. This is not a problem generally since asynchronous programming allows to just have one request which is waiting for data from a long running backend operation to sleep while handling other requests. The internal framework - used for providing the REST API though, Flask, is based on WSGI, which is synchrounous in nature. This means + used for providing the REST API though, Flask, is based on WSGI, which is synchronous in nature. This means that it is impossible to wait in a non blocking wait while handling a request on the REST API. So in order to return the response of a command sent to the printer, the single thread of the webserver would have to be blocked by the API while the response wasn't available yet. Which in turn would mean that the whole web server would diff --git a/docs/api/printerprofiles.rst b/docs/api/printerprofiles.rst index 835399d5c..8db1b51ae 100644 --- a/docs/api/printerprofiles.rst +++ b/docs/api/printerprofiles.rst @@ -581,7 +581,7 @@ Profile * - ``axes`` - 0..1 - Object - - Description of the printer's axes properties, one entry each for ``x``, ``y``, ``z`` and ``e`` holding maxium speed + - Description of the printer's axes properties, one entry each for ``x``, ``y``, ``z`` and ``e`` holding maximum speed and whether this axis is inverted or not. * - ``axes.{axis}.speed`` - 0..1 diff --git a/docs/configuration/config_yaml.rst b/docs/configuration/config_yaml.rst index 41e0fae69..778dd9769 100644 --- a/docs/configuration/config_yaml.rst +++ b/docs/configuration/config_yaml.rst @@ -454,7 +454,7 @@ the estimation of the left print time during an active job utilizes this section .. code-block:: yaml estimation: - # Parameters for the print time estmation during an ongoing print job + # Parameters for the print time estimation during an ongoing print job printTime: # Until which percentage to do a weighted mixture of statistical duration (analysis or # past prints) with the result from the calculated estimate if that's already available. diff --git a/docs/events/index.rst b/docs/events/index.rst index 193574247..a97e7e385 100644 --- a/docs/events/index.rst +++ b/docs/events/index.rst @@ -207,8 +207,8 @@ FolderAdded Payload: * ``storage``: the storage's identifier - * ``path``: the folders's path within its storage location - * ``name``: the folders's name + * ``path``: the folder's path within its storage location + * ``name``: the folder's name .. note:: @@ -220,8 +220,8 @@ FolderRemoved Payload: * ``storage``: the storage's identifier - * ``path``: the folders's path within its storage location - * ``name``: the folders's name + * ``path``: the folder's path within its storage location + * ``name``: the folder's name .. note:: diff --git a/docs/features/gcode_scripts.rst b/docs/features/gcode_scripts.rst index 65732e2fd..4fb891eb4 100644 --- a/docs/features/gcode_scripts.rst +++ b/docs/features/gcode_scripts.rst @@ -75,7 +75,7 @@ All GCODE scripts have access to the following template variables through the te * ``last_temperature``: Last actual and target temperature reported for all available tools and if available the heated bed. This is a dictionary of key-value pairs. The keys are the indices of the available tools (``0``, ``1``, ...) and ``b`` for the heated bed. The values are a dictionary consisting of ``actual`` and ``target`` keys mapped - to the corresponding temperature in degrees celsius. Note that not all tools your printer has must necessarily be + to the corresponding temperature in degrees Celsius. Note that not all tools your printer has must necessarily be present here, neither must the heated bed - it depends on whether OctoPrint has values for a tool or the bed. Also note that ``actual`` and ``target`` might be ``None``. * ``script``: An object wrapping the script's type (``gcode``) and name (e.g. ``afterPrintCancelled``) as ``script.type`` diff --git a/docs/jsclientlib/base.rst b/docs/jsclientlib/base.rst index 618299fd1..63833f0dc 100644 --- a/docs/jsclientlib/base.rst +++ b/docs/jsclientlib/base.rst @@ -417,7 +417,7 @@ Creates a custom exception class. ``name`` may be either a function in which case it will be used as constructor for the new exception class, or a string, in which case a constructor with proper - ``name``, ``message`` and ``stack`` attributes will be created. The class hierarchy will be propery + ``name``, ``message`` and ``stack`` attributes will be created. The class hierarchy will be properly setup to subclass ``Error``. **Example:** diff --git a/docs/jsclientlib/files.rst b/docs/jsclientlib/files.rst index 9c4d8233a..5ecf5ea38 100644 --- a/docs/jsclientlib/files.rst +++ b/docs/jsclientlib/files.rst @@ -189,7 +189,7 @@ A boolean value, specifies whether to immediately start printing the file after the upload completes (true) or not (false, default) userdata - An optional object or a serialized JSON string of additional user supplised data to associate with + An optional object or a serialized JSON string of additional user supplied data to associate with the uploaded file. See :ref:`Upload file or create folder ` for more details on the file upload API and diff --git a/docs/jsclientlib/socket.rst b/docs/jsclientlib/socket.rst index 844b845a5..6da88a1ee 100644 --- a/docs/jsclientlib/socket.rst +++ b/docs/jsclientlib/socket.rst @@ -85,7 +85,7 @@ .. js:function:: OctoPrintClient.socket.onRateTooHigh(measured, maximum) Called by the socket client when the last measured round trip time was higher than the - current upper procesisng limit, indicating that the messages are now processed slower than + current upper processing limit, indicating that the messages are now processed slower than the current rate requires and a slower rate might be necessary. Can be overwritten with custom handler methods. The default implementation will call diff --git a/docs/plugins/gettingstarted.rst b/docs/plugins/gettingstarted.rst index c26686a41..ac43e92ad 100644 --- a/docs/plugins/gettingstarted.rst +++ b/docs/plugins/gettingstarted.rst @@ -410,8 +410,8 @@ Now look at that! Settings Galore: How to make parts of your plugin user adjustable ----------------------------------------------------------------- -Remember that Wikipedia link we added to our little link in the navigation bar? It links to the english Wikipedia. But -what if we want to allow our users to adjust that according to their wishes, e.g. to link to the german language node +Remember that Wikipedia link we added to our little link in the navigation bar? It links to the English Wikipedia. But +what if we want to allow our users to adjust that according to their wishes, e.g. to link to the German language node about "Hello World" programs instead? To allow your users to customized the behaviour of your plugin you'll need to implement the :class:`~octoprint.plugin.SettingsPlugin` @@ -509,7 +509,7 @@ section doesn't yet exist in the file, create it): # [...] Restart OctoPrint. Not only should the URL displayed in the log file have changed, but also the link should now (after -a proper shift-reload) point to the german Wikipedia node about "Hello World" programs:: +a proper shift-reload) point to the German Wikipedia node about "Hello World" programs:: 2015-01-30 11:47:18,634 - octoprint.plugins.helloworld - INFO - Hello World! (more: https://de.wikipedia.org/wiki/Hallo-Welt-Programm) diff --git a/docs/plugins/viewmodels.rst b/docs/plugins/viewmodels.rst index b21d07e1f..051e71c6b 100644 --- a/docs/plugins/viewmodels.rst +++ b/docs/plugins/viewmodels.rst @@ -56,9 +56,9 @@ Example: // more of your view model's implementation } - // we don't explicitely declare a name property here + // we don't explicitly declare a name property here // our view model will be registered under "myCustomViewModel" (implicit - // name derived from contructor name) and "yourCustomViewModel" (explicitely + // name derived from constructor name) and "yourCustomViewModel" (explicitly // provided as additional name) OCTOPRINT_VIEWMODELS.push({ construct: MyCustomViewModel, diff --git a/src/octoprint/filemanager/storage.py b/src/octoprint/filemanager/storage.py index de1b43072..51d56a575 100644 --- a/src/octoprint/filemanager/storage.py +++ b/src/octoprint/filemanager/storage.py @@ -184,7 +184,7 @@ class StorageInterface(object): def copy_folder(self, source, destination): """ - Copys the folder ``source`` to ``destination`` + Copies the folder ``source`` to ``destination`` :param string source: path to the source folder :param string destination: path to destination @@ -233,7 +233,7 @@ class StorageInterface(object): def copy_file(self, source, destination): """ - Copys the file ``source`` to ``destination`` + Copies the file ``source`` to ``destination`` :param string source: path to the source file :param string destination: path to destination