-
Notifications
You must be signed in to change notification settings - Fork 76
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
Published API documentation #232
Comments
@adamsj-ros To the best of my knowledge, we don't currently host generated documentation anywhere, unfortunately. A lot of work has gone into http://docs.ros.org/ recently, but API documentation for pure Python packages isn't there yet. |
I didn't notice a makefile for generating Sphinx documentation. How are the docs manually generated? Maybe that could go into a new |
Any update on this? Quite hard to learn how this package works without being able to read an API. Examples are only good for getting started. |
+1 for published documentation, please! The robotics community at large is still on-ramping into ROS 2. The Python launch syntax is very complicated; If it's going to win favor over the XML declarative style launch file, this is an easy way to lower the friction. I could be naive, but the 'independent' class of API docs on docs.ros.org seemed a bit friendly to independent, pure Python packages, like Outside of that, is there a stopgap solution to publishing the docs for now in an out-of-band way, like static S3 hosting or GitHub Pages? |
@adamsj-ros , it's kind of a hack, but I was able to generate some quick docs from the codebase with $ git clone [email protected]:ros2/launch_ros.git
$ cd launch_ros/launch_ros
$ pip3 install pdoc3
$ python3 -m pdoc3 --html .
$ cd html/ros2launch
$ python3 -m http.server # hosts HTTP file server at http://localhost:8000 |
Update on this: The API documentation for python in general has been out for about a year now, but unfortunately rosdoc2 fails on launch_ros, so no useful output is being generated. The errors are all variations of:
|
Is there any way to generate the XML / YAML documentation also? I find myself having to look at the launch_ros python code just to find what entities are available in XML launch files. |
Where are those files? I don't see any XML or YAML files in launch_ros |
I am referring to the XML / YAML ros2 launch formats defined through launch: https://github.com/ros2/launch. One example I could give is that SetParameter can be included in XML as <launch>
<set_parameter name="use_sim_time" value="true"/>
...
</launch> But this is not documented anywhere. You have to search launch_ros for |
I'm afraid that my beat is to get rosdoc2 to work properly with packages, that is it should show whatever documentation the package author has prepared. If there is no documentation available, then rosdoc2 cannot solve that. I've actually never run ros2 launch_ros myself, so I am not the person to add missing documentation. |
It's a different issue. For XML/YAML launch frontend documentation, see #404. I have a WIP PR: #409. |
Bug report
Required Info:
Steps to reproduce issue
Where is the published API for
launch_ros
? I see this post on answers which could be answered by a published API. I see that there are API doc syntax available. After searching, Google, index.ros.org and answers.ros.org, I can't seem to find this APIs publication. I think it should probably reside on index.ros.org with the rest of the APIs. Maybe it's not the appropriate place. I'm open but I think it's too hard to find at the moment.Additional information
Feature request
Feature description
Implementation considerations
The text was updated successfully, but these errors were encountered: