Skip to content

Commit

Permalink
Trying to fix documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
salt-die committed Jan 27, 2025
1 parent 6095111 commit 6166ccc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/reference/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ batgrl Reference
:Date: |today|

.. autosummary::
:toctree: _autosummary
:toctree: generated
:recursive:

app
Expand Down
9 changes: 8 additions & 1 deletion src/batgrl/text_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@
from numpy.typing import NDArray

from ._batgrl_markdown import find_md_tokens
from ._char_widths import CHAR_WIDTHS

try:
from ._char_widths import CHAR_WIDTHS # type: ignore
except ImportError:
# Doc generation will fail to import `_char_widths` because it hasn't been generated
# yet.
CHAR_WIDTHS = ()

from .colors import BLACK, WHITE, Color
from .geometry import Size

Expand Down

0 comments on commit 6166ccc

Please sign in to comment.