def write_examples(maker):
maker.set_indent_level(0)
maker.write_chapter("Usage")
usage_root = Path("pages").joinpath("usage")
maker.inc_indent_level()
maker.write_chapter("Set traffic control (``tcset`` command)")
maker.write_file(usage_root.joinpath("tcset", "description.txt"))
maker.write_file(usage_root.joinpath("tcset", "basic_usage.rst"))
maker.write_file(usage_root.joinpath("tcdel", "header.rst"))
maker.write_file(usage_root.joinpath("tcdel", "usage.rst"))
maker.write_file(usage_root.joinpath("tcshow", "header.rst"))
maker.write_file(usage_root.joinpath("tcshow", "usage.rst"))
maker.write_chapter("For more information")
maker.write_line_list([
"More examples are available at ",
"http://{:s}.rtfd.io/en/latest/pages/usage/index.html".format(
PROJECT_NAME),
])
评论列表
文章目录