Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Docs generation for v2.0.0 #1582

Merged
merged 2 commits into from
Jan 11, 2024
Merged

Conversation

p0lygun
Copy link

@p0lygun p0lygun commented Jan 10, 2024

Description of the problem

The PRs fixes #1581

Describe the algorithm of actions that leads to the problem

The current implementation of third-party sphinx-extension sphinx-autoapi can break sometimes.

Description of Changes

We monkey patch the autoapi.directive.NestedParser.run

Code for testing new changes

make clean && make html

closes #1581

how I found the error

when going through the memory in the debugger I noticed that the extension does not decrement the "node" level in some edge cases, so Sphinx keeps trying to go one level up even when we are at root

Future considerations

in v2.1.0 it can be discussed if its possible to migrate sphinx-autoapi to sphinx.ext.autosummary as autosummary now supports recursive docs generation, or even ditching sphinx altogether for something like hugo.

@kulothunganug
Copy link
Contributor

Good findings 💪🏼

@HeaTTheatR HeaTTheatR merged commit 6de40b7 into kivymd:2.0.0 Jan 11, 2024
3 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants