From 2ecbd9f8c8c1063e8167187a86eb2a4742e629ba Mon Sep 17 00:00:00 2001 From: Daniele Forsi Date: Sat, 17 Mar 2018 19:52:39 +0100 Subject: [PATCH] Fix typos in docs --- docs/api/general.rst | 4 ++-- docs/api/printer.rst | 4 ++-- docs/api/timelapse.rst | 4 ++-- docs/api/util.rst | 4 ++-- docs/bundledplugins/logging.rst | 2 +- docs/bundledplugins/softwareupdate.rst | 16 ++++++++-------- docs/configuration/config_yaml.rst | 2 +- docs/events/index.rst | 2 +- docs/features/accesscontrol.rst | 2 +- docs/features/plugins.rst | 2 +- docs/jsclientlib/index.rst | 4 ++-- docs/jsclientlib/job.rst | 2 +- docs/jsclientlib/languages.rst | 2 +- docs/jsclientlib/printer.rst | 2 +- docs/jsclientlib/system.rst | 4 ++-- docs/jsclientlib/timelapse.rst | 2 +- docs/jsclientlib/users.rst | 2 +- docs/jsclientlib/util.rst | 4 ++-- docs/jsclientlib/wizard.rst | 2 +- docs/plugins/concepts.rst | 6 +++--- docs/plugins/gettingstarted.rst | 4 ++-- docs/plugins/helpers.rst | 2 +- docs/plugins/hooks.rst | 8 ++++---- docs/plugins/injectedproperties.rst | 2 +- docs/plugins/mixins.rst | 2 +- docs/plugins/viewmodels.rst | 6 +++--- 26 files changed, 48 insertions(+), 48 deletions(-) diff --git a/docs/api/general.rst b/docs/api/general.rst index 91e673571..4232a96c9 100644 --- a/docs/api/general.rst +++ b/docs/api/general.rst @@ -12,7 +12,7 @@ Authorization ============= OctoPrint's API expects an API key to be supplied with each request. This API key can be either the globally -configured one, a user specific one if "Access Control" is enabled or an ref:`App Session Key `. +configured one, a user specific one if "Access Control" is enabled or an :ref:`App Session Key `. Users are able to generate and revoke their custom API key via the "Change password" dialog. The API key must be supplied in the custom HTTP header ``X-Api-Key``, e.g. @@ -65,7 +65,7 @@ Please be advised that clients should use the header field variant if at all pos Content Type ============ -If not otherwise stated OctoPrint's API expects request bodies and issues response bodies as ``Content-Type: application/json``. +If not otherwise stated, OctoPrint's API expects request bodies and issues response bodies as ``Content-Type: application/json``. .. _sec-api-general-encoding: diff --git a/docs/api/printer.rst b/docs/api/printer.rst index 23d002afe..1409bf300 100644 --- a/docs/api/printer.rst +++ b/docs/api/printer.rst @@ -217,7 +217,7 @@ Issue a print head command * ``z``: Optional. Amount/coordinate to jog print head on z axis, must be a valid number corresponding to the distance to travel in mm. * ``absolute``: Optional. Boolean value specifying whether to move relative to current position (provided axes values are relative amounts) or to absolute position (provided axes values are coordinates) - * ``speed``: Optiona. Speed at which to move. If not provided, minimum speed for all selected axes from printer + * ``speed``: Optional. Speed at which to move. If not provided, minimum speed for all selected axes from printer profile will be used. If provided but ``false``, no speed parameter will be appended to the command. Otherwise interpreted as an integer signifying the speed in mm/s, to append to the command. @@ -227,7 +227,7 @@ Issue a print head command * ``axes``: A list of axes which to home, valid values are one or more of ``x``, ``y``, ``z``. feedrate - Changes the feedrate factor to apply to the movement's of the axes. + Changes the feedrate factor to apply to the movements of the axes. * ``factor``: The new factor, percentage as integer or float (percentage divided by 100) between 50 and 200%. diff --git a/docs/api/timelapse.rst b/docs/api/timelapse.rst index 914e43490..54b3668ec 100644 --- a/docs/api/timelapse.rst +++ b/docs/api/timelapse.rst @@ -128,7 +128,7 @@ Rendered timelapse * - ``date`` - 1 - string - - Formatted timestamp of the the timelapse creation date + - Formatted timestamp of the timelapse creation date * - ``url`` - 1 - string @@ -162,7 +162,7 @@ Unrendered timelapse * - ``date`` - 1 - string - - Formatted timestamp of the the timelapse job creation date + - Formatted timestamp of the timelapse job creation date * - ``recording`` - 1 - bool diff --git a/docs/api/util.rst b/docs/api/util.rst index e01664d20..ca1e46333 100644 --- a/docs/api/util.rst +++ b/docs/api/util.rst @@ -38,10 +38,10 @@ Test paths or URLs .. _sec-api-util-test-url: url - Tests whether a provided url responds. Request method and expected status codes can + Tests whether a provided URL responds. Request method and expected status codes can optionally be specified as well. Supported parameters are: - * ``url``: The url to test. Mandatory. + * ``url``: The URL to test. Mandatory. * ``method``: The request method to use for the test. Optional, defaults to ``HEAD``. * ``timeout``: A timeout for the request, in seconds. If no reply from the tested URL has been received within this time frame, the check will be considered a failure. Optional, defaults to 3 seconds. diff --git a/docs/bundledplugins/logging.rst b/docs/bundledplugins/logging.rst index 67e0a923e..d06d7915c 100644 --- a/docs/bundledplugins/logging.rst +++ b/docs/bundledplugins/logging.rst @@ -198,7 +198,7 @@ JS Client Library .. note:: - All methods here require that the used API token or a the existing browser session + All methods here require that the used API token or the existing browser session has admin rights. .. js:function:: OctoPrintClient.plugins.logging.listLogs(opts) diff --git a/docs/bundledplugins/softwareupdate.rst b/docs/bundledplugins/softwareupdate.rst index b8909ee23..de4896b6d 100644 --- a/docs/bundledplugins/softwareupdate.rst +++ b/docs/bundledplugins/softwareupdate.rst @@ -46,7 +46,7 @@ There you can adjust the following settings: for the various components registered with the plugin, so that they don't have to be queried from the internet every time you load the page. Defaults to 24h, you usually shouldn't need to change that value. -More settings are available by :ref:`editing the correspondi.. _section in config.yaml `. +More settings are available by :ref:`editing the corresponding section in config.yaml `. That restart commands for OctoPrint and the whole server can be configured under Settings > Server. @@ -56,9 +56,9 @@ Command line usage ------------------ The functionality of the Software Update Plugin is also available on OctoPrint's command line interface under the -``plugins`` sub command. It's is possible to check for updates via ``octoprint plugins softwareupdate:check`` -and to apply available updates via ``octoprint plugins softwareupdate:update``. Please the corresponding -``--help`` pages on details: +``plugins`` sub command. It's possible to check for updates via ``octoprint plugins softwareupdate:check`` +and to apply available updates via ``octoprint plugins softwareupdate:update``. Please see the corresponding +``--help`` pages for details: .. code-block:: none @@ -126,7 +126,7 @@ Configuring the Plugin checks: # "octoprint" is reserved for OctoPrint octoprint: - # this defines an version check that will check against releases + # this defines a version check that will check against releases # published on OctoPrint's Github repository and pip as update method # against the release archives on Github - this is the default type: github_release @@ -135,7 +135,7 @@ Configuring the Plugin method: pip pip: 'https://github.com/foosel/OctoPrint/archive/{target_version}.zip' - # further checks may be define here + # further checks may be defined here # pip command, if another one than the automatically detected one should be # used - should normally NOT be necessary and hence set @@ -209,7 +209,7 @@ Version checks :ref:`hook `. Additional config parameters: - * ``python_checker``: (mandatory) A python callable which returns version + * ``python_checker``: (mandatory) A Python callable which returns version information and whether the current version is up-to-date or not, see below for details. @@ -241,7 +241,7 @@ Update methods ``update_folder`` setting or if the ``git_commit`` check is used its ``checkout_folder`` setting. * ``python_updater``: Can only be specified by plugins through the - :ref:`hook `. A python callable + :ref:`hook `. A Python callable which performs the update, see below for details. * ``sleep_a_bit``: Does nothing but block for a configurable ``duration`` and log a countdown in the meantime. Useful for debugging software update mechanisms diff --git a/docs/configuration/config_yaml.rst b/docs/configuration/config_yaml.rst index 7205ee149..790702fd1 100644 --- a/docs/configuration/config_yaml.rst +++ b/docs/configuration/config_yaml.rst @@ -1107,7 +1107,7 @@ OctoPrint is running is allowed to do this without password entry: command: sudo shutdown -h now confirm: You are about to shutdown the system. -You can also add an divider by setting action to divider like this: +You can also add a divider by setting action to divider like this: .. code-block:: yaml diff --git a/docs/events/index.rst b/docs/events/index.rst index 7086ccecd..193574247 100644 --- a/docs/events/index.rst +++ b/docs/events/index.rst @@ -265,7 +265,7 @@ MetadataAnalysisFinished * ``name``: the file's name * ``path``: the file's path within its storage location * ``origin``: the file's origin storage location - * ``result``: the analysis result -- this is a python object currently only available for internal use + * ``result``: the analysis result -- this is a Python object currently only available for internal use .. deprecated:: 1.3.0 diff --git a/docs/features/accesscontrol.rst b/docs/features/accesscontrol.rst index dd59bd6b8..3207b1c42 100644 --- a/docs/features/accesscontrol.rst +++ b/docs/features/accesscontrol.rst @@ -39,7 +39,7 @@ Rerunning the wizard -------------------- In case Access Control was disabled in the configuration wizard, it is -possibly to re-run it by editing ``config.yaml`` [#f1]_ and setting ``firstRun`` +possible to re-run it by editing ``config.yaml`` [#f1]_ and setting ``firstRun`` in the ``server`` section and ``enabled`` in the ``accessControl`` section to ``true``: diff --git a/docs/features/plugins.rst b/docs/features/plugins.rst index 2530f7817..450074713 100644 --- a/docs/features/plugins.rst +++ b/docs/features/plugins.rst @@ -46,7 +46,7 @@ Manual Installation If you don't want or can't use the Plugin Manager, plugins may also be installed manually either by copying and unpacking them into one of the configured plugin folders (regularly those are ``/plugins`` and -``/plugins`` [#f1]_ or by installing them as regular python modules via ``pip`` [#f2]_. +``/plugins`` [#f1]_ or by installing them as regular Python modules via ``pip`` [#f2]_. For a plugin available on the Python Package Index (PyPi), the process is as simple as issuing a diff --git a/docs/jsclientlib/index.rst b/docs/jsclientlib/index.rst index 8fcc6ee18..cf4f20376 100644 --- a/docs/jsclientlib/index.rst +++ b/docs/jsclientlib/index.rst @@ -32,7 +32,7 @@ correct URL prefix: --> -Regardless of which way you use to include the library, you'll also need to make sure you included JQuery and lodash, +Regardless of which way you use to include the library, you'll also need to make sure you included jQuery and lodash, because the library depends on those to be available (as ``$`` and ``_``). You can embed those like this: .. code-block:: html+jinja @@ -45,7 +45,7 @@ number of components, make sure to at the very least include that one to be able When you import the client library as described above, a global variable ``OctoPrint`` will become available, which is a prepared instance of the ``OctoPrintClient`` class the library assembles from registered components. You can directly -used that singular ``OctoPrint`` instance if you only need to talk to one OctoPrint server: +use that singular ``OctoPrint`` instance if you only need to talk to one OctoPrint server: .. code-block:: javascript diff --git a/docs/jsclientlib/job.rst b/docs/jsclientlib/job.rst index eed5ac808..834b67f70 100644 --- a/docs/jsclientlib/job.rst +++ b/docs/jsclientlib/job.rst @@ -64,7 +64,7 @@ .. js:function:: OctoPrintClient.job.resume(opts) - Resumes the current job if it's currently pause, does nothing if it's running. + Resumes the current job if it's currently paused, does nothing if it's running. See :ref:`Issue a job command ` for details. diff --git a/docs/jsclientlib/languages.rst b/docs/jsclientlib/languages.rst index 5e187525f..f13b6430b 100644 --- a/docs/jsclientlib/languages.rst +++ b/docs/jsclientlib/languages.rst @@ -5,7 +5,7 @@ .. note:: - All methods here require that the used API token or a the existing browser session + All methods here require that the used API token or the existing browser session has admin rights. .. js:function:: OctoPrintClient.languages.list(opts) diff --git a/docs/jsclientlib/printer.rst b/docs/jsclientlib/printer.rst index b4e107d45..14df29834 100644 --- a/docs/jsclientlib/printer.rst +++ b/docs/jsclientlib/printer.rst @@ -174,7 +174,7 @@ Sets the given temperature on the printer's heated bed (if available). - ``target`` is expected to be a the target temperature as a float value. + ``target`` is expected to be the target temperature as a float value. **Example:** diff --git a/docs/jsclientlib/system.rst b/docs/jsclientlib/system.rst index 709977141..a82b89f29 100644 --- a/docs/jsclientlib/system.rst +++ b/docs/jsclientlib/system.rst @@ -5,7 +5,7 @@ .. note:: - All methods here require that the used API token or a the existing browser session + All methods here require that the used API token or the existing browser session has admin rights. .. js:function:: OctoPrintClient.system.getCommands(opts) @@ -35,4 +35,4 @@ .. seealso:: :ref:`System API ` - Documentation of the underlying system API + Documentation of the underlying system API. diff --git a/docs/jsclientlib/timelapse.rst b/docs/jsclientlib/timelapse.rst index a16b8ec9a..351483ceb 100644 --- a/docs/jsclientlib/timelapse.rst +++ b/docs/jsclientlib/timelapse.rst @@ -15,7 +15,7 @@ .. js:function:: OctoPrintClient.timelapse.list(opts) - Get the lists of rendered and unrendered timelapses. The returned promis + Get the lists of rendered and unrendered timelapses. The returned promise will be resolved with an object containing the properties ``rendered`` which will have the list of rendered timelapses, and ``unrendered`` which will have the list of unrendered timelapses. diff --git a/docs/jsclientlib/users.rst b/docs/jsclientlib/users.rst index a07ac7cf9..dd11adb19 100644 --- a/docs/jsclientlib/users.rst +++ b/docs/jsclientlib/users.rst @@ -5,7 +5,7 @@ .. note:: - Most methods here require that the used API token or a the existing browser session + Most methods here require that the used API token or the existing browser session has admin rights *or* corresponds to the user to be modified. Some methods definitely require admin rights. diff --git a/docs/jsclientlib/util.rst b/docs/jsclientlib/util.rst index 4569d1d79..f88062ee7 100644 --- a/docs/jsclientlib/util.rst +++ b/docs/jsclientlib/util.rst @@ -5,7 +5,7 @@ .. note:: - All methods here require that the used API token or a the existing browser session + All methods here require that the used API token or the existing browser session has admin rights. .. js:function:: OctoPrintClient.util.test(command, parameters, opts) @@ -206,4 +206,4 @@ .. seealso:: :ref:`Util API ` - Documentation of the underlying util API + Documentation of the underlying util API. diff --git a/docs/jsclientlib/wizard.rst b/docs/jsclientlib/wizard.rst index 12a0cad25..90de044d0 100644 --- a/docs/jsclientlib/wizard.rst +++ b/docs/jsclientlib/wizard.rst @@ -5,7 +5,7 @@ .. note:: - All methods here require that the used API token or a the existing browser session + All methods here require that the used API token or the existing browser session has admin rights. .. js:function:: OctoPrintClient.wizard.get(opts) diff --git a/docs/plugins/concepts.rst b/docs/plugins/concepts.rst index ceaf3acaa..5e1c624cf 100644 --- a/docs/plugins/concepts.rst +++ b/docs/plugins/concepts.rst @@ -23,9 +23,9 @@ Lifecycle There are three sources of installed plugins that OctoPrint will check during start up: - * it's own ``octoprint/plugins`` folder (this is where the bundled plugins reside), + * its own ``octoprint/plugins`` folder (this is where the bundled plugins reside), * the ``plugins`` folder in its configuration directory (e.g. ``~/.octoprint/plugins`` on Linux), - * any python packages registered for the entry point ``octoprint.plugin``. + * any Python packages registered for the entry point ``octoprint.plugin``. Each plugin that OctoPrint finds it will first load, then enable. On enabling a plugin, OctoPrint will register its declared :ref:`hook handlers ` and :ref:`helpers `, apply @@ -36,7 +36,7 @@ any :ref:`settings overlays .py ``~/.octoprint/plugins`` folder. You already know how that works. But let's say you have more than just a simple plugin that can be done in one file. Distributing multiple files and getting your users to install them in the right way so that OctoPrint will be able to actually find and load them is certainly not impossible, but we want to do it in the -best way possible, meaning we want to make our plugin a fully installable python module that your users will be able to +best way possible, meaning we want to make our plugin a fully installable Python module that your users will be able to install directly via `OctoPrint's built-in Plugin Manager `_ or alternatively manually utilizing Python's standard package manager ``pip`` directly. @@ -282,7 +282,7 @@ of information now defined twice: plugin_version = "1.0.0" plugin_description = "A quick \"Hello World\" example plugin for OctoPrint" -The nice thing about our plugin now being a proper python package is that OctoPrint can and will access the metadata defined +The nice thing about our plugin now being a proper Python package is that OctoPrint can and will access the metadata defined within ``setup.py``! So, we don't really need to define all this data twice. Remove ``__plugin_name__``, ``__plugin_version__`` and ``__plugin_description__`` from ``__init__.py``: diff --git a/docs/plugins/helpers.rst b/docs/plugins/helpers.rst index 17cd18289..c411d3776 100644 --- a/docs/plugins/helpers.rst +++ b/docs/plugins/helpers.rst @@ -8,7 +8,7 @@ system. They are registered with the OctoPrint plugin system through the use of An example for providing some helper functions to the system can be found in the `Discovery Plugin `_, -which provides it's SSDP browsing and Zeroconf browsing and publishing functions as helper methods. +which provides its SSDP browsing and Zeroconf browsing and publishing functions as helper methods. .. code-block:: python :linenos: diff --git a/docs/plugins/hooks.rst b/docs/plugins/hooks.rst index 6843e1d01..c20d482ea 100644 --- a/docs/plugins/hooks.rst +++ b/docs/plugins/hooks.rst @@ -608,7 +608,7 @@ octoprint.comm.protocol.gcode.received .. py:function:: gcode_received_hook(comm_instance, line, *args, **kwargs) Get the returned lines sent by the printer. Handlers should return the received line or in any case, the modified - version of it. If the the handler returns None, processing will be aborted and the communication layer will get an + version of it. If the handler returns None, processing will be aborted and the communication layer will get an empty string as the received line. Note that Python functions will also automatically return ``None`` if an empty ``return`` statement is used or just nothing is returned explicitly from the handler. @@ -896,7 +896,7 @@ octoprint.printer.factory If the factory returns anything but ``None``, it will be assigned to the global ``printer`` instance. - If no of the registered factories return a printer instance, the default :class:`~octoprint.printer.standard.Printer` + If none of the registered factories return a printer instance, the default :class:`~octoprint.printer.standard.Printer` class will be instantiated. :param dict components: System components to use for printer instance initialization @@ -998,7 +998,7 @@ octoprint.server.http.routes that allows delivery of the requested resource as attachment and access validation through an optional callback. :class:`~octoprint.server.util.tornado.UrlForwardHandler` `tornado.web.RequestHandler `_ that proxies - requests to a preconfigured url and returns the response. + requests to a preconfigured URL and returns the response. :param list server_routes: read-only list of the currently configured server routes :return: a list of 3-tuples with additional routes as defined above @@ -1141,7 +1141,7 @@ octoprint.users.factory If the factory returns anything but ``None``, it will be assigned to the global ``userManager`` instance. - If no of the registered factories return a user manager instance, the class referenced by the ``config.yaml`` + If none of the registered factories return a user manager instance, the class referenced by the ``config.yaml`` entry ``accessControl.userManager`` will be initialized if possible, otherwise a stock :class:`~octoprint.users.FilebasedUserManager` will be instantiated, linked to the default user storage file ``~/.octoprint/users.yaml``. diff --git a/docs/plugins/injectedproperties.rst b/docs/plugins/injectedproperties.rst index 0e063773a..7b4bf311a 100644 --- a/docs/plugins/injectedproperties.rst +++ b/docs/plugins/injectedproperties.rst @@ -51,7 +51,7 @@ An overview of these properties follows. .. seealso:: :class:`~octoprint.plugin.core.Plugin` and :class:`~octoprint.plugin.types.OctoPrintPlugin` - Class documentation also containing the properties shared among all mixing implementations. + Class documentation also containing the properties shared among all mixin implementations. :ref:`Available Mixins ` Some mixin types trigger the injection of additional properties. diff --git a/docs/plugins/mixins.rst b/docs/plugins/mixins.rst index 95bf3e5cf..fa73c1757 100644 --- a/docs/plugins/mixins.rst +++ b/docs/plugins/mixins.rst @@ -153,7 +153,7 @@ An overview of these properties can be found in the section :ref:`Injected Prope .. seealso:: :class:`~octoprint.plugin.core.Plugin` and :class:`~octoprint.plugin.types.OctoPrintPlugin` - Class documentation also containing the properties shared among all mixing implementations. + Class documentation also containing the properties shared among all mixin implementations. .. _sec-plugins-mixins-available: diff --git a/docs/plugins/viewmodels.rst b/docs/plugins/viewmodels.rst index 584b745ba..b21d07e1f 100644 --- a/docs/plugins/viewmodels.rst +++ b/docs/plugins/viewmodels.rst @@ -125,7 +125,7 @@ gcodeFilesViewModel logViewModel View model for the logfile settings dialog. loginStateViewModel - View model for the current loginstate of the user, very interesting for plugins that need to + View model for the current login state of the user, very interesting for plugins that need to evaluate the current login state or information about the current user, e.g. associated roles. navigationViewModel View model for the navigation bar. @@ -168,7 +168,7 @@ OctoPrint's web application will call several callbacks on all registered view m Those are listed below: onStartup() - Called when the first initialization has been done: All view models are constructed and hence their dependencies + Called when the first initialization has been done. All view models are constructed and hence their dependencies resolved, no bindings have been done yet. onBeforeBinding() @@ -210,7 +210,7 @@ onDataUpdaterPluginMessage(plugin, message) Called when a plugin message is pushed from the server with the identifier of the calling plugin as first and the actual message as the second parameter. Note that the latter might be a full fledged object, depending on the plugin sending the message. You can use this method to asynchronously push data from your plugin's server - component to it's frontend component. + component to its frontend component. onUserLoggedIn(user) Called when a user gets logged into the web app, either passively (upon initial load of the page due to a valid