From a298e955cb327199b142d3f3de102ee24390d611 Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Thu, 3 Mar 2022 19:43:42 -0500 Subject: [PATCH] add the deepmodeling banner to doc --- doc/conf.py | 6 ++++-- setup.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index 3803691044..5dc12be1f7 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -15,6 +15,7 @@ import sys import recommonmark from recommonmark.transform import AutoStructify +from datetime import date def mkindex(dirname): dirname = dirname + "/" @@ -106,8 +107,8 @@ def classify_index_TS(): # -- Project information ----------------------------------------------------- project = 'DeePMD-kit' -copyright = '2017-2021, Deep Modeling' -author = 'Deep Modeling' +copyright = '2017-%d, DeepModeling' % date.today().year +author = 'DeepModeling' def run_doxygen(folder): """Run the doxygen make command in the designated folder""" @@ -167,6 +168,7 @@ def setup(app): #classify_index_TS() extensions = [ + "deepmodeling_sphinx", "sphinx_rtd_theme", 'myst_parser', 'sphinx.ext.autosummary', diff --git a/setup.py b/setup.py index f843395ed3..2623f0f149 100644 --- a/setup.py +++ b/setup.py @@ -127,7 +127,7 @@ cmake_minimum_required_version="3.0", extras_require={ "test": ["dpdata>=0.1.9", "ase", "pytest", "pytest-cov", "pytest-sugar"], - "docs": ["sphinx>=3.1.1", "recommonmark", "sphinx_rtd_theme>=1.0.0rc1", "sphinx_markdown_tables", "myst-parser", "breathe", "exhale", "numpydoc", "ase"], + "docs": ["sphinx>=3.1.1", "recommonmark", "sphinx_rtd_theme>=1.0.0rc1", "sphinx_markdown_tables", "myst-parser", "breathe", "exhale", "numpydoc", "ase", "deepmodeling-sphinx"], **extras_require, }, entry_points={"console_scripts": ["dp = deepmd.entrypoints.main:main"]},