Skip to content

Commit

Permalink
Improve visually docs
Browse files Browse the repository at this point in the history
Add css rules, add autodoc_type_aliases
  • Loading branch information
patacca committed Sep 13, 2023
1 parent 5b61b1c commit b0c34d7
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
17 changes: 17 additions & 0 deletions _static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,21 @@ div.sphinxsidebar p.caption {
background: linear-gradient(90deg, rgba(232, 232, 237, 0) 0%, rgb(232, 232, 237) 17.6px, rgb(232, 232, 237) 100%);
font-weight: bold;
font-size: 15px;
}

.relbar,
.relbar>a:hover .direction {
color: #7B7B7B;
}

.nav-icon:visited {
color: #E5E5E5;
}

#topbar button:hover,
#titlebar .buttons> :hover,
#titlebar a:hover,
.relbar a:hover,
.relbar a:hover .icon {
color: #2D2D2D;
}
4 changes: 4 additions & 0 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@
"quokka": ("https://quarkslab.github.io/quokka/", None),
}

autodoc_type_aliases = {
"ReferenceTarget": "Data | Structure | StructureMember"
}

autodoc_typehints_format = "short"

# -- Options for HTML output -------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Qbindiff

.. toctree::
:caption: Qbindiff
:maxdepth: 2
:maxdepth: 3

qbindiff/doc/source/intro
qbindiff/doc/source/install
Expand Down

0 comments on commit b0c34d7

Please sign in to comment.