Skip to content

Commit

Permalink
Minor fixes for Kanister docs (#4890)
Browse files Browse the repository at this point in the history
* Minor fixes for Kanister docs

Screenshot: https://cl.ly/c32ae248687e

* Fix typo
  • Loading branch information
Alex Vorbau authored and Ilya Kislenko committed Feb 6, 2019
1 parent 6a5195a commit be2c0b2
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 9 deletions.
36 changes: 35 additions & 1 deletion docs/_static/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ h1, h2, h3, h4, h5, h6 {

body, p {
font-family: 'Open Sans', sans-serif !important;
font-weight: 400 !important;
font-weight: 400;
}

div.body p {
line-height: 1.6em;
}

li {
Expand All @@ -20,4 +24,34 @@ li {

div.admonition {
padding: 1rem 2rem;
border-width: 0 0 0 3px;
}

div.admonition.warning {
background-color: #fff3f3;
border-color: #FAA;
}

div.sphinxsidebarwrapper p.logo {
margin: -10px 0 3rem -20px;
}

img.logo {
max-width: 80%;
}

div.topic {
padding: 20px 30px;
margin: 20px 0 10px 0;
border: none;
background-color: #edf6fb;
}

div.sphinxsidebarwrapper #searchbox {
margin-top: 2rem;
}

div.sphinxsidebar #searchbox input {
padding: 0.6rem !important;
font-family: 'Open Sans', sans-serif;
}
2 changes: 1 addition & 1 deletion docs/architecture.rst
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ As a reference, below is an example of a ActionSpec.
name: example-profile
namespace: example-namespace
In addition the Spec, an ActionSet also contains an ActionSetStatus
In addition to the Spec, an ActionSet also contains an ActionSetStatus
which mirrors the Spec, but contains the phases of execution, their
state, and the overall execution progress.

Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

# General information about the project.
project = 'Kanister'
copyright = '2017-2018, Kanister'
copyright = '2017-2019, Kanister'
author = 'Kanister'

# The version info for the project you're documenting, acts as replacement for
Expand Down
10 changes: 5 additions & 5 deletions docs/templates.rst
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ For example, to access the Name of a Deployment use:
"{{ index .Deployment.Name }}"
Namespace
---
---------

NamespaceParams includes the name of the namespace
that is being acted on when the ActionSet `Object` is
Expand Down Expand Up @@ -573,12 +573,12 @@ or as output artifacts using templating.

For example, an output artifact can reference the output from a phase as follows:

.. code-block:: yaml
.. code-block:: go
"{{ .Phases.phase-name.Output.key-name }}"
"{{ .Phases.phase-name.Output.key-name }}"
Similarly, a phase can use Secrets as arguments:

.. code-block:: yaml
.. code-block:: go
"{{ .Phases.phase-name.Secrets.secret-name.Namespace }}"
"{{ .Phases.phase-name.Secrets.secret-name.Namespace }}"
2 changes: 1 addition & 1 deletion docs/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ the Kanister controller.

The first Kanister CustomResource we're going to deploy is a Blueprint.
Blueprints are a set of instructions that tell the controller how to perform
actions on an application. A action consists of one or more phases. Each phase
actions on an application. An action consists of one or more phases. Each phase
invokes a :doc:`Kanister Function </functions>`. All Kanister functions accept a
list of strings. The `args` field in a Blueprint's phase is rendered and passed
into the specified Function.
Expand Down

0 comments on commit be2c0b2

Please sign in to comment.