Skip to content

Commit

Permalink
This adds a space between the type and the attribute. Without the spa…
Browse files Browse the repository at this point in the history
…ce will not always render (Issue inmanta/inmanta-sphinx#52, PR #4390)

# Description

Validated against build

closes inmanta/inmanta-sphinx#52

# Self Check:

Strike through any lines that are not applicable (`~~line~~`) then check the box

- [ ] Attached issue to pull request
- [ ] Changelog entry
- [ ] Type annotations are present
- [ ] Code is clear and sufficiently documented
- [ ] No (preventable) type errors (check using make mypy or make mypy-diff)
- [ ] Sufficient test cases (reproduces the bug/tests the requested feature)
- [ ] Correct, in line with design
- [ ] End user documentation is included or an issue is created for end-user documentation (add ref to issue here: )

# Reviewer Checklist:

- [ ] Sufficient test cases (reproduces the bug/tests the requested feature)
- [ ] Code is clear and sufficiently documented
- [ ] Correct, in line with design
  • Loading branch information
bartv authored and inmantaci committed Jun 20, 2022
1 parent 7dbcb9f commit 68fa904
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions changelogs/unreleased/fix-docs-spacing.yml
Original file line number Diff line number Diff line change
@@ -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]
4 changes: 4 additions & 0 deletions docs/_static/css/custom.css
Original file line number Diff line number Diff line change
@@ -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;
}
4 changes: 4 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 --------------------------------------------------

Expand Down

0 comments on commit 68fa904

Please sign in to comment.