Make the copyright year dynamic for the documentation

This commit is contained in:
Luflosi
2019-05-28 14:54:36 +02:00
parent abf9c4117d
commit 6f2bb31068

View File

@@ -11,6 +11,7 @@ import os
import re import re
import subprocess import subprocess
import sys import sys
import time
from functools import partial from functools import partial
from docutils import nodes from docutils import nodes
@@ -32,7 +33,7 @@ str_version = importlib.import_module('kitty.constants').str_version
# -- Project information ----------------------------------------------------- # -- Project information -----------------------------------------------------
project = 'kitty' project = 'kitty'
copyright = '2018, Kovid Goyal' copyright = time.strftime('%Y, Kovid Goyal')
author = 'Kovid Goyal' author = 'Kovid Goyal'
building_man_pages = 'man' in sys.argv building_man_pages = 'man' in sys.argv