summary refs log tree commit diff stats
path: root/tools
diff options
context:
space:
mode:
authorPMunch <peterme@peterme.net>2018-03-08 15:11:45 +0100
committerAndreas Rumpf <rumpf_a@web.de>2018-03-08 15:11:45 +0100
commit5003942256ad1e108f7ea1a93b89b54b5ec087ba (patch)
tree037d0580bf467dbbc8656f47b02556f3b396583c /tools
parentcbd059aa85c81fefb40159773182fafaf2de9617 (diff)
downloadNim-5003942256ad1e108f7ea1a93b89b54b5ec087ba.tar.gz
Renamed jsondoc2 to jsondoc, similar to doc2 (#7279)
* Update information about jsondoc/jsondoc2

Manual was missing information about jsondoc2 which made it seem like
it didn't exist at all. This commit adds mention of the jsondoc2
command along with an example.

* Renamed jsondoc2 similar to doc2 and updated docs

doc2 was recently renamed to doc while doc was renamed to doc0. This
commits renames jsondoc to jsondoc2 and jsondoc2 to jsondoc0 to behave
tha same way. The documentation for doc/jsondoc was also lagging behind
this change which has also been fixed. I interpreted this as a soft
deprecation of doc and jsondoc and therefore removed them from the
auto-complete lists.
Diffstat (limited to 'tools')
-rw-r--r--tools/nim.bash-completion2
-rw-r--r--tools/nim.zsh-completion2
2 files changed, 1 insertions, 3 deletions
diff --git a/tools/nim.bash-completion b/tools/nim.bash-completion
index 4f62da986..1c199a0cf 100644
--- a/tools/nim.bash-completion
+++ b/tools/nim.bash-completion
@@ -10,7 +10,7 @@ _nim()
 
  if [ $COMP_CWORD -eq 1 ] ; then
    # first item - suggest commands
-   kw="compile c doc doc2 compileToC cc compileToCpp cpp compileToOC objc js e rst2html rst2tex jsondoc jsondoc2 buildIndex genDepend dump check"
+   kw="compile c doc compileToC cc compileToCpp cpp compileToOC objc js e rst2html rst2tex jsondoc buildIndex genDepend dump check"
    COMPREPLY=( $( compgen -W "${kw}" -- $cur ) )
    return 0
  fi
diff --git a/tools/nim.zsh-completion b/tools/nim.zsh-completion
index 135649c90..57b5e163e 100644
--- a/tools/nim.zsh-completion
+++ b/tools/nim.zsh-completion
@@ -5,7 +5,6 @@ _nim() {
     ':command:((
       {compile,c}\:compile\ project\ with\ default\ code\ generator\ C
       doc\:generate\ the\ documentation\ for\ inputfile
-      doc2\:generate\ the\ documentation\ for\ inputfile
       {compileToC,cc}\:compile\ project\ with\ C\ code\ generator
       {compileToCpp,cpp}\:compile\ project\ to\ C++\ code
       {compileToOC,objc}\:compile\ project\ to\ Objective\ C\ code
@@ -14,7 +13,6 @@ _nim() {
       rst2html\:convert\ a\ reStructuredText\ file\ to\ HTML
       rst2tex\:convert\ a\ reStructuredText\ file\ to\ TeX
       jsondoc\:extract\ the\ documentation\ to\ a\ json\ file
-      jsondoc2\:extract\ documentation\ to\ a\ json\ file\ using\ doc2
       buildIndex\:build\ an\ index\ for\ the\ whole\ documentation
       genDepend\:generate\ a\ DOT\ file\ containing\ the\ module\ dependency\ graph
       dump\:dump\ all\ defined\ conditionals\ and\ search\ paths