Explorar o código

docs: update copyright date for docs automatically

Marius Vikhammer %!s(int64=4) %!d(string=hai) anos
pai
achega
cdfd59cc0e
Modificáronse 4 ficheiros con 11 adicións e 4 borrados
  1. 1 1
      docs/en/COPYRIGHT.rst
  2. 5 1
      docs/en/conf.py
  3. 5 1
      docs/zh_CN/conf.py
  4. 0 1
      tools/ci/mypy_ignore_list.txt

+ 1 - 1
docs/en/COPYRIGHT.rst

@@ -4,7 +4,7 @@ Copyrights and Licenses
 Software Copyrights
 ===================
 
-All original source code in this repository is Copyright (C) 2015-2021 Espressif Systems. This source code is licensed under the Apache License 2.0 as described in the file LICENSE.
+All original source code in this repository is Copyright (C) 2015-2022 Espressif Systems. This source code is licensed under the Apache License 2.0 as described in the file LICENSE.
 
 Additional third party copyrighted code is included under the following licenses.
 

+ 5 - 1
docs/en/conf.py

@@ -14,9 +14,13 @@ except ImportError:
     sys.path.insert(0, os.path.abspath('../'))
     from conf_common import *  # noqa: F403,F401
 
+import datetime
+
+current_year = datetime.datetime.now().year
+
 # General information about the project.
 project = u'ESP-IDF Programming Guide'
-copyright = u'2016 - 2021, Espressif Systems (Shanghai) Co., Ltd'
+copyright = u'2016 - {}, Espressif Systems (Shanghai) Co., Ltd'.format(current_year)
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.

+ 5 - 1
docs/zh_CN/conf.py

@@ -14,9 +14,13 @@ except ImportError:
     sys.path.insert(0, os.path.abspath('..'))
     from conf_common import *  # noqa: F403,F401
 
+import datetime
+
+current_year = datetime.datetime.now().year
+
 # General information about the project.
 project = u'ESP-IDF 编程指南'
-copyright = u'2016 - 2021 乐鑫信息科技(上海)股份有限公司'
+copyright = u'2016 - {} 乐鑫信息科技(上海)股份有限公司'.format(current_year)
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.

+ 0 - 1
tools/ci/mypy_ignore_list.txt

@@ -48,7 +48,6 @@ docs/sanitize_version.py
 docs/test/en/conf.py
 docs/test/test_docs.py
 docs/test/test_sphinx_idf_extensions.py
-docs/zh_CN/conf.py
 examples/bluetooth/nimble/blecent/blecent_test.py
 examples/bluetooth/nimble/blehr/blehr_test.py
 examples/bluetooth/nimble/bleprph/bleprph_test.py