From dc3bbe6e363cc9d17585e1bb8cea83164dffc2ed Mon Sep 17 00:00:00 2001 From: Bart Vanbrabant Date: Wed, 22 Jun 2022 12:35:50 +0200 Subject: [PATCH] This adds a space between the type and the attribute. Without the space will not always render (Issue inmanta/inmanta-sphinx#52, PR #4390) Pull request opened by the merge tool on behalf of #4390 --- changelogs/unreleased/fix-docs-spacing.yml | 5 +++++ docs/_static/css/custom.css | 4 ++++ docs/conf.py | 4 ++++ 3 files changed, 13 insertions(+) create mode 100644 changelogs/unreleased/fix-docs-spacing.yml create mode 100644 docs/_static/css/custom.css diff --git a/changelogs/unreleased/fix-docs-spacing.yml b/changelogs/unreleased/fix-docs-spacing.yml new file mode 100644 index 0000000000..4214b3b8a5 --- /dev/null +++ b/changelogs/unreleased/fix-docs-spacing.yml @@ -0,0 +1,5 @@ +description: This adds a space between the type and the attribute. Without the space will not always render +issue-nr: 52 +issue-repo: inmanta-sphinx +change-type: patch +destination-branches: [master, iso5, iso4] diff --git a/docs/_static/css/custom.css b/docs/_static/css/custom.css new file mode 100644 index 0000000000..159c39d434 --- /dev/null +++ b/docs/_static/css/custom.css @@ -0,0 +1,4 @@ +/* This adds a space between the type and the attribute. Without the space will not always render */ +dl.attribute .sig-prename { + margin-left: 0.5em; +} diff --git a/docs/conf.py b/docs/conf.py index d110703378..82218b67e2 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -210,6 +210,10 @@ def setup(app): # Output file base name for HTML help builder. htmlhelp_basename = 'InmantaDoc' +html_css_files = [ + 'css/custom.css', +] + # -- Options for LaTeX output --------------------------------------------------