From 3a4e6ff9e675e06c3fa6c7ecbf084063160f3d46 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Wed, 30 Dec 2009 06:55:36 +0000 Subject: Title page fixes. --- docs/conf.py | 16 ++++++++++++++++ docs/copyright.rst | 2 ++ 2 files changed, 18 insertions(+) (limited to 'docs') diff --git a/docs/conf.py b/docs/conf.py index e53faa99e..cf109b63a 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -228,6 +228,20 @@ _PREAMBLE = r""" \renewcommand{\footrulewidth}{0pt}% not footer line \fancyfoot[C]{\thepage}% like fancy style } + +\makeatletter +\def\@subtitle{\relax} +\newcommand{\subtitle}[1]{\gdef\@subtitle{#1}} +\renewcommand{\maketitle}{ + \begin{titlepage} + {\rm\Huge\@title\par} + {\em\large\py@release\releaseinfo\par} + \if\@subtitle\relax\else\large\@subtitle\par\fi + {\large\@author\par} + \end{titlepage} +} +\makeatother + \sloppy """ @@ -235,6 +249,8 @@ latex_elements = { 'preamble': _PREAMBLE, 'wrapperclass':'book', 'date':'', + 'releasename':'Version', + 'title':r'The repoze.bfg Web Application \newline Framework', } from docutils import nodes diff --git a/docs/copyright.rst b/docs/copyright.rst index 4ab7e97cd..3d210b798 100644 --- a/docs/copyright.rst +++ b/docs/copyright.rst @@ -9,6 +9,8 @@ Copyright © 2008-2010, Agendaless Consulting. ISBN-13: 978-0-615-34537-6 +First publishing: 2010 + All rights reserved. This material may be copied or distributed only subject to the terms and conditions set forth in the `Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License -- cgit v1.2.3