diff options
author | Jhon Honce <jhonce@redhat.com> | 2021-05-10 13:58:20 -0700 |
---|---|---|
committer | Jhon Honce <jhonce@redhat.com> | 2021-05-10 14:13:15 -0700 |
commit | 8ad40a85d5eab3eea888708e242f32354e799822 (patch) | |
tree | 6d3bd8c09ea3eab3ba14c2b81f924684150eb89d /docs/source/conf.py | |
parent | 76c857704053a6c6ee1e2ed1900b549d399f967d (diff) | |
download | podman-8ad40a85d5eab3eea888708e242f32354e799822.tar.gz podman-8ad40a85d5eab3eea888708e242f32354e799822.tar.bz2 podman-8ad40a85d5eab3eea888708e242f32354e799822.zip |
Add host.serviceIsRemote to podman info results
Developers asked for a deterministic field to verify if podman is
running via API or linked directly to libpod library.
$ podman info --format '{{.Host.ServiceIsRemote}}'
false
$ podman-remote info --format '{{.Host.ServiceIsRemote}}'
true
$ podman --remote info --format '{{.Host.ServiceIsRemote}}'
true
* docs/conf.py formatted via black
Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'docs/source/conf.py')
-rw-r--r-- | docs/source/conf.py | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/docs/source/conf.py b/docs/source/conf.py index 7a180e5ef..8210022f2 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -29,10 +29,7 @@ author = "team" # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. -extensions = [ - "sphinx_markdown_tables", - "recommonmark" -] +extensions = ["sphinx_markdown_tables", "recommonmark"] # Add any paths that contain templates here, relative to this directory. templates_path = ["_templates"] @@ -66,26 +63,27 @@ html_css_files = [ # -- Extension configuration ------------------------------------------------- + def convert_markdown_title(app, docname, source): # Process markdown files only docpath = app.env.doc2path(docname) if docpath.endswith(".md"): # Convert pandoc title line into eval_rst block for recommonmark - source[0] = re.sub( - r"^% (.*)", - r"```eval_rst\n.. title:: \g<1>\n```", - source[0]) + source[0] = re.sub(r"^% (.*)", r"```eval_rst\n.. title:: \g<1>\n```", source[0]) def setup(app): app.connect("source-read", convert_markdown_title) app.add_config_value( - "recommonmark_config", { + "recommonmark_config", + { "enable_eval_rst": True, "enable_auto_doc_ref": False, "enable_auto_toc_tree": False, "enable_math": False, "enable_inline_math": False, - }, True) + }, + True, + ) app.add_transform(AutoStructify) |