Skip to content
This repository was archived by the owner on Nov 18, 2024. It is now read-only.

Commit 3855b36

Browse files
author
Sam Kleinman
committed
DOCS-169 build support for a PDF of Use Cases
1 parent 6a40315 commit 3855b36

File tree

3 files changed

+28
-4
lines changed

3 files changed

+28
-4
lines changed

conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@
168168
latex_documents = [
169169
# (source start file, target name, title, author, documentclass [howto/manual]).
170170
('contents', 'MongoDB.tex', u'MongoDB Documentation', u'MongoDB Documentation Project', 'manual'),
171+
('applications/use-cases/index', 'MongoDB-use-case-studies.tex', u'MongoDB Use Case Studies ', u'MongoDB Documentation Project', 'manual'),
171172
]
172173

173174
latex_elements = { 'preamble': '\DeclareUnicodeCharacter{FF04}{\$} \DeclareUnicodeCharacter{FF0E}{.}',
@@ -190,7 +191,6 @@
190191

191192
man_pages = [
192193
# (source start file, name, description, authors, manual section).
193-
('contents', 'mongodb', u'MongoDB Manual', [u'MongoDB Documentation Project'], 1),
194194
('reference/bsondump', 'bsondump', u'MongoDB BSON utility', [u'MongoDB Documentation Project'], 1),
195195
('reference/mongo', 'mongo', u'MongoDB Shell', [u'MongoDB Documentation Project'], 1),
196196
('reference/mongod', 'mongod', u'MongoDB Server', [u'MongoDB Documentation Project'], 1),
@@ -204,6 +204,7 @@
204204
('reference/mongostat', 'mongostat', u'MongoDB', [u'MongoDB Documentation Project'], 1),
205205
('reference/mongosniff', 'mongosniff', u'MongoDB', [u'MongoDB Documentation Project'], 1),
206206
('reference/mongotop', 'mongotop', u'MongoDB', [u'MongoDB Documentation Project'], 1),
207+
('contents', 'mongodb', u'MongoDB Manual', [u'MongoDB Documentation Project'], 1),
207208
]
208209

209210

makefile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ ifeq ($(MODE),publish)
7575
deploy: $(CURRENTBUILD)/release.txt $(CURRENTBUILD) $(publication-output)/index.html
7676

7777
# Establish dependencies for building the manual.
78-
$(CURRENTBUILD):$(CURRENTBUILD)/MongoDB-Manual.pdf $(CURRENTBUILD)/MongoDB-Manual.epub $(CURRENTBUILD)/single/ $(CURRENTBUILD)/
78+
$(CURRENTBUILD):$(CURRENTBUILD)/MongoDB-Manual.pdf $(CURRENTBUILD)/MongoDB-Manual.epub $(CURRENTBUILD)/single/ $(CURRENTBUILD)/
7979

8080
# Build and Migrate all required Manual Content
8181
$(CURRENTBUILD)/MongoDB-Manual-$(current-branch).pdf:$(BUILDDIR)/latex/MongoDB.pdf
@@ -218,7 +218,7 @@ aspirational-latex:
218218
@echo "Run \`make' in that directory to run these through (pdf)latex" \
219219
"(use \`make latexpdf' here to do that automatically)."
220220

221-
aspirational-latexpdf: aspirational-latex
221+
aspirational-latexpdf: aspirational-latex
222222
$(SPHINXBUILD) -b latex $(ASPIRATIONALOPTS) $(BUILDDIR)/aspiration-latex
223223
@echo "Running LaTeX files through pdflatex..."
224224
$(MAKE) -C $(BUILDDIR)/latex all-pdf
@@ -273,4 +273,9 @@ pdfs:latex
273273
$(PDFLATEXCOMMAND) $(LATEXOPTS) '$<'
274274
$(PDFLATEXCOMMAND) $(LATEXOPTS) '$<'
275275

276-
276+
case-studies:$(BUILDDIR)/latex/MongoDB-use-case-studies.pdf
277+
$(BUILDDIR)/latex/MongoDB-use-case-studies.tex:latex
278+
sed -i -r -e '/^\\release.*$$/d' $@
279+
$(BUILDDIR)/latex/MongoDB-use-case-studies.pdf:$(BUILDDIR)/latex/MongoDB-use-case-studies.tex
280+
$(PDFLATEXCOMMAND) $(LATEXOPTS) '$<'
281+
$(PDFLATEXCOMMAND) $(LATEXOPTS) '$<'

source/applications/use-cases/index.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,32 @@
44
Use Cases
55
=========
66

7+
8+
Real time Analytics
9+
-------------------
10+
711
.. toctree::
812
:maxdepth: 2
913

1014
real-time-analytics-storing-log-data
1115
real-time-analytics-preaggregated-reports
1216
real-time-analytics-hierarchical-aggregation
17+
18+
E-Commerce
19+
----------
20+
21+
.. toctree::
22+
:maxdepth: 2
23+
1324
ecommerce-product-catalog
1425
ecommerce-inventory-management
1526
ecommerce-category-hierarchy
27+
28+
Content Management Systems
29+
--------------------------
30+
31+
.. toctree::
32+
:maxdepth: 2
33+
1634
cms-metadata-and-asset-management
1735
cms-storing-comments

0 commit comments

Comments
 (0)