Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-17534

CQLSH help topic links are broken between textile and online files

    XMLWordPrintableJSON

Details

    Description

      CQLSH help topics opens a generic CQL page, not the specific topic.  This happens when docs are not installed locally, and it tries to open the online version.

      The file cqlsh.py has:

          # default location of local CQL.html
          if os.path.exists(CASSANDRA_PATH + '/doc/cql3/CQL.html'):
           ....
          else:
          # fallback to online version
          CASSANDRA_CQL_HTML = CASSANDRA_CQL_HTML_FALLBACK

      For example,

      cqlsh> help truncate;

      opens the page:

      https://cassandra.apache.org/doc/latest/cassandra/cql/index.html#truncateStmt

      but there is no information about 'truncate' on that page and the anchor #truncateStmt doesn't exist.

      the correct page anchor is:

      https://cassandra.apache.org/doc/latest/cassandra/cql/ddl.html#truncate-statement

      The local file anchors appear they may be incorrect as well:

      https://github.com/apache/cassandra/blob/trunk/doc/cql3/CQL.textile#truncate

      To reproduce this, 'pip install cqlsh' on a machine without a Cassandra package install.

      Attachments

        Issue Links

          Activity

            People

              vgali7 Vineet Gali
              bschoeni Brad Schoening
              Vineet Gali
              Stefan Miklosovic
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: