Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
5fb7cff
Add mapnik.ico
ThomasG77 May 25, 2011
86bf430
Move en files to deal with multilingual docs
ThomasG77 May 25, 2011
36348f2
Forgotten correct Makefile for multilingual support
ThomasG77 May 25, 2011
c0b9ab3
create news dir for content in en parts
ThomasG77 May 25, 2011
86645d0
Change index to add new ref to contents
ThomasG77 May 25, 2011
11c62b1
Add new contents extracted from the trac wiki
ThomasG77 May 25, 2011
7dcb4f4
Add images for new contents
ThomasG77 May 25, 2011
b506c84
Add all french translations of the en docs
ThomasG77 May 25, 2011
a8a1766
Change a style in css to fix color bug
ThomasG77 May 25, 2011
310fcd3
Make some changes to the new added files both in french and en
ThomasG77 May 25, 2011
5450b5d
Changes to use common directory for files and images for all languages
ThomasG77 May 25, 2011
26799bb
fist commit
GobbaF May 30, 2011
d46ed84
Correction orthographe
GobbaF May 30, 2011
728e22e
Modif tournure
GobbaF May 30, 2011
806db36
Correction orthographe
GobbaF May 30, 2011
2c0a95c
Orthographe - tournure
GobbaF May 30, 2011
58d0a73
Orthographe - tournure : getting-started.rst
GobbaF May 30, 2011
5ffd92b
typo
GobbaF May 30, 2011
729ec99
typo - orthographe - grammaire
GobbaF May 30, 2011
c51972f
tournures - orthographe - grammaire
GobbaF May 30, 2011
b0413c1
commencement traduction load_postgis_database
GobbaF May 30, 2011
1c89868
Add french translation
GobbaF May 30, 2011
627db59
Merge pull request #1 from GobbaF/master
ThomasG77 May 31, 2011
7058143
Fix typo on a title
ThomasG77 May 31, 2011
1b6e4e9
Update about_mapnik.rst thanks to Damoun corrections https://github.c…
ThomasG77 Jun 14, 2011
e935b45
Fix par
ThomasG77 Jun 14, 2011
6c741dc
Start to update mapnik rst docs using the new wiki from github
ThomasG77 Feb 3, 2012
436f564
Updated about mixing faq with previous doc and wiki
ThomasG77 Feb 3, 2012
61e74e6
Update gestting started part of the tutorial
ThomasG77 Feb 10, 2012
69bcd1a
Update some content
ThomasG77 Aug 19, 2012
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# sphinx build folder
_build
build

# Compiled source #
###################
Expand All @@ -21,7 +21,7 @@ _build
*.jar
*.rar
*.tar
*.zip
#*.zip

# Logs and databases #
######################
Expand All @@ -39,3 +39,4 @@ Thumbs.db
# Editor backup files #
#######################
*~

186 changes: 121 additions & 65 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@

# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SPHINXBUILD = sphinx-build# -W
PAPER =
BUILDDIR = _build
BUILDDIR = build
TRANSLATIONS = fr
LANGUAGES = en $(TRANSLATIONS)

# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
PAPEROPT_letter = -D latex_paper_size=letter
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees/$$lang $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) -c . -A language=$$lang -D language=$$lang -A target=$(TARGET) -A languages='$(LANGUAGES)'

.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest

Expand All @@ -34,97 +36,151 @@ help:
@echo " doctest to run all doctests embedded in the documentation (if enabled)"

clean:
-rm -rf $(BUILDDIR)/*
-rm -rf build/*

init:
@for lang in $(TRANSLATIONS) ;\
do \
# We change the Internal Field Separator (IFS) because to handle filename with special char like space. \
OLDIFS="$$IFS"; \
IFS=$$'\n'; \
for file in `cd en; find . -type f -a -regex '.*\.txt$$' -a -not -regex '.*\.svn.*' -printf "%p\n" ; cd ..;`; \
do \
if [ ! -f $$lang/$$file ]; then \
mkdir -p `dirname "$$lang/$$file"`; \
(echo ".. meta::"; echo " :ROBOTS: NOINDEX") | cat - "en/$$file" > "$$lang/$$file"; \
fi \
done; \
IFS=$$OLDIFS; \
# Copy all no .txt files \
yes n | cp -ipR en/* $$lang &> /dev/null; \
done
@echo "Init finished. Other target can now be build.";\

html:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
@for lang in $(LANGUAGES);\
do \
mkdir -p $(BUILDDIR)/html/$$lang $(BUILDDIR)/doctrees/$$lang; \
echo "$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $$lang $(BUILDDIR)/html/$$lang";\
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $$lang $(BUILDDIR)/html/$$lang;\
done
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."

dirhtml:
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html/<language>.";\

singlehtml:
$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
@for lang in $(LANGUAGES);\
do \
mkdir -p $(BUILDDIR)/singlehtml/$$lang $(BUILDDIR)/doctrees/$$lang; \
$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $$lang $(BUILDDIR)/singlehtml/$$lang;\
done
@echo
@echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
@echo "Build finished. The HTML pages are in $(BUILDDIR)/singlehtml/<language>.";\

pickle:
$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
@for lang in $(LANGUAGES);\
do \
mkdir -p $(BUILDDIR)/pickle/$$lang $(BUILDDIR)/doctrees/$$lang; \
$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $$lang $(BUILDDIR)/pickle/$$lang;\
done
@echo
@echo "Build finished; now you can process the pickle files."

web: pickle

json:
$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
@for lang in $(LANGUAGES);\
do \
mkdir -p $(BUILDDIR)/json/$$lang $(BUILDDIR)/doctrees/$$lang; \
$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $$lang $(BUILDDIR)/json/$$lang;\
done
@echo
@echo "Build finished; now you can process the JSON files."

htmlhelp:
$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
@for lang in $(LANGUAGES);\
do \
mkdir -p $(BUILDDIR)/htmlhelp/$$lang $(BUILDDIR)/doctrees/$$lang; \
$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $$lang $(BUILDDIR)/htmlhelp/$$lang;\
done
@echo
@echo "Build finished; now you can run HTML Help Workshop with the" \
".hhp project file in $(BUILDDIR)/htmlhelp."

qthelp:
$(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
@echo
@echo "Build finished; now you can run "qcollectiongenerator" with the" \
".qhcp project file in $(BUILDDIR)/qthelp, like this:"
@echo "# qcollectiongenerator $(BUILDDIR)/qthelp/Mapnik.qhcp"
@echo "To view the help file:"
@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/Mapnik.qhc"

devhelp:
$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
@echo
@echo "Build finished."
@echo "To view the help file:"
@echo "# mkdir -p $$HOME/.local/share/devhelp/Mapnik"
@echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/Mapnik"
@echo "# devhelp"

epub:
$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
@echo
@echo "Build finished. The epub file is in $(BUILDDIR)/epub."
".hhp project file in $(BUILDDIR)/htmlhelp/<language>."

latex:
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
@for lang in $(LANGUAGES);\
do \
mkdir -p $(BUILDDIR)/latex/$$lang $(BUILDDIR)/doctrees/$$lang; \
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $$lang $(BUILDDIR)/latex/$$lang;\
done
@echo
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
@echo "Run \`make' in that directory to run these through (pdf)latex" \
"(use \`make latexpdf' here to do that automatically)."

latexpdf:
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
@echo "Running LaTeX files through pdflatex..."
make -C $(BUILDDIR)/latex all-pdf
@echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."

text:
$(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
@echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex/<language>."\
@echo "Run \`make all-pdf' or \`make all-ps'"

pdf:
@for lang in $(LANGUAGES);\
do \
mkdir -p $(BUILDDIR)/pdf/$$lang $(BUILDDIR)/doctrees/$$lang; \
$(SPHINXBUILD) -b pdf $(ALLSPHINXOPTS) $$lang $(BUILDDIR)/pdf/$$lang;\
done
@echo
@echo "Build finished. The text files are in $(BUILDDIR)/text."
@echo "Build finished; the PDF files are in $(BUILDDIR)/pdf/<language>."\
@echo "Run \`make pdf' "

man:
$(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
epub:
@for lang in en;\
do \
mkdir -p $(BUILDDIR)/epub/$$lang $(BUILDDIR)/doctrees/$$lang; \
$(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $$lang $(BUILDDIR)/epub/$$lang;\
done
@echo
@echo "Build finished. The manual pages are in $(BUILDDIR)/man."
@echo "Build finished; the epub files are in $(BUILDDIR)/epub/<language>."\
@echo "Run \`make epub' "

all-pdf:
@for lang in $(LANGUAGES);\
do \
/usr/bin/make -C $(BUILDDIR)/latex/$$lang all-pdf ; \
if [ -d $(BUILDDIR)/html/$$lang ]; then \
mv -f $(BUILDDIR)/latex/$$lang/Mapnik.pdf $(BUILDDIR)/html/$$lang ; \
fi \
done

all-ps:
@for lang in $(LANGUAGES);\
do \
/usr/bin/make -C $(BUILDDIR)/latex/$$lang all-ps ; \
if [ -d $(BUILDDIR)/html/$$lang ]; then \
mv -f $(BUILDDIR)/latex/$$lang/Mapnik.pdf $(BUILDDIR)/html/$$lang ; \
fi \
done

changes:
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
@for lang in $(LANGUAGES);\
do \
mkdir -p $(BUILDDIR)/changes/$$lang $(BUILDDIR)/doctrees/$$lang; \
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $$lang $(BUILDDIR)/changes/$$lang;\
done
@echo
@echo "The overview file is in $(BUILDDIR)/changes."
@echo "The overview file is in $(BUILDDIR)/changes/<language>."

linkcheck:
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
@for lang in $(LANGUAGES);\
do \
mkdir -p $(BUILDDIR)/linkcheck/$$lang $(BUILDDIR)/doctrees/$$lang; \
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $$lang $(BUILDDIR)/linkcheck/$$lang;\
done
@echo
@echo "Link check complete; look for any errors in the above output " \
"or in $(BUILDDIR)/linkcheck/output.txt."
"or in $(BUILDDIR)/linkcheck/<language>/output.txt."

labels:
@for lang in $(LANGUAGES);\
do \
mkdir -p $(BUILDDIR)/labels/$$lang $(BUILDDIR)/doctrees/$$lang; \
$(SPHINXBUILD) -b labels $(ALLSPHINXOPTS) $$lang $(BUILDDIR)/labels/$$lang;\
cp $(BUILDDIR)/labels/$$lang/labels.txt $$lang/include/labels.inc;\
done
@echo
@echo "Label generation complete; look for any errors in the above output " \
"or in $(BUILDDIR)/labels/<language>/labels.txt."

doctest:
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
@echo "Testing of doctests in the sources finished, look at the " \
"results in $(BUILDDIR)/doctest/output.txt."
Binary file added _files/110m-admin-0-countries.zip
Binary file not shown.
131 changes: 131 additions & 0 deletions _files/hello_world.zip
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">








<head>
<title>
Attachment –
Mapnik Wiki &amp; Documentation – Trac
</title><link rel="search" href="/search" /><link rel="help" href="/wiki/TracGuide" /><link rel="alternate" href="/raw-attachment/wiki/XMLGettingStarted/hello_world.zip" type="application/zip; charset=iso-8859-15" title="Original Format" /><link rel="up" href="/wiki/XMLGettingStarted" title="XMLGettingStarted" /><link rel="start" href="/wiki" /><link rel="stylesheet" href="/chrome/common/css/trac.css" type="text/css" /><link rel="stylesheet" href="/chrome/common/css/code.css" type="text/css" /><link rel="shortcut icon" href="/chrome/site/favicon.ico" type="image/x-icon" /><link rel="icon" href="/chrome/site/favicon.ico" type="image/x-icon" /><link type="application/opensearchdescription+xml" rel="search" href="/search/opensearch" title="Search Mapnik Wiki &amp; Documentation" /><script type="text/javascript" src="/chrome/common/js/jquery.js"></script><script type="text/javascript" src="/chrome/common/js/trac.js"></script><script type="text/javascript" src="/chrome/common/js/search.js"></script><script type="text/javascript" src="/chrome/common/js/ie_pre7_hacks.js"></script>
<link rel="stylesheet" type="text/css" href="/chrome/site/style.css" />
</head>
<body>
<div id="siteheader">
</div>
<div id="banner">
<div id="header">
<a id="logo" href="http://mapnik.org/"><img src="/chrome/site/mapnik-logo.png" alt="mapnik" height="70" width="240" /></a>
</div>
<form id="search" action="/search" method="get">
<div>
<label for="proj-search">Search:</label>
<input type="text" id="proj-search" name="q" size="18" value="" />
<input type="submit" value="Search" />
</div>
</form>
<div id="metanav" class="nav">
<ul>
<li class="first"><a href="/login">Login</a></li><li><a href="/wiki/TracGuide">Help/Guide</a></li><li><a href="/about">About Trac</a></li><li><a href="/prefs">Preferences</a></li><li class="last"><a href="/register">Register</a></li>
</ul>
</div>
</div>
<div id="mainnav" class="nav">
<ul>
<li class="first active"><a href="/wiki">Home</a></li><li><a href="/timeline">Timeline</a></li><li><a href="/roadmap">Roadmap</a></li><li><a href="/browser">Browse Source</a></li><li><a href="/report">View Tickets</a></li><li><a href="/search">Search</a></li><li class="last"><a href="/stractistics">Stractistics</a></li>
</ul>
</div>
<div id="main">
<div id="ctxtnav" class="nav">
<h2>Context Navigation</h2>
<ul>
<li class="first last"><a href="/wiki/XMLGettingStarted">Back to XMLGettingStarted</a></li>
</ul>
<hr />
</div>
<div id="content" class="attachment">
<h1><a href="/wiki/XMLGettingStarted">XMLGettingStarted</a>: hello_world.zip</h1>
<table id="info" summary="Description">
<tbody>
<tr>
<th scope="col">
File hello_world.zip, <span title="9827 bytes">9.6 kB</span>
(added by springmeyer, <a class="timeline" href="/timeline?from=2008-04-29T21%3A43%3A56Z-0400&amp;precision=second" title="2008-04-29T21:43:56Z-0400 in Timeline">3 years</a> ago)
</th>
</tr>
<tr>
<td class="message searchable">
<p>
Tutorial for Hello World Mapnik examples using pure python and XML config file
</p>

</td>
</tr>
</tbody>
</table>
<div id="preview" class="searchable">
<p>
<strong>HTML preview not available</strong>,
since no preview renderer could handle it.
Try <a href="/raw-attachment/wiki/XMLGettingStarted/hello_world.zip">downloading</a> the file instead.
</p>
</div>
</div>
<div id="altlinks">
<h3>Download in other formats:</h3>
<ul>
<li class="last first">
<a rel="nofollow" href="/raw-attachment/wiki/XMLGettingStarted/hello_world.zip">Original Format</a>
</li>
</ul>
</div>
</div>
<div id="footer" lang="en" xml:lang="en"><hr />
<a id="tracpowered" href="http://trac.edgewall.org/"><img src="/chrome/common/trac_logo_mini.png" height="30" width="107" alt="Trac Powered" /></a>
<p class="left">
Powered by <a href="/about"><strong>Trac 0.11.1</strong></a><br />
By <a href="http://www.edgewall.org/">Edgewall Software</a>.
</p>
<p class="right">Visit the Trac open source project at<br /><a href="http://trac.edgewall.org/">http://trac.edgewall.org/</a></p>
</div>
<div id="sitefooter">
</div>

<!-- Google Analytics Widget Code -->
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
jQuery(document).ready( function() {
var pageTracker = _gat._getTracker("UA-408098-11");
pageTracker._initData();
pageTracker._trackPageview();
jQuery('a').each( function() {
var url;
if ( this.href.match("http:\/\/trac.mapnik.org") ) {
if ( this.href.match(/\.(zip|tar|tar.gz|tar.bzip|egg)$/) ) {
url = this.pathname + this.search;
};
} else {
var port = '';
if ( this.port != '') port = ':'+this.port;
url = '/external/' + this.hostname + port + this.pathname + this.search;
};
if ( url ) {
if ( ! url.match('^\/attachment\/') ) {
jQuery(this).click( function() {
pageTracker._trackPageview(url);
});
};
};
});
});
</script>
</body>
</html>
Loading