Skip to content

Commit c76852d

Browse files
committed
Lots of spring cleaning and added in Sphinx documentation.
1 parent bcd57e3 commit c76852d

40 files changed

+612
-132
lines changed

AUTHORS

+14-8
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1-
Michael Trier <mtrier _at_ gmail.com>
2-
Alan Briolat
3-
Florian Apolloner <florian _at_ apolloner.eu>
4-
David Aguilar <davvid _at_ gmail.com>
5-
Jelmer Vernooij <jelmer _at_ samba.org>
6-
Steve Frécinaux <code _at_ istique.net>
7-
Kai Lautaportti <kai _at_ lautaportti.fi>
8-
Paul Sowden <paul _at_ idontsmoke.co.uk>
1+
GitPython was originally written by Michael Trier.
2+
3+
Contributors are:
4+
5+
-Michael Trier <mtrier _at_ gmail.com>
6+
-Alan Briolat
7+
-Florian Apolloner <florian _at_ apolloner.eu>
8+
-David Aguilar <davvid _at_ gmail.com>
9+
-Jelmer Vernooij <jelmer _at_ samba.org>
10+
-Steve Frécinaux <code _at_ istique.net>
11+
-Kai Lautaportti <kai _at_ lautaportti.fi>
12+
-Paul Sowden <paul _at_ idontsmoke.co.uk>
13+
14+
Portions derived from other open source works and are clearly marked.

CHANGES

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ CHANGES
77

88
General
99
-------
10+
* Added in Sphinx documentation.
11+
1012
* Removed ambiguity between paths and treeishs. When calling commands that
1113
accept treeish and path arguments and there is a path with the same name as
1214
a treeish git cowardly refuses to pick one and asks for the command to use

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2008, Michael Trier and contributors
1+
Copyright (C) 2008, 2009 Michael Trier and contributors
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without

doc/Makefile

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# Makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line.
5+
SPHINXOPTS =
6+
SPHINXBUILD = sphinx-build
7+
PAPER =
8+
9+
# Internal variables.
10+
PAPEROPT_a4 = -D latex_paper_size=a4
11+
PAPEROPT_letter = -D latex_paper_size=letter
12+
ALLSPHINXOPTS = -d _build/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
13+
14+
.PHONY: help clean html web pickle htmlhelp latex changes linkcheck
15+
16+
help:
17+
@echo "Please use \`make <target>' where <target> is one of"
18+
@echo " html to make standalone HTML files"
19+
@echo " pickle to make pickle files"
20+
@echo " json to make JSON files"
21+
@echo " htmlhelp to make HTML files and a HTML help project"
22+
@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
23+
@echo " changes to make an overview over all changed/added/deprecated items"
24+
@echo " linkcheck to check all external links for integrity"
25+
26+
clean:
27+
-rm -rf _build/*
28+
29+
html:
30+
mkdir -p _build/html _build/doctrees
31+
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) _build/html
32+
@echo
33+
@echo "Build finished. The HTML pages are in _build/html."
34+
35+
pickle:
36+
mkdir -p _build/pickle _build/doctrees
37+
$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) _build/pickle
38+
@echo
39+
@echo "Build finished; now you can process the pickle files."
40+
41+
web: pickle
42+
43+
json:
44+
mkdir -p _build/json _build/doctrees
45+
$(SPHINXBUILD) -b json $(ALLSPHINXOPTS) _build/json
46+
@echo
47+
@echo "Build finished; now you can process the JSON files."
48+
49+
htmlhelp:
50+
mkdir -p _build/htmlhelp _build/doctrees
51+
$(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) _build/htmlhelp
52+
@echo
53+
@echo "Build finished; now you can run HTML Help Workshop with the" \
54+
".hhp project file in _build/htmlhelp."
55+
56+
latex:
57+
mkdir -p _build/latex _build/doctrees
58+
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) _build/latex
59+
@echo
60+
@echo "Build finished; the LaTeX files are in _build/latex."
61+
@echo "Run \`make all-pdf' or \`make all-ps' in that directory to" \
62+
"run these through (pdf)latex."
63+
64+
changes:
65+
mkdir -p _build/changes _build/doctrees
66+
$(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) _build/changes
67+
@echo
68+
@echo "The overview file is in _build/changes."
69+
70+
linkcheck:
71+
mkdir -p _build/linkcheck _build/doctrees
72+
$(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) _build/linkcheck
73+
@echo
74+
@echo "Link check complete; look for any errors in the above output " \
75+
"or in _build/linkcheck/output.txt."

doc/conf.py

+191
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,191 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# GitPython documentation build configuration file, created by
4+
# sphinx-quickstart on Sat Jan 24 11:51:01 2009.
5+
#
6+
# This file is execfile()d with the current directory set to its containing dir.
7+
#
8+
# The contents of this file are pickled, so don't put values in the namespace
9+
# that aren't pickleable (module imports are okay, they're removed automatically).
10+
#
11+
# Note that not all possible configuration values are present in this
12+
# autogenerated file.
13+
#
14+
# All configuration values have a default; values that are commented out
15+
# serve to show the default.
16+
17+
import sys, os
18+
19+
# If your extensions are in another directory, add it here. If the directory
20+
# is relative to the documentation root, use os.path.abspath to make it
21+
# absolute, like shown here.
22+
#sys.path.append(os.path.abspath('.'))
23+
sys.path.insert(0, os.path.abspath('../lib'))
24+
25+
# General configuration
26+
# ---------------------
27+
28+
# Add any Sphinx extension module names here, as strings. They can be extensions
29+
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
30+
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest']
31+
32+
# Add any paths that contain templates here, relative to this directory.
33+
templates_path = ['templates']
34+
35+
# The suffix of source filenames.
36+
source_suffix = '.rst'
37+
38+
# The encoding of source files.
39+
#source_encoding = 'utf-8'
40+
41+
# The master toctree document.
42+
master_doc = 'index'
43+
44+
# General information about the project.
45+
project = u'GitPython'
46+
copyright = u'Copyright (C) 2008, 2009 Michael Trier and contributors'
47+
48+
# The version info for the project you're documenting, acts as replacement for
49+
# |version| and |release|, also used in various other places throughout the
50+
# built documents.
51+
#
52+
# The short X.Y version.
53+
version = '0.1.6'
54+
# The full version, including alpha/beta/rc tags.
55+
release = '0.1.6'
56+
57+
# The language for content autogenerated by Sphinx. Refer to documentation
58+
# for a list of supported languages.
59+
#language = None
60+
61+
# There are two options for replacing |today|: either, you set today to some
62+
# non-false value, then it is used:
63+
#today = ''
64+
# Else, today_fmt is used as the format for a strftime call.
65+
#today_fmt = '%B %d, %Y'
66+
67+
# List of documents that shouldn't be included in the build.
68+
#unused_docs = []
69+
70+
# List of directories, relative to source directory, that shouldn't be searched
71+
# for source files.
72+
exclude_trees = ['_build']
73+
74+
# The reST default role (used for this markup: `text`) to use for all documents.
75+
#default_role = None
76+
77+
# If true, '()' will be appended to :func: etc. cross-reference text.
78+
#add_function_parentheses = True
79+
80+
# If true, the current module name will be prepended to all description
81+
# unit titles (such as .. function::).
82+
#add_module_names = True
83+
84+
# If true, sectionauthor and moduleauthor directives will be shown in the
85+
# output. They are ignored by default.
86+
#show_authors = False
87+
88+
# The name of the Pygments (syntax highlighting) style to use.
89+
pygments_style = 'sphinx'
90+
91+
92+
# Options for HTML output
93+
# -----------------------
94+
95+
# The style sheet to use for HTML and HTML Help pages. A file of that name
96+
# must exist either in Sphinx' static/ path, or in one of the custom paths
97+
# given in html_static_path.
98+
html_style = 'default.css'
99+
100+
# The name for this set of Sphinx documents. If None, it defaults to
101+
# "<project> v<release> documentation".
102+
#html_title = None
103+
104+
# A shorter title for the navigation bar. Default is the same as html_title.
105+
#html_short_title = None
106+
107+
# The name of an image file (relative to this directory) to place at the top
108+
# of the sidebar.
109+
#html_logo = None
110+
111+
# The name of an image file (within the static path) to use as favicon of the
112+
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
113+
# pixels large.
114+
#html_favicon = None
115+
116+
# Add any paths that contain custom static files (such as style sheets) here,
117+
# relative to this directory. They are copied after the builtin static files,
118+
# so a file named "default.css" will overwrite the builtin "default.css".
119+
html_static_path = ['static']
120+
121+
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
122+
# using the given strftime format.
123+
#html_last_updated_fmt = '%b %d, %Y'
124+
125+
# If true, SmartyPants will be used to convert quotes and dashes to
126+
# typographically correct entities.
127+
#html_use_smartypants = True
128+
129+
# Custom sidebar templates, maps document names to template names.
130+
#html_sidebars = {}
131+
132+
# Additional templates that should be rendered to pages, maps page names to
133+
# template names.
134+
#html_additional_pages = {}
135+
136+
# If false, no module index is generated.
137+
#html_use_modindex = True
138+
139+
# If false, no index is generated.
140+
#html_use_index = True
141+
142+
# If true, the index is split into individual pages for each letter.
143+
#html_split_index = False
144+
145+
# If true, the reST sources are included in the HTML build as _sources/<name>.
146+
#html_copy_source = True
147+
148+
# If true, an OpenSearch description file will be output, and all pages will
149+
# contain a <link> tag referring to it. The value of this option must be the
150+
# base URL from which the finished HTML is served.
151+
#html_use_opensearch = ''
152+
153+
# If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
154+
#html_file_suffix = ''
155+
156+
# Output file base name for HTML help builder.
157+
htmlhelp_basename = 'gitpythondoc'
158+
159+
160+
# Options for LaTeX output
161+
# ------------------------
162+
163+
# The paper size ('letter' or 'a4').
164+
#latex_paper_size = 'letter'
165+
166+
# The font size ('10pt', '11pt' or '12pt').
167+
#latex_font_size = '10pt'
168+
169+
# Grouping the document tree into LaTeX files. List of tuples
170+
# (source start file, target name, title, author, document class [howto/manual]).
171+
latex_documents = [
172+
('index', 'GitPython.tex', ur'GitPython Documentation',
173+
ur'Michael Trier', 'manual'),
174+
]
175+
176+
# The name of an image file (relative to this directory) to place at the top of
177+
# the title page.
178+
#latex_logo = None
179+
180+
# For "manual" documents, if this is true, then toplevel headings are parts,
181+
# not chapters.
182+
#latex_use_parts = False
183+
184+
# Additional stuff for the LaTeX preamble.
185+
#latex_preamble = ''
186+
187+
# Documents to append as an appendix to all manuals.
188+
#latex_appendices = []
189+
190+
# If false, no module index is generated.
191+
#latex_use_modindex = True

doc/index.rst

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
.. GitPython documentation master file, created by sphinx-quickstart on Sat Jan 24 11:51:01 2009.
2+
You can adapt this file completely to your liking, but it should at least
3+
contain the root `toctree` directive.
4+
5+
GitPython Documentation
6+
=======================
7+
8+
Contents:
9+
10+
.. toctree::
11+
:maxdepth: 3
12+
13+
intro
14+
tutorial
15+
reference
16+
17+
Indices and tables
18+
==================
19+
20+
* :ref:`genindex`
21+
* :ref:`modindex`
22+
* :ref:`search`
23+

0 commit comments

Comments
 (0)