Search found 2 matches

by pawamoy
Fri Aug 07, 2020 9:58 am
Forum: General Discussion and Questions
Topic: Generating autodocs for upython
Replies: 6
Views: 3898

Re: Generating autodocs for upython

If you add the

Code: Select all

lib
directory to

Code: Select all

sys.path
, then you can write

Code: Select all

::: helpers
directly.
by pawamoy
Sun Jul 26, 2020 10:01 pm
Forum: General Discussion and Questions
Topic: Generating autodocs for upython
Replies: 6
Views: 3898

Re: Generating autodocs for upython

You can change sys.path and mock packages in mkdocstrings as well: plugins: - mkdocstrings: handlers: python: setup_commands: - import sys - from unittest.mock import MagicMock as mock - sys.path.insert(0, os.path.abspath('../../lib')) - sys.modules['machine'] = mock() - sys.modules['board'] = mock(...