Changeset ed3794e in rtems-docs for common/waf.py


Ignore:
Timestamp:
01/20/16 04:00:32 (7 years ago)
Author:
Amar Takhar <amar@…>
Branches:
4.11, 5, am, master
Children:
df77336
Parents:
9b495a2
git-author:
Amar Takhar <amar@…> (01/20/16 04:00:32)
git-committer:
Amar Takhar <verm@…> (05/03/16 00:51:25)
Message:

Add 'waf linkcheck' to check external references.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/waf.py

    r9b495a2 red3794e  
    3030
    3131
     32def cmd_linkcheck(ctx, conf_dir=".", source_dir="."):
     33        ctx(
     34                rule    = "${BIN_SPHINX_BUILD} -b linkcheck -c %s -j %d -d build/doctrees %s build/linkcheck" % (conf_dir, ctx.options.jobs, source_dir),
     35                cwd             = ctx.path.abspath(),
     36                source  = ctx.path.ant_glob('**/*.rst'),
     37                target  = "linkcheck/output.txt"
     38        )
     39
     40
    3241class spell(BuildContext):
    3342        __doc__ = "Check spelling.  Supply a list of files or a glob (*.rst)"
    3443        cmd = 'spell'
    3544        fun = 'cmd_spell'
     45
     46
     47class linkcheck(BuildContext):
     48        __doc__ = "Check all external URL references."
     49        cmd = 'linkcheck'
     50        fun = 'cmd_linkcheck'
    3651
    3752
     
    7994                prompt          = 0
    8095        )
    81 
    8296
    8397def doc_singlehtml(ctx, source_dir, conf_dir):
Note: See TracChangeset for help on using the changeset viewer.