Re: documentation *What do you all feel about con...
# proj-sdk
c
Re: documentation What do you all feel about consolidating `docs/`folders from OpenHands and agent-sdk into
All-Hands-AI/docs
and making it the single source of truth?
• I got auto-sync working from e.g.,
agent-sdk
->
docs
repo: whenever a change in docs happens in
agent-sdk
, it will be automatically synced to
docs
• BUT: ◦ We'd lost the ability to preview documents (Mintlify only supports it for a single repo) ◦ We can't locally preview/develop the docs: Mintlify needs
docs.json
to work - we can only put this in the aggregated
All-Hands-AI/docs
folder -- But then you can't just pull
agent-sdk
and visualize the
docs
folder in it ◦ Links in the doc will be counter-intuitive within each repo: The links in
the docs
folder for each project should be
All-Hands-AI/docs
repo-aware. Basically, you can't just do
./index.md
for a link; instead, you need to be aware of the aggregated repo structure and use`/agent-sdk/index.md`.
cc @wooden-umbrella-84098
l
I think that's good personally
c
Just chatted with Robert in office hours -- Robert suggested that the primary reason we want the docs to stay with the code is that we don't forget to update the docs while implementing new features. But Robert is ok either way for now. I do feel that the latter is less frequent, so I'd start moving all our docs to the unified repo, and we can figure out a better mechanism for adding docs for new features when we actually hit them We can still keep the auto-sync feature from stuff like
openapi.json
though
w
CC @better-park-34863
One nice thing about a separate docs repo is that we control when documentation changes go out. We can merge docs PRs after release
c
i think we can also do that in the docs repo, though it is just in a different repo
i'm hoping we can start using OH github actions to figure out our pain point here, and create a library of re-usable prompt to help us maintain docs between two repos (which is good for us anyway)
i'm gonna pilot that with the SDK first 😉
c
Preview is nice, and tbh can save quite a number of mistakes 🤔 But if the agent is doing a lot of this, • those that we may make in some incorrect way will be easily enough fixable? • or we could even have some reusable prompt (microagent really) to /sync-docs for
@openhands sync-docs
to transfer them properly to the docs repo