Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-1114

Documentation examples friendly for REPL/copy-paste

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 3.1.0-incubating
    • None
    • documentation
    • None

    Description

      All code examples in existing documentation sometimes have "anchors" - numbers at the end of line which are explained later or create a kind of mapping between text and picture, e.g.

      gremlin> marko.out('knows').values('name') (2)

      The problem with them is that:
      1) you need to edit such text if you want to paste it. You can't just paste a whole block to see what is the result in your console
      2) at the first glance, it may look like additional list of parameters for whose who write in languages like Scala (curried function)

      The simple way would be to separate them as comments
      gremlin> marko.out('knows').values('name') // (2)

      perhaps with any other more-specific visual way:
      gremlin> marko.out('knows').values('name') // **2

      Such change would make documentation more REPL - friendly and as everything that lowers entry barrier to such great project like this, may be worth your consideration.

      I am happy to help with conversion / scripting that change if there will be go ahead for it.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              adamD1 Adam
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: