aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Piotr Jaroszyński <peper@gentoo.org> 2007-11-14 01:33:33 +0000
committerAvatar Piotr Jaroszyński <peper@gentoo.org> 2007-11-14 01:33:33 +0000
commit19cdc245b2e1d3076060ddd7def5aee33f83b174 (patch)
tree1b1b17f4ce3ea2904f67643ede351f297a03b263
parent18115303e89e8ad5d5934c7dfdde9c671b57637e (diff)
downloadpaludis-19cdc245b2e1d3076060ddd7def5aee33f83b174.tar.gz
paludis-19cdc245b2e1d3076060ddd7def5aee33f83b174.tar.xz
(python) Reference examples in the docs.
-rw-r--r--doc/api/python/Makefile.am5
-rw-r--r--python/version_spec.cc4
2 files changed, 6 insertions, 3 deletions
diff --git a/doc/api/python/Makefile.am b/doc/api/python/Makefile.am
index 0429561..6d4fbe2 100644
--- a/doc/api/python/Makefile.am
+++ b/doc/api/python/Makefile.am
@@ -1,6 +1,6 @@
SUBDIRS = .
-CLEANFILES = *~ python/*
+CLEANFILES = *~ python/*/*
MAINTAINERCLEANFILES = Makefile.in
examples = \
@@ -20,7 +20,7 @@ all-local : epydoc
epydoc : python
-python : epydoc.css python_syntax.css create_python_examples.py $(examples)
+python : $(top_builddir)/python/paludis.so epydoc.css python_syntax.css create_python_examples.py $(examples)
rm -fr python
mkdir python
env \
@@ -37,6 +37,7 @@ python : epydoc.css python_syntax.css create_python_examples.py $(examples)
epydoc -n Paludis -o python -u http://paludis.pioto.org --no-frames -c $(srcdir)/epydoc.css \
$(top_builddir)/python/paludis.so
$(PYTHON) $(srcdir)/create_python_examples.py $(srcdir) $(examples)
+ find python/ -type f | xargs sed -i -e 's@http://###EX###@@'
cp $(srcdir)/python_syntax.css python/
diff --git a/python/version_spec.cc b/python/version_spec.cc
index 2581427..f938c88 100644
--- a/python/version_spec.cc
+++ b/python/version_spec.cc
@@ -43,7 +43,9 @@ void expose_version_spec()
bp::class_<VersionSpec>
(
"VersionSpec",
- "A VersionSpec represents a version number (for example, 1.2.3b-r1).",
+ "A VersionSpec represents a version number (for example, 1.2.3b-r1).\n\n"
+
+ "See U{example_version_spec<###EX###../example_version_spec.html>}",
bp::init<const std::string &>("__init__(string)")
)
.def("bump", &VersionSpec::bump,