Skip to content

Commit 3b1b9e9

Browse files
author
Ed Costello
committed
add nitpick option to makefile, add intersphinx mappings to conf.py
1 parent 72486b7 commit 3b1b9e9

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

conf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,10 @@
9797
'hardlink' : ( 'http://docs.mongodb.org/' + current_git_branch + '/%s', '')
9898
}
9999

100-
intersphinx_mapping = {'pymongo': ('http://api.mongodb.org/python/current/', None)}
100+
intersphinx_mapping = {
101+
'pymongo': ('http://api.mongodb.org/python/current/', None),
102+
'python' : ('http://docs.python.org/', None)
103+
}
101104

102105
# -- Options for HTML output ---------------------------------------------------
103106

makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ endif
3535
# Sphinx variables.
3636
SPHINXOPTS = -c ./
3737
SPHINXBUILD = sphinx-build
38+
39+
ifdef NITPICK
40+
timestamp := $(shell date +%Y%m%d%H%M)
41+
SPHINXOPTS += -n
42+
SPHINXOPTS += -w $(branch-output)/build.$(timestamp).log
43+
endif
44+
3845
PAPER = letter
3946
PAPEROPT_a4 = -D latex_paper_size=a4
4047
PAPEROPT_letter = -D latex_paper_size=letter

0 commit comments

Comments
 (0)