sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    RDoc question

    Scheduled Pinned Locked Moved Developers' Forum
    24 Posts 5 Posters 786 Views 5 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • thomthomT Offline
      thomthom
      last edited by

      RDoc Documentation

      favicon

      (workshop.thomthom.net)

      @unknownuser said:

      RDoc Documentation

      This is the API documentation for 'RDoc Documentation'.

      How do I change what that says for the RDoc generated documentation?

      Thomas Thomassen — SketchUp Monkey & Coding addict
      List of my plugins and link to the CookieWare fund

      1 Reply Last reply Reply Quote 0
      • J Offline
        Jim
        last edited by

        Did you create a README file? (Just guessing.)

        Hi

        1 Reply Last reply Reply Quote 0
        • thomthomT Offline
          thomthom
          last edited by

          No. Where's the instructions for that?

          Also: my comments that have multiple paragraphs - they all come out merged.

          
          	# Returns an Array object.
          	#
          	# Added; 1.1.0
          	def to_a(orient_by_columns = false)
          		arr = []
          		self.each(orient_by_columns) { |value|
          			arr << value
          		}
          		return arr
          	end
          
          

          That come out as

          @unknownuser said:

          Returns an Array object.
          Added: 1.1.0

          No space in between the paragraphs.

          Not getting the space like you see in the docs here: http://rdoc.rubyforge.org/RDoc.html

          Thomas Thomassen — SketchUp Monkey & Coding addict
          List of my plugins and link to the CookieWare fund

          1 Reply Last reply Reply Quote 0
          • M Offline
            MartinRinehart
            last edited by

            @thomthom said:

            Also: my comments that have multiple paragraphs - they all come out merged.

            Wonder what a "<p>" would do?

            Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.

            1 Reply Last reply Reply Quote 0
            • thomthomT Offline
              thomthom
              last edited by

              hmm... Only class description can have spaced paragraphs? not methods?

              Thomas Thomassen — SketchUp Monkey & Coding addict
              List of my plugins and link to the CookieWare fund

              1 Reply Last reply Reply Quote 0
              • thomthomT Offline
                thomthom
                last edited by

                @martinrinehart said:

                Wonder what a "<p>" would do?

                Not mentioned in the RDoc docs. And I'd really not want to use that. Don't want to be using HTML markup in the comments.

                I do seem to get paragraphs for class/module descriptions. But not methods... 😞

                Thomas Thomassen — SketchUp Monkey & Coding addict
                List of my plugins and link to the CookieWare fund

                1 Reply Last reply Reply Quote 0
                • thomthomT Offline
                  thomthom
                  last edited by

                  I'm wondering if my RDoc installation isn't all that good.

                  From this: http://rdoc.rubyforge.org/RDoc.html

                  @unknownuser said:

                  :call-seq:
                  Lines up to the next blank line in the comment are treated as the method’s calling sequence, overriding the default parsing of method parameters and yield arguments.

                  to me it only prints out ":call-seq:" ...

                  Thomas Thomassen — SketchUp Monkey & Coding addict
                  List of my plugins and link to the CookieWare fund

                  1 Reply Last reply Reply Quote 0
                  • thomthomT Offline
                    thomthom
                    last edited by

                    hmm...

                    @unknownuser said:

                    C:\Users\Thomas>gem query

                    *** LOCAL GEMS ***

                    fxri (0.3.6)
                    fxruby (1.6.16)
                    hpricot (0.6.164)
                    log4r (1.0.5)
                    nokogiri (1.3.3)
                    ptools (1.1.6)
                    rake (0.8.1)
                    rdoc (2.4.3)
                    ruby-opengl (0.60.0)
                    test-unit (2.0.1)
                    win32-api (1.2.1, 1.2.0)
                    win32-clipboard (0.4.4)
                    win32-dir (0.3.2)
                    win32-eventlog (0.5.0)
                    win32-file (0.5.5)
                    win32-file-stat (1.3.1)
                    win32-process (0.5.9)
                    win32-sapi (0.1.4)
                    win32-sound (0.4.1)
                    windows-api (0.2.4)
                    windows-pr (0.9.3)

                    C:\Users\Thomas>

                    That matches the version number in the docs....

                    Thomas Thomassen — SketchUp Monkey & Coding addict
                    List of my plugins and link to the CookieWare fund

                    1 Reply Last reply Reply Quote 0
                    • Chris FullmerC Offline
                      Chris Fullmer
                      last edited by

                      Try it using the standard rDoc generator, instead of the fancy Darkfish one you used. See if that helps.

                      Chris

                      Lately you've been tan, suspicious for the winter.
                      All my Plugins I've written

                      1 Reply Last reply Reply Quote 0
                      • thomthomT Offline
                        thomthom
                        last edited by

                        Nooooooo! I was looking hard to find a more user friendly and better looking RDoc generator. 😢

                        Thomas Thomassen — SketchUp Monkey & Coding addict
                        List of my plugins and link to the CookieWare fund

                        1 Reply Last reply Reply Quote 0
                        • thomthomT Offline
                          thomthom
                          last edited by

                          Would this be correct to make an readme file be the index description: RDoc *.rb --main README.txt ??

                          Thomas Thomassen — SketchUp Monkey & Coding addict
                          List of my plugins and link to the CookieWare fund

                          1 Reply Last reply Reply Quote 0
                          • thomthomT Offline
                            thomthom
                            last edited by

                            @chris fullmer said:

                            Try it using the standard rDoc generator, instead of the fancy Darkfish one you used. See if that helps.

                            Chris

                            Darkfish is what the latest RDoc is using.

                            Just tried to reinstall:

                            
                            C;\Users\Thomas>gem install rdoc
                            Successfully installed rdoc-2.4.3
                            1 gem installed
                            Installing ri documentation for rdoc-2.4.3...
                            Updating ri class cache with 2246 classes...
                            Installing RDoc documentation for rdoc-2.4.3...
                            
                            C;\Users\Thomas>
                            
                            

                            still not working...

                            Thomas Thomassen — SketchUp Monkey & Coding addict
                            List of my plugins and link to the CookieWare fund

                            1 Reply Last reply Reply Quote 0
                            • J Offline
                              Jim
                              last edited by

                              I could never get rdoc to do what I want either.

                              Just some links..

                              Allison: http://blog.evanweaver.com/files/doc/fauna/allison/files/README.html

                              Hanna: http://github.com/mislav/hanna

                              webri (? no idea about this, but it looked relevant): http://webri.rubyforge.org/

                              Hi

                              1 Reply Last reply Reply Quote 0
                              • thomthomT Offline
                                thomthom
                                last edited by

                                Trying out Allison - as it was frameless and had a nice quick filter feature. But I get errors trying to build the docs.

                                
                                C;\Program Files (x86)\Google\Google SketchUp 7\Plugins\TT_Lib>allison *.rb --main README.txt --debu
                                g
                                --inline-source will be removed from RDoc on or after August 2009
                                Parsing sources with 2 thread(s)...
                                100% [14/14]  window.rb
                                
                                Generating Darkfish...
                                could not find template "C;/Ruby/lib/ruby/gems/1.8/gems/allison-2.0.3/lib/allison"
                                C;/Ruby/lib/ruby/gems/1.8/gems/rdoc-2.4.3/lib/rdoc/generator/darkfish.rb;111;in `initialize'
                                        C;/Ruby/lib/ruby/gems/1.8/gems/rdoc-2.4.3/lib/rdoc/generator/darkfish.rb;90;in `new'
                                        C;/Ruby/lib/ruby/gems/1.8/gems/rdoc-2.4.3/lib/rdoc/generator/darkfish.rb;90;in `for'
                                        C;/Ruby/lib/ruby/gems/1.8/gems/rdoc-2.4.3/lib/rdoc/rdoc.rb;314;in `document'
                                        C;/Ruby/lib/ruby/gems/1.8/gems/rdoc-2.4.3/bin/rdoc;15
                                        C;/Ruby/bin/rdoc;19;in `load'
                                        C;/Ruby/bin/rdoc;19
                                
                                
                                C;\Program Files (x86)\Google\Google SketchUp 7\Plugins\TT_Lib>
                                
                                

                                In that folder there is:
                                allison.css allison.js allison.rb

                                Thomas Thomassen — SketchUp Monkey & Coding addict
                                List of my plugins and link to the CookieWare fund

                                1 Reply Last reply Reply Quote 0
                                • thomthomT Offline
                                  thomthom
                                  last edited by

                                  allison --path returns C:/Ruby/lib/ruby/gems/1.8/gems/allison-2.0.3/lib/allison
                                  Seem to be missing .rb

                                  So I tried rdoc *.rb --main README.txt --debug --template "C:/Ruby/lib/ruby/gems/1.8/gems/allison-2.0.3/lib/allison.rb"

                                  but that resulted in

                                  C;\Program Files (x86)\Google\Google SketchUp 7\Plugins\TT_Lib>rdoc *.rb --main README.txt --debug -
                                  -template "C;/Ruby/lib/ruby/gems/1.8/gems/allison-2.0.3/lib/allison.rb"
                                  Parsing sources with 2 thread(s)...
                                  100% [14/14]  window.rb
                                  
                                  Generating Darkfish...
                                  could not find template "C;/Ruby/lib/ruby/gems/1.8/gems/allison-2.0.3/lib/allison.rb"
                                  C;/Ruby/lib/ruby/gems/1.8/gems/rdoc-2.4.3/lib/rdoc/generator/darkfish.rb;111;in `initialize'
                                          C;/Ruby/lib/ruby/gems/1.8/gems/rdoc-2.4.3/lib/rdoc/generator/darkfish.rb;90;in `new'
                                          C;/Ruby/lib/ruby/gems/1.8/gems/rdoc-2.4.3/lib/rdoc/generator/darkfish.rb;90;in `for'
                                          C;/Ruby/lib/ruby/gems/1.8/gems/rdoc-2.4.3/lib/rdoc/rdoc.rb;314;in `document'
                                          C;/Ruby/lib/ruby/gems/1.8/gems/rdoc-2.4.3/bin/rdoc;15
                                          C;/Ruby/bin/rdoc;19;in `load'
                                          C;/Ruby/bin/rdoc;19
                                  

                                  I have no idea why. incompatible RDoc version?

                                  Thomas Thomassen — SketchUp Monkey & Coding addict
                                  List of my plugins and link to the CookieWare fund

                                  1 Reply Last reply Reply Quote 0
                                  • thomthomT Offline
                                    thomthom
                                    last edited by

                                    I installed Ruby on a secondary machine. I got the allison to work now. Seem that my ruby installation is a wee bit screwed up.

                                    But the original rdoc does not support formatting for bold -italic- and underlined etc. and call-seq also isn't recognised.

                                    Thomas Thomassen — SketchUp Monkey & Coding addict
                                    List of my plugins and link to the CookieWare fund

                                    1 Reply Last reply Reply Quote 0
                                    • thomthomT Offline
                                      thomthom
                                      last edited by

                                      and updating rdoc causes the same loss of pragraphs etc... and still missing directive. and it broke the allison template.

                                      ok. I think I might have to settle for original Rdoc, and use allison with less formatting options. but still wish the directives would work...

                                      Thomas Thomassen — SketchUp Monkey & Coding addict
                                      List of my plugins and link to the CookieWare fund

                                      1 Reply Last reply Reply Quote 0
                                      • thomthomT Offline
                                        thomthom
                                        last edited by

                                        makes so sense that I'm missing the formatting with the RDoc that comes with ruby. http://ruby-doc.org/core/ <- should be supported.

                                        gaah. why is this not an easy operation?

                                        Thomas Thomassen — SketchUp Monkey & Coding addict
                                        List of my plugins and link to the CookieWare fund

                                        1 Reply Last reply Reply Quote 0
                                        • thomthomT Offline
                                          thomthom
                                          last edited by

                                          Found a solution: bye bye RDoc! Hello Yard!

                                          Link Preview Image
                                          YARD - A Ruby Documentation Tool

                                          YARD is an extensible Ruby Documentation Tool (Yay!) for consistent documentation.

                                          favicon

                                          (yardoc.org)

                                          Thomas Thomassen — SketchUp Monkey & Coding addict
                                          List of my plugins and link to the CookieWare fund

                                          1 Reply Last reply Reply Quote 0
                                          • Dan RathbunD Offline
                                            Dan Rathbun
                                            last edited by

                                            @unknownuser said:

                                            Markup

                                            • The markup engine looks for a document’s natural left margin. This is used as the initial margin for the document.* Consecutive lines starting at this margin are considered to be a paragraph.

                                            Does RDoc recognize \n ?

                                            As in:
                                            ` # Returns an Array object.

                                            \n

                                            Added: 1.1.0

                                            def to_a(orient_by_columns = false)`

                                            or would that just produce "*n" ?

                                            I think I have seen some markup in the standard ruby lib files that had <p></p> embedded.
                                            _

                                            I'm not here much anymore.

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement