Skip to content

Commit

Permalink
Make docs look OK with new theme (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertodr authored Jul 18, 2022
1 parent 8b00da1 commit d59e689
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
5 changes: 3 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,14 @@
language = "en"
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
pygments_style = "sphinx"
# Furo-specific option
pygments_dark_style = "monokai"
todo_include_todos = False

# -- Options for HTML output -------------------------------------------
html_title = "parselglossy Documentation"
html_title = "parselglossy"
html_short_title = f"parselglossy {version}"
html_show_sourcelink = False
html_sidebars = {"**": ["globaltoc.html", "localtoc.html"]}
html_theme = "furo"
html_theme_options = {
"source_repository": "https://github.com/dev-cafe/parselglossy/",
Expand Down
6 changes: 3 additions & 3 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.. title:: parselglossy

==========================
parselglossy Documentation
==========================
============
parselglossy
============

.. epigraph::

Expand Down
8 changes: 4 additions & 4 deletions parselglossy/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,17 @@ def type_matches(value: AllowedTypes, expected_type: str) -> Optional[bool]:
Raises
------
ValueError
If expected_type is not among the allowed types.
If `expected_type` is not among the allowed types.
Notes
-----
Complex numbers are a tad more fastidious, as they *might be* read in as
strings. To avoid false negatives, we have a nasty hack, for which RDR will
forever burn in hell. For complex and List[complex] we will re-run type
forever burn in hell. For `complex` and `List[complex]` we will re-run type
checking after type casting if and only if:
- We expected complex and List[complex].
- We got a str or List[str].
- We expected `complex` and `List[complex]`.
- We got a `str` or `List[str]`.
- The string are in the right format for the type casting operator.
"""

Expand Down

0 comments on commit d59e689

Please sign in to comment.