You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However it's missing many files. It'd be really great if these pages were kept up to date with each Rez release. I've done something similar to this before and here's how I think Rez could handle it.
In or before build.py is ran, we call sphinx-apidoc and give it arguments like:
sphinx-apidoc src --output-dir docs/api
Or if called within build.py, it would look like this:
fromsphinx.extimportapidocdef_cli(...):
# ... more code ...apidoc.main([os.path.join(REZ_SOURCE_DIR, "src"), "--output-dir", os.path.join(THIS_DIR, "api")])
# ... more code ...
Motivation
In code that uses Rez API, I frequently refer to rez.resolved_context.ResolvedContext, rez.packages.Package, and rez.packages.Variant which are all currently there. However other additions like rez.developer_package.DeveloperPackage and rez.vendor.version.version.Version are missing. DeveloperPackage in particular is used a lot and it's a shame to not have links to it.
The text was updated successfully, but these errors were encountered:
Rez currently has generated API documentation files, here: https://github.com/nerdvegas/rez/tree/master/docs/api
However it's missing many files. It'd be really great if these pages were kept up to date with each Rez release. I've done something similar to this before and here's how I think Rez could handle it.
In or before build.py is ran, we call
sphinx-apidoc
and give it arguments like:sphinx-apidoc src --output-dir docs/api
Or if called within
build.py
, it would look like this:Then when GitHub builds the docs via https://github.com/nerdvegas/rez/blob/master/.github/workflows/sphinx.yaml#L21, the API files are added just before
sphinx-build
is ran and everything is kept up to date.Motivation
In code that uses Rez API, I frequently refer to
rez.resolved_context.ResolvedContext
,rez.packages.Package
, andrez.packages.Variant
which are all currently there. However other additions likerez.developer_package.DeveloperPackage
andrez.vendor.version.version.Version
are missing. DeveloperPackage in particular is used a lot and it's a shame to not have links to it.The text was updated successfully, but these errors were encountered: