Coder Social home page Coder Social logo

Comments (34)

130s avatar 130s commented on August 28, 2024

Proposal:

from rtmros_nextage.

k-okada avatar k-okada commented on August 28, 2024

wiki.ros.orgはデータは手元におけるんでしたっけ?
リビジョン管理などをかんがえると,ソースツリーと同じ所にドキュメントがあると
便利だとはおもうんですよね.
mainpage.dox
はそのひとつだし,前は僕達は
http://ftp.isr.ist.utl.pt/pub/roswiki/doc/api/jsk_tools/html/
というのを提唱していました.

今はどうなっているのかな.caktinなんかは別のdocumentationシステムになっていそうです.

from rtmros_nextage.

k-okada avatar k-okada commented on August 28, 2024

http://docs.ros.org/independent/api/rosdep/html/
なんかは上でやっていたjsk_toolsのlaunchdocとにていて,
多分rosのdocサーバみたいなことrでsphinxを動かして
ドキュメントを生成しているかんじです.
こうすると,
ソースとドキュメントを同じツリーで管理できている気がします.

from rtmros_nextage.

130s avatar 130s commented on August 28, 2024

以前すこし調べた結果がここにあります.

確かに ros wiki に書くのは,backup は自分で取ってやらないと取れないので気が引けて,なるべく package.xml に書くようにしちゃってますが,xml 内に html を埋めるのを素手でやるので面倒;rst とか簡単な記法で書きたい.でも ros wiki は割と美しく表示されるから個人的に見た目が好きなのです,ROS に特化した macro もそれなりに充実しているし.それに,ユーザがある package に関する情報を取りに行くのは一箇所が望ましいので,ros wiki から github pages に飛ばすのも理想的ではない.うーむ.

from rtmros_nextage.

k-okada avatar k-okada commented on August 28, 2024

ヤマカンですが,https://github.com/ros/catkinをみてみると,
package.xmlで

  <export>
    <rosdoc config="rosdoc.yaml"/>
  </export>

と書いておいて,
https://github.com/ros/catkin/blob/groovy-devel/rosdoc.yaml で doc ディレクトリを参照する.
すると,
http://docs.ros.org/hydro/api/catkin/html/
が出来るようにおもいます.doc以下にドキュメントもおけますが,どうもコードから生成している部分
http://docs.ros.org/hydro/api/catkin/html/dev_guide/api/catkin.html
もありそうです.

from rtmros_nextage.

130s avatar 130s commented on August 28, 2024

どうやらそうっぽいですね.レポジトリでドキュメントも管理できるのはナイス.

これらの懸念とどう折り合いをつけるか:

  • wiki の手軽さを失う
  • macro が使えない
    • moinmoin (他の package のページにリンクを貼るのに,現状だと二重括弧内に package 名だけ書けば良い.楽)
    • ros wiki 独自のそれ
  • 閲覧者はリンクを辿る手間が増える (ros package のドキュメントの入り口は ros wiki であることは変わらない)

from rtmros_nextage.

130s avatar 130s commented on August 28, 2024

最近 bloom は https://read-the-docs.readthedocs.org/en/latest/getting_started.html に乗り換えたようです.github にアップロードすると自動的に html を生成してくれるような.ナイスですがいづれにせよ上に書いた懸念は変わらない..
理想的なのは mainpage.dox のような,パッケージ内の doc ファイルを ros wiki が読み込んでくれることですかねえ..

from rtmros_nextage.

k-okada avatar k-okada commented on August 28, 2024

優先順位としては

  1. in-source documentation → ソースと文章の乖離の阻止
  2. wikiの手軽さ→だれでも編集できる?
  3. ros向けのmacro
    みたいなかんじでしょうか.

readthedocs はwikiではないけど,github上で編集するということで,そこそこ手軽なのかな.code APIみたいなもも統合されていたりするのかな.ただ,枯れたものでないと半年後には新しい物が出てきました,といって乗り換えていく体力はないので,要注意ですが.ただこういうのがでてきた,ということではdoc以下にファイルを作っておいて,あとはその時におうじて表示ツール(サービス)を選べばいいという気もしますね.

理想的なのは mainpage.dox のような,パッケージ内の doc ファイルを ros wiki が読み込んでくれることですかねえ..

はいい気がしますね.

from rtmros_nextage.

k-okada avatar k-okada commented on August 28, 2024

githubの使い方,みたいな話を,
http://wiki.ros.org/rosdistro/Tutorials/Indexing%20Your%20ROS%20Repository%20for%20Documentation%20Generation
みたいな,チュートリアルがあるといいなとおもいました.
rtmros_commonのREADME.mdに書いて,ほかのパッケージはそこを参照するようにする,というかんじでしょうか? あるいは,mdは,roswikiに飛ぶだけにしたほうが良さそうでしょうか?

from rtmros_nextage.

k-okada avatar k-okada commented on August 28, 2024

https://github.com/k-okada/rtmros_common/blob/master/README.md に簡単なgithub使い方を書きました.より詳しい方法は追加しておいて下さい.@garaemon

@mmurooka pull request お願いします.

from rtmros_nextage.

garaemon avatar garaemon commented on August 28, 2024

他人の変更を自分のgitに取り込む方法について追加しておきました

k-okada/rtmros_common#1

from rtmros_nextage.

130s avatar 130s commented on August 28, 2024

Looks like rosdoc.yaml and mainpage.dox are still functionally converted to html.

Just found an example.
https://github.com/ros-controls/ros_control/blob/hydro-devel/transmission_interface/mainpage.dox
becomes
http://docs.ros.org/hydro/api/transmission_interface/html/c++/

from rtmros_nextage.

garaemon avatar garaemon commented on August 28, 2024

README.mdなどのmarkdownファイルの利点について

  • コードと同じところで管理されてる。つまりプルリクにドキュメントの変更も含めることができる
    • すぐにwebで見られるの良い、reviewしやすい
    • 単純に楽しい、githubのcss綺麗. スマホでもみれる
    • 詳細なコードのドキュメントはコード内部に書くとして、概要をmarkdownファイルに書くのは有用と思われる

from rtmros_nextage.

garaemon avatar garaemon commented on August 28, 2024

travisからwiki.ros.org叩いて自動的にdeployできないものか?

from rtmros_nextage.

130s avatar 130s commented on August 28, 2024

moinmoin, the wiki engine that ROS wiki runs on, seems to have rst support, although not vigorously active. Example.

So if we can ask ROS wiki maintainers to install docutils (I assume it's already installed, or it's not a problem) and also create a script (maybe integrated into an automation tool like rosdoc_lite), we can realize what's been discussed here (I have no time to take any action for it though).

from rtmros_nextage.

130s avatar 130s commented on August 28, 2024

Thought about using github wiki and my answer is no.

Simply because the wiki pages are cloned SEPARATEly from its contents. I.e.,

$ git clone [email protected]:myusername/foobar.git
$ git clone [email protected]:myusername/foobar.wiki.git

(source)

In this way there's not much advantage of having doc on github.

ros_control seems to be struggling too in where to store documents. They use ros wiki, rosdoc_lite, and github wiki. Maybe @davetcoleman has ideas after having gone through all of these.

from rtmros_nextage.

130s avatar 130s commented on August 28, 2024

And @k-okada summarized what we want.

from rtmros_nextage.

davetcoleman avatar davetcoleman commented on August 28, 2024

if we can directory convert readme.rst to wiki page, that's great, but seems difficult.

I really like that idea. I have made a lot of roswiki edits, but I do not like the format. It has some benefits, but many downfalls. Also, the roswiki is running on a very slow system that was not intended to grow to the size it is today. It is overdue for replacement.

I am currently a fan of always using Github README and just having a link on the roswiki to the readme (see moveit_simple_grasps).

Sorry for the late reply!

from rtmros_nextage.

130s avatar 130s commented on August 28, 2024

Looks like Gazebo tutorials are written and stored in repository as md files, then the web page are generated from them?
e.g.

from rtmros_nextage.

davetcoleman avatar davetcoleman commented on August 28, 2024

MoveIt! is the same:
https://github.com/ros-planning/moveit_ros/blob/indigo-devel/visualization/doc/tutorial.rst

from rtmros_nextage.

k-okada avatar k-okada commented on August 28, 2024

how do you turn md file into web pages? it seems you do not use gh-pages.

On Sun, Sep 21, 2014 at 1:41 AM, Dave Coleman [email protected]
wrote:

MoveIt! is the same:

https://github.com/ros-planning/moveit_ros/blob/indigo-devel/visualization/doc/tutorial.rst


Reply to this email directly or view it on GitHub
#12 (comment)
.

from rtmros_nextage.

davetcoleman avatar davetcoleman commented on August 28, 2024

Good question... @hersh or @sachinchitta

from rtmros_nextage.

hersh avatar hersh commented on August 28, 2024

md stands for "markdown", possibly originally from here: http://daringfireball.net/projects/markdown/

I've been happiest with our documentation when it is stored in the same repo as the source it refers to, so it's easy to keep synchronized.

from rtmros_nextage.

davetcoleman avatar davetcoleman commented on August 28, 2024

I think the question is, what component does MoveIt! use to convert md files into html?

from rtmros_nextage.

hersh avatar hersh commented on August 28, 2024

MoveIt! doesn't have md files, except for the README.md files at the top of each repository. Those are converted to html by github on the main page for each repo.

from rtmros_nextage.

hersh avatar hersh commented on August 28, 2024

Moveit has some documentation in rst files, which are similar to md files. Those are converted using sphinx via rosdoc.

from rtmros_nextage.

davetcoleman avatar davetcoleman commented on August 28, 2024

Ah yes, I meant the .rst files.

Those are converted using sphinx via rosdoc

Exactly what I was asking, thanks. So to update them a bloom-release is necessary, right?

from rtmros_nextage.

hersh avatar hersh commented on August 28, 2024

Actually, no.

If the repo is already set up and built with the ROS build system by OSRF, the docs will just show up a few days after you push them to each main branch: hydro-devel, indigo-devel, etc.

from rtmros_nextage.

k-okada avatar k-okada commented on August 28, 2024

I see, so moveit tutorial means http://moveit.ros.org/documentation/tutorials/, not http://moveit.ros.org/wiki/Tutorials

And contents of http://moveit.ros.org/documentation/tutorials/ link to API doc in ros.org http://docs.ros.org/hydro/api/pr2_moveit_tutorials/html/index.html

from rtmros_nextage.

davetcoleman avatar davetcoleman commented on August 28, 2024

Correct

from rtmros_nextage.

130s avatar 130s commented on August 28, 2024

Thanks @hersh @davetcoleman for the insight about moveit wiki. I thought it's worth extending the conversation to somewhere more public, so I did.

from rtmros_nextage.

130s avatar 130s commented on August 28, 2024

Looks like @jbohren's ROS Index beat us to it!

from rtmros_nextage.

jbohren avatar jbohren commented on August 28, 2024

@130s What were you guys trying to do exactly?

from rtmros_nextage.

130s avatar 130s commented on August 28, 2024

@jbohren sorry to pull you in late. I was suggesting to keep document only in each package's repository, and wondering if we can propagate the content into wiki.ros.org. ROS Index reading readme.md perfectly addresses this question (and does many other nice things too).

Not sure about any possible integration plan of ROS Index and ROS wiki though. If there's a plan I support that.

from rtmros_nextage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.