File tree Expand file tree Collapse file tree 5 files changed +30
-8
lines changed Expand file tree Collapse file tree 5 files changed +30
-8
lines changed Original file line number Diff line number Diff line change @@ -11,3 +11,4 @@ html/_static
11
11
html /.buildinfo
12
12
html /.nojekyll
13
13
man /* .3
14
+ man /.buildinfo
Original file line number Diff line number Diff line change
1
+ EXTRA_DIST += $(wildcard doc/* .rst)
2
+
3
+ # TODO: remove libbson-objects.inv once libbson's Sphinx docs are on mongoc.org
4
+ EXTRA_DIST += \
5
+ doc/conf.py \
6
+ doc/githubpages.py \
7
+ doc/libbson-objects.inv \
8
+ doc/mongoc/__init__.py \
9
+ doc/mongoc-theme/globaltoc.html \
10
+ doc/mongoc-theme/layout.html \
11
+ doc/mongoc-theme/static/mongoc.css_t \
12
+ doc/mongoc-theme/static/pygments.css \
13
+ doc/mongoc-theme/theme.conf \
14
+ doc/taglist/__init__.py
15
+
1
16
dist-hook : man html
17
+
18
+ clean-local :
19
+ -rm -rf doc/man/.buildinfo doc/man/.doctrees
20
+ -rm -rf doc/html/.buildinfo doc/html/.doctrees doc/html/_static
Original file line number Diff line number Diff line change 13
13
]
14
14
15
15
intersphinx_mapping = {
16
- # TODO: update to mongoc.org once libbson 1.6.0 is released.
16
+ # TODO: update to mongoc.org once libbson 1.6.0 is released, replace
17
+ # 'libbson-objects.inv' here with None and delete the file. Remove from
18
+ # doc/Makefile.am too.
17
19
'bson' : ('https://s3.amazonaws.com/mciuploads/libbson/docs/latest/' ,
18
20
'libbson-objects.inv' ),
19
21
}
Original file line number Diff line number Diff line change @@ -2,13 +2,14 @@ CLEANFILES += $(wildcard doc/html/*.html)
2
2
CLEANFILES += $(wildcard doc/html/* .css)
3
3
CLEANFILES += $(wildcard doc/html/* .js)
4
4
CLEANFILES += $(wildcard doc/html/* .png)
5
+ CLEANFILES += doc/html/.nojekyll doc/html/objects.inv doc/html/searchindex.js
5
6
6
7
.PHONY : doc/html
7
8
8
- # "E" is "ignore cache", and "d" sets the dir to save cachefiles in .
9
+ # "E" is "ignore cache".
9
10
doc/html :
10
11
-mkdir -p doc/html
11
- $(SPHINX_BUILD ) -qEW -d /tmp/sphinx-cache-dir doc doc/html
12
+ $(SPHINX_BUILD ) -qEW $( top_srcdir ) / doc doc/html
12
13
13
14
SPHINX_HTML_FILES = \
14
15
doc/html/.nojekyll \
Original file line number Diff line number Diff line change 1
- MAN_FILES_TO_BUILD = $(patsubst doc/% .page,doc/man/% .3,$(wildcard doc/* .page) )
2
1
BUILT_MAN_FILES = $(wildcard doc/man/* .3)
3
2
CLEANFILES += $(wildcard doc/man/* .3)
4
3
@@ -11,12 +10,12 @@ dist_noinst_DATA = $(dist_man_MANS)
11
10
12
11
man3_MANS = $(BUILT_MAN_FILES )
13
12
14
- .PHONY : doc/ man
13
+ .PHONY : man
15
14
16
- doc/man :
15
+ # "E" is "ignore cache", "b" is build type.
16
+ man :
17
17
-mkdir -p doc/man
18
- # "E" is "ignore cache", "d" sets dir for cachefiles, "b" is build type.
19
- $(SPHINX_BUILD) -qEW -d /tmp/sphinx-cache-dir -b man doc doc/man
18
+ $(SPHINX_BUILD ) -qEW -b man $(top_srcdir ) /doc doc/man
20
19
21
20
man : $(MAN_FILES_TO_BUILD )
22
21
EXTRA_DIST += $(MAN_FILES_TO_BUILD )
You can’t perform that action at this time.
0 commit comments