Docs: add online help pages for the client
This commit is contained in:
parent
6063f67992
commit
0863a2a9e4
2
.gitignore
vendored
2
.gitignore
vendored
@ -8,6 +8,8 @@ __pycache__
|
|||||||
/_opam
|
/_opam
|
||||||
/_docker_build
|
/_docker_build
|
||||||
/docs/_build
|
/docs/_build
|
||||||
|
/docs/api/tezos-client.html
|
||||||
|
/docs/api/tezos-admin-client.html
|
||||||
|
|
||||||
/tezos-node
|
/tezos-node
|
||||||
/tezos-protocol-compiler
|
/tezos-protocol-compiler
|
||||||
|
4
Makefile
4
Makefile
@ -16,8 +16,10 @@ tezos-%.pkg:
|
|||||||
@jbuilder build --dev $(patsubst %.opam,%.install, \
|
@jbuilder build --dev $(patsubst %.opam,%.install, \
|
||||||
$(shell find -name tezos-$*.opam))
|
$(shell find -name tezos-$*.opam))
|
||||||
|
|
||||||
doc-html:
|
doc-html: all
|
||||||
@jbuilder build @doc ${DEV}
|
@jbuilder build @doc ${DEV}
|
||||||
|
@./tezos-client -protocol ProtoALphaALph man -verbosity 3 -format html | sed "s/$HOME/\$HOME/g" > docs/api/tezos-client.html
|
||||||
|
@./tezos-admin-client man -verbosity 3 -format html | sed "s/$HOME/\$HOME/g" > docs/api/tezos-admin-client.html
|
||||||
@mkdir -p $$(pwd)/docs/_build/api/odoc
|
@mkdir -p $$(pwd)/docs/_build/api/odoc
|
||||||
@rm -rf $$(pwd)/docs/_build/api/odoc/*
|
@rm -rf $$(pwd)/docs/_build/api/odoc/*
|
||||||
@cp -r $$(pwd)/_build/default/_doc/* $$(pwd)/docs/_build/api/odoc/
|
@cp -r $$(pwd)/_build/default/_doc/* $$(pwd)/docs/_build/api/odoc/
|
||||||
|
@ -404,6 +404,10 @@ simple HTTP request:
|
|||||||
The minimal CLI client
|
The minimal CLI client
|
||||||
----------------------
|
----------------------
|
||||||
|
|
||||||
Work in progress.
|
Tezos is distributed with two command line tools: a minimal command
|
||||||
|
line wallet ``tezos-client``, and an administration tool
|
||||||
|
``tezos-admin-client``.
|
||||||
|
|
||||||
See ``./tezos-client -help`` for available commands.
|
Their command line interfaces are described
|
||||||
|
:ref:`here<tezos_client_commands>` and
|
||||||
|
:ref:`here<tezos_admin_client_commands>`.
|
||||||
|
28
docs/api/cli-commands.rst
Normal file
28
docs/api/cli-commands.rst
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
**********************
|
||||||
|
Command Line Interface
|
||||||
|
**********************
|
||||||
|
|
||||||
|
This document is a prettier output of the documentation produced by
|
||||||
|
the command line client's ``man`` command. You can obtain similar pages
|
||||||
|
using the following shell commands.
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
|
tezos-client -protocol ProtoALphaALph man -verbosity 3
|
||||||
|
tezos-admin-client man -verbosity 3
|
||||||
|
|
||||||
|
Command line client
|
||||||
|
===================
|
||||||
|
|
||||||
|
.. _tezos_client_commands:
|
||||||
|
|
||||||
|
.. raw:: html
|
||||||
|
:file: tezos-client.html
|
||||||
|
|
||||||
|
Administration command line client
|
||||||
|
==================================
|
||||||
|
|
||||||
|
.. _tezos_admin_client_commands:
|
||||||
|
|
||||||
|
.. raw:: html
|
||||||
|
:file: tezos-admin-client.html
|
@ -41,10 +41,11 @@ Welcome to Tezos's documentation!
|
|||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
:caption: OCaml API:
|
:caption: APIs:
|
||||||
|
|
||||||
README
|
README
|
||||||
api/api-inline
|
api/api-inline
|
||||||
|
api/cli-commands
|
||||||
|
|
||||||
Indices and tables
|
Indices and tables
|
||||||
==================
|
==================
|
||||||
|
@ -929,18 +929,18 @@ let usage ppf ?global_options ?(highlights=[]) commands format verbosity =
|
|||||||
"@[<v>@{<title>Usage@}@,\
|
"@[<v>@{<title>Usage@}@,\
|
||||||
@{<section>\
|
@{<section>\
|
||||||
@{<command>@{<commandline>\
|
@{<command>@{<commandline>\
|
||||||
%s @{<opt>[global options]@} command @{<opt>[command options]@}@}@}@,\
|
%s [@{<opt>global options@}] command @{<opt>[command options]@}@}@}@,\
|
||||||
@{<command>@{<commandline>\
|
@{<command>@{<commandline>\
|
||||||
%s @{<opt>-help@} (for global options)@}@}@,\
|
%s @{<opt>-help@} (for global options)@}@}@,\
|
||||||
@{<command>@{<commandline>\
|
@{<command>@{<commandline>\
|
||||||
%s @{<opt>[global options]@} command @{<opt>-help@} (for command options)@}@}\
|
%s [@{<opt>global options@}] command @{<opt>-help@} (for command options)@}@}\
|
||||||
@}@,@,\
|
@}@,@,\
|
||||||
@{<title>To browse the documentation@}@,\
|
@{<title>To browse the documentation@}@,\
|
||||||
@{<section>\
|
@{<section>\
|
||||||
@{<command>@{<commandline>\
|
@{<command>@{<commandline>\
|
||||||
%s @{<opt>[global options]@} man (for a list of commands)@}@}@,\
|
%s [@{<opt>global options@}] man (for a list of commands)@}@}@,\
|
||||||
@{<command>@{<commandline>\
|
@{<command>@{<commandline>\
|
||||||
%s @{<opt>[global options]@} man @{<opt>-verbosity 3@} (for the full manual)@}@}\
|
%s [@{<opt>global options@}] man @{<opt>-verbosity 3@} (for the full manual)@}@}\
|
||||||
@}@,@,\
|
@}@,@,\
|
||||||
@{<title>Global options (must come before the command)@}@,\
|
@{<title>Global options (must come before the command)@}@,\
|
||||||
@{<commanddoc>%a@}%a\
|
@{<commanddoc>%a@}%a\
|
||||||
|
Loading…
Reference in New Issue
Block a user