-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add docs #31
Add docs #31
Conversation
docs/ref/concepts.md
Outdated
|
||
|
||
[saltext-org]: https://github.com/salt-extensions | ||
[discord-invite]: https://discord.gg/bPah23K7mG |
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.
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.
Great start!
- The immediate question I have - where this should live and how users will discover it?
- salt-extension-copier GH pages
- A guide like the User guide or Install guide Could it later grow into a Salt development guide or become part of it?
- The main Salt docs
Pinging @ScriptAutomate to maybe chime in on the above ^^^ (and also whether it makes sense to tweak the theme to look like other guides)
- I would like to expand the structure a bit to reflect the whole lifecycle
- Add "Documenting your saltext" section (building/previewing docs locally, publishing docs, maintaining a changelog, etc)
- Maybe add "Updating your saltext" section (updating the copier template, etc)
- Extraction of Salt core modules
I tried the https://github.com/salt-extensions/extension_migration tool and found a couple of issues
- it expects the modules to be present in the repo, but they are not because the great purge PR is merged
- it uses some globbing to match the module names, and in theory that could result in false positives or negatives.
If nobody wants to improve that tool, I can describe the manual process I used to preserve the Git history for extracted modules (I already have the notes). It is a bit cumbersome though.
- Great module migration (TODO)
If you intention was to put a little bit of historical context in this section, I can fill it in.
Also a little friction point with this repo itself (feel free to ignore):
|
Thanks for taking a look! Just some quick comments:
In the first iteration, I imagined this to live under this repository's GH page, i.e.
Yes, some historic context + consequences (both benefits and drawbacks). I have the feeling many users don't know about the Great Module Migration and are stumped when they first discover it. I'd also like to point out somewhere prominent that anyone who depends on specific modules should consider creating/maintaining the Salt extension. Not sure if people are aware they can make a difference here.
Yeah, To build the docs once, just use Note: If you're on MacOS + Homebrew, you'll need to install
👍 Agreed, just wanted to get the discussion going as soon as possible since the whole process is documented poorly + in a scattered fashion. We'll need a lot of outside contributions if we want to get anywhere. Feel free to create a PR against the branch this is based on if you find the time.
Oh, didn't realize that. Could your method be used to fix the tool? I fear this could become a serious friction point for the migration otherwise. |
For example, overriding the host the docs are served from: nox -e docs-dev -- --host=1.2.3.4
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 starts the http server twice for me - first when I run nox -e docs-dev -- --host 0.0.0.0
, and second when I press Ctrl+C to stop it (it runs the cleanup task)
It makes invocation cumbersome.
Thanks for the feedback, this will improve the noxfile for all Salt extensions. I removed the parametrization of |
It seems to be not important, especially for extensions due to much smaller docs and build time. |
Submitted a PR here lkubb#1 |
Added this doc link to the GH org profile salt-extensions/.github#1 |
I think the link to this guide should be added to the README.md in the base Copier template, so it is present in each extension. Another thing to consider is to make extension READMEs more DRY and just link to the relevant section(s) of the guide. UPD: the extension README.md template has outdated instructions on how to preview the docs locally |
I'm merging this in now to get the docs out in some fashion, but still holding off on tagging a new template version in case you @max-arnold have suggestions for the updated README. Thanks a lot for your continued involvement! The new template version will contain several minor fixes and also make the Outstanding issues:
I would prefer if the annoying boilerplate recreation during updates was fixed as well before actively inviting more people, but the required Copier PR is still in limbo. |
The updated README looks perfect! |
Per #17 and #15, I'd like to create a centralized documentation around creation and maintenance of Salt extensions, in- and outside of the organization.
This is a draft currently, with many blanks to be filled. Help wanted. :)Thanks a lot to Max Arnold!Fixes: #17