]> git.phdru.name Git - ppu.git/blobdiff - docs/conf.py
Docs: 2018 year
[ppu.git] / docs / conf.py
old mode 100755 (executable)
new mode 100644 (file)
index da4a083..53b3a59
@@ -1,7 +1,6 @@
-#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #
-# remove-old-files documentation build configuration file, created by
+# ppu documentation build configuration file, created by
 # sphinx-quickstart on Sat Apr 15 20:37:34 2017.
 #
 # This file is execfile()d with the current directory set to its
@@ -17,6 +16,7 @@
 # add these directories to sys.path here. If the directory is relative to the
 # documentation root, use os.path.abspath to make it absolute, like shown here.
 #
+from datetime import date
 # import os
 # import sys
 # sys.path.insert(0, os.path.abspath('.'))
@@ -46,18 +46,20 @@ source_suffix = '.rst'
 master_doc = 'index'
 
 # General information about the project.
-project = 'remove-old-files'
-copyright = '2017, Oleg Broytman'
+project = 'Portable Python Utilities'
+copyright = u'2017-%d, Oleg Broytman' % date.today().year
 author = 'Oleg Broytman'
 
 # The version info for the project you're documenting, acts as replacement for
 # |version| and |release|, also used in various other places throughout the
 # built documents.
 #
+sys.path.insert(0, os.path.abspath('..'))
+from ppu.__version__ import __version__
 # The short X.Y version.
-version = '0.1'
+version = '.'.join(__version__.split('.')[:2])
 # The full version, including alpha/beta/rc tags.
-release = '0.1.0'
+release = __version__
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
@@ -100,7 +102,7 @@ html_static_path = ['_static']
 # -- Options for HTMLHelp output ------------------------------------------
 
 # Output file base name for HTML help builder.
-htmlhelp_basename = 'remove-old-filesdoc'
+htmlhelp_basename = 'ppudoc'
 
 
 # -- Options for LaTeX output ---------------------------------------------
@@ -127,7 +129,7 @@ latex_elements = {
 # (source start file, target name, title,
 #  author, documentclass [howto, manual, or own class]).
 latex_documents = [
-    (master_doc, 'remove-old-files.tex', 'remove-old-files Documentation',
+    (master_doc, 'ppu.tex', 'Portable Python Utilities Documentation',
      'Oleg Broytman', 'manual'),
 ]
 
@@ -137,7 +139,7 @@ latex_documents = [
 # One entry per manual page. List of tuples
 # (source start file, name, description, authors, manual section).
 man_pages = [
-    (master_doc, 'remove-old-files', 'remove-old-files Documentation',
+    (master_doc, 'ppu', 'Portable Python Utilities Documentation',
      [author], 1)
 ]
 
@@ -148,10 +150,7 @@ man_pages = [
 # (source start file, target name, title, author,
 #  dir menu entry, description, category)
 texinfo_documents = [
-    (master_doc, 'remove-old-files', 'remove-old-files Documentation',
-     author, 'remove-old-files', 'One line description of project.',
+    (master_doc, 'ppu', 'Portable Python Utilities Documentation',
+     author, 'ppu', 'Portable Python Utilities.',
      'Miscellaneous'),
 ]
-
-
-