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

Doc code another round of tiny changes 2 #993

Merged
merged 5 commits into from
Feb 7, 2024

Conversation

mmatera
Copy link
Contributor

@mmatera mmatera commented Feb 5, 2024

This PR continues #990 by moving the inner loop that loads chapters in MathicsMainDocumentation.doc_part to a new method MathicsMainDocumentation.doc_chapter. With this change, the "on the fly" loading of documentation for Pymathics modules loaded in a Django session now is possible (and is implemented in Mathics3/mathics-django#201)

…the documentation.

* fix the issue in the documentation generation that prevents symbols with the same name and different contexts be loaded.

* filter top-level modules in collecting chapters
@mmatera mmatera mentioned this pull request Feb 5, 2024
def filter_toplevel_modules(module_list):
"""
Keep just the modules at the top level.
Keep just the modules at the top level
Copy link
Member

@rocky rocky Feb 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was the "." removed? Other sentences in comments have periods, and sentences in general have periods.

Remove `want_sorting` parameter. This was added when we had a bug in
Mathics3 regarding not resetting decimal digits listing precision in a
LRU caching.
    
Also perform some linting:
    
    * remove unused import
    * Reinstate "." at the end of a sentence
@rocky
Copy link
Member

rocky commented Feb 7, 2024

LGTM

@rocky rocky merged commit dc6c82c into master Feb 7, 2024
11 checks passed
@rocky rocky deleted the doc-code-another-round-of-tiny-changes-2 branch February 7, 2024 16:47
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.

2 participants