Sync sphinx build config with ndn-cxx, improve README.md
Change-Id: Ib47bbe35f41b3a23523c0f66d7e5f321d7f82c2e
This commit is contained in:
1 parent
84d8477ae6
commit
786a7f2a38
5 files changed
+111
-46
No files matched your search
@@ -44,28 +44,28 @@ def apply_sphinx(self):
|
||||
task.inputs.append(conf)
|
||||
|
||||
confdir = conf.parent.abspath()
|
||||
buildername = getattr(self, "builder", "html")
|
||||
srcdir = getattr(self, "srcdir", confdir)
|
||||
outdir = self.path.find_or_declare(getattr(self, "outdir", buildername)).get_bld()
|
||||
doctreedir = getattr(self, "doctreedir", os.path.join(outdir.abspath(), ".doctrees"))
|
||||
buildername = getattr(self, 'builder', 'html')
|
||||
srcdir = getattr(self, 'srcdir', confdir)
|
||||
outdir = self.path.find_or_declare(getattr(self, 'outdir', buildername)).get_bld()
|
||||
doctreedir = getattr(self, 'doctreedir', os.path.join(outdir.abspath(), '.doctrees'))
|
||||
|
||||
task.env['BUILDERNAME'] = buildername
|
||||
task.env['SRCDIR'] = srcdir
|
||||
task.env['DOCTREEDIR'] = doctreedir
|
||||
task.env['OUTDIR'] = outdir.abspath()
|
||||
task.env['VERSION'] = "version=%s" % self.VERSION
|
||||
task.env['RELEASE'] = "release=%s" % self.VERSION
|
||||
task.env['VERSION'] = 'version=%s' % self.version
|
||||
task.env['RELEASE'] = 'release=%s' % getattr(self, 'release', self.version)
|
||||
|
||||
import imp
|
||||
confData = imp.load_source('sphinx_conf', conf.abspath())
|
||||
|
||||
if buildername == "man":
|
||||
if buildername == 'man':
|
||||
for i in confData.man_pages:
|
||||
target = outdir.find_or_declare('%s.%d' % (i[1], i[4]))
|
||||
task.outputs.append(target)
|
||||
|
||||
if self.install_path:
|
||||
self.bld.install_files("%s/man%d/" % (self.install_path, i[4]), target)
|
||||
self.bld.install_files('%s/man%d/' % (self.install_path, i[4]), target)
|
||||
else:
|
||||
task.outputs.append(outdir)
|
||||
|
||||
|
||||
@@ -1,25 +1,38 @@
|
||||
# NDN Essential Tools
|
||||
|
||||

|
||||
[](https://travis-ci.org/named-data/ndn-tools)
|
||||

|
||||
|
||||
**ndn-tools** is a collection of essential tools for
|
||||
[Named Data Networking](http://named-data.net/).
|
||||
These tools are recommended to be installed on all NDN nodes.
|
||||
**ndn-tools** is a collection of basic tools for [Named Data Networking](https://named-data.net/).
|
||||
Tools in this collection include:
|
||||
|
||||
* [peek](tools/peek): transmit a single packet between a consumer and a producer
|
||||
* [chunks](tools/chunks): segmented file transfer between a consumer and producer
|
||||
* [ping](tools/ping): test reachability between two nodes
|
||||
* [dump](tools/dump): analyze traffic on wire
|
||||
* [dissect](tools/dissect): inspect TLV structure of NDN packet format
|
||||
* [dissect-wireshark](tools/dissect-wireshark): Wireshark extension to inspect TLV structure of NDN
|
||||
packets
|
||||
* [peek](tools/peek): transmit a single Interest/Data packet between a consumer
|
||||
and a producer
|
||||
* [chunks](tools/chunks): segmented file transfer between a consumer and a producer
|
||||
* [ping](tools/ping): test reachability between two NDN nodes
|
||||
* [dump](tools/dump): capture and analyze live traffic on an NDN network
|
||||
* [dissect](tools/dissect): inspect the TLV structure of an NDN packet
|
||||
* [dissect-wireshark](tools/dissect-wireshark): Wireshark extension to inspect
|
||||
the TLV structure of NDN packets
|
||||
|
||||
See [INSTALL.md](INSTALL.md) for build instructions.
|
||||
## Installation
|
||||
|
||||
If you are new to the NDN software community, please read the
|
||||
[Contributor's Guide](https://github.com/named-data/NFD/blob/master/CONTRIBUTING.md).
|
||||
Please file bug reports and feature requests on
|
||||
[ndn-tools Redmine site](https://redmine.named-data.net/projects/ndn-tools).
|
||||
You may contribute code on [NDN Gerrit](https://gerrit.named-data.net).
|
||||
GitHub pull requests are not accepted.
|
||||
See [`INSTALL.md`](INSTALL.md) for build instructions.
|
||||
|
||||
## Reporting bugs
|
||||
|
||||
Please submit any bug reports or feature requests to the
|
||||
[ndn-tools issue tracker](https://redmine.named-data.net/projects/ndn-tools/issues).
|
||||
|
||||
## Contributing
|
||||
|
||||
You're encouraged to contribute to ndn-tools! If you are new to the NDN
|
||||
software community, please read [`README-dev.md`](README-dev.md) and the
|
||||
[Contributor's Guide](https://github.com/named-data/NFD/blob/master/CONTRIBUTING.md)
|
||||
to get started.
|
||||
|
||||
## License
|
||||
|
||||
ndn-tools is an open source project licensed under the GPL version 3.
|
||||
See [`COPYING.md`](COPYING.md) for more information.
|
||||
+62
-10
@@ -1,18 +1,70 @@
|
||||
# General information about the project.
|
||||
project = u'NDN Essential Tools'
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Configuration file for the Sphinx documentation builder.
|
||||
#
|
||||
# This file only contains a selection of the most common options. For a full
|
||||
# list see the documentation:
|
||||
# http://www.sphinx-doc.org/en/master/config
|
||||
|
||||
# -- Path setup --------------------------------------------------------------
|
||||
|
||||
# If extensions (or modules to document with autodoc) are in another directory,
|
||||
# add these directories to sys.path here. If the directory is relative to the
|
||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||
#
|
||||
# import os
|
||||
# import sys
|
||||
# sys.path.insert(0, os.path.abspath('.'))
|
||||
|
||||
|
||||
# -- Project information -----------------------------------------------------
|
||||
|
||||
project = u'NDN Essential Tools'
|
||||
copyright = u'Copyright © 2014-2019 Named Data Networking Project.'
|
||||
author = u'Named Data Networking Project'
|
||||
|
||||
# The short X.Y version
|
||||
#version = ''
|
||||
|
||||
# The full version, including alpha/beta/rc tags
|
||||
#release = ''
|
||||
|
||||
# There are two options for replacing |today|: either, you set today to some
|
||||
# non-false value, then it is used:
|
||||
#today = ''
|
||||
# Else, today_fmt is used as the format for a strftime call.
|
||||
today_fmt = '%Y-%m-%d'
|
||||
|
||||
|
||||
# -- General configuration ---------------------------------------------------
|
||||
|
||||
# If your documentation needs a minimal Sphinx version, state it here.
|
||||
#
|
||||
needs_sphinx = '1.1'
|
||||
|
||||
# Add any Sphinx extension module names here, as strings. They can be
|
||||
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
||||
# ones.
|
||||
extensions = [
|
||||
]
|
||||
|
||||
# The master toctree document.
|
||||
master_doc = 'index'
|
||||
|
||||
# -- Options for manual page output ---------------------------------------
|
||||
|
||||
# -- Options for manual page output ------------------------------------------
|
||||
|
||||
# One entry per manual page. List of tuples
|
||||
# (source start file, name, description, authors, manual section).
|
||||
man_pages = [
|
||||
('ndnpeek', 'ndnpeek', 'simple consumer to send one Interest and expect one Data', None, 1),
|
||||
('ndnpoke', 'ndnpoke', 'simple producer to publish one Data', None, 1),
|
||||
('ndnping', 'ndnping', 'reachability testing client', None, 1),
|
||||
('ndnpingserver', 'ndnpingserver', 'reachability testing server', None, 1),
|
||||
('ndndump', 'ndndump', 'traffic analysis tool', None, 8),
|
||||
('ndnputchunks', 'ndnputchunks', 'producer program with content segmentation', None, 1),
|
||||
('ndn-dissect', 'ndn-dissect', 'NDN packet format inspector', None, 1),
|
||||
('ndnpeek', 'ndnpeek', 'simple consumer to send one Interest and expect one Data', [], 1),
|
||||
('ndnpoke', 'ndnpoke', 'simple producer to publish one Data', [], 1),
|
||||
('ndnping', 'ndnping', 'reachability testing client', [], 1),
|
||||
('ndnpingserver', 'ndnpingserver', 'reachability testing server', [], 1),
|
||||
('ndnputchunks', 'ndnputchunks', 'producer program with content segmentation', [], 1),
|
||||
('ndndump', 'ndndump', 'traffic analysis tool', [], 8),
|
||||
('ndn-dissect', 'ndn-dissect', 'NDN packet format inspector', [], 1),
|
||||
]
|
||||
|
||||
# If true, show URL addresses after external links.
|
||||
#man_show_urls = True
|
||||
@@ -1,10 +0,0 @@
|
||||
def build(bld):
|
||||
if not bld.env['SPHINX_BUILD']:
|
||||
return
|
||||
bld(features='sphinx',
|
||||
builder='man',
|
||||
outdir='.',
|
||||
config='./conf.py',
|
||||
source=bld.path.ant_glob('*.rst'),
|
||||
install_path='${MANDIR}/',
|
||||
VERSION=bld.env['VERSION'])
|
||||
@@ -76,7 +76,17 @@ def build(bld):
|
||||
|
||||
bld.recurse('tools')
|
||||
bld.recurse('tests')
|
||||
bld.recurse('manpages')
|
||||
|
||||
if bld.env.SPHINX_BUILD:
|
||||
bld(features='sphinx',
|
||||
name='manpages',
|
||||
builder='man',
|
||||
config='manpages/conf.py',
|
||||
outdir='manpages',
|
||||
source=bld.path.ant_glob('manpages/*.rst'),
|
||||
install_path='${MANDIR}',
|
||||
version=VERSION_BASE,
|
||||
release=VERSION)
|
||||
|
||||
def version(ctx):
|
||||
# don't execute more than once
|
||||
|
||||
Reference in new issue
Block a user