-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Loader docs #50633
Loader docs #50633
Conversation
I am looking for some feedback about the restructuring I'm doing. I am also thinking about writing some docs about specific module interfaces, for the module types that don't have it yet. |
|
||
This is done via setuptools entry points: | ||
|
||
.. code-block:: python |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs a newline below it or the documentation will not build.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Handled.
@cachedout Did you have any feedback about the "big picture" changes I'm doing? |
@astronouth7303 I think that overall these changes make a lot of sense. 👍 |
@astronouth7303 Is this ready to go? If so, please remove |
I want to look at I'm also hoping to write full interface references for each of the systems, but I guess that can be saved for future PRs. |
@astronouth7303 Sounds good. Just let us know when it's all ready to go. Thanks! |
Since I don't feel like writing detailed interface documentation for 20-some modules just yet, this is ready for a more intense review. |
@cachedout Should the docs discourage using direct module imports? There are tons of them:
For example, there is an unconditional import of
What is the proper way to cross-reference loadable modules? |
Also it would be useful to document all the In theory,
|
IIRC, there are a few very specialized cases in this turns out to be necessary, but as a general practice, cross-calling modules should be done using the |
In my experience, it's actually pretty hard to do for any modules that aren't shipped with salt. But it's been noted. |
Added both a note about importing and a quick list of loader-related settings. |
Undocumented settings like |
I'm cutting this PR off at conducting discovery for undocumented settings and documenting them. I really wanted to focus on documenting the I also don't think setting docs should live in this corner of the documentation. They should live with the settings reference and be referred to. |
And for some reason, the link to the EDIT: Figured it out, the link ID is apparently |
@cachedout Can I get your updated review? |
What does this PR do?
Add documentation about module loading and in general attempts to improve documentation about writing modules for salt.
What issues does this PR fix or reference?
#50594
Notes
I already know that there's changes for the 2018.3 branch. I'm not sure how to handle that?
For flourine: