From cb3d1ff73d379d26940140bb5f0d54a8cbca75b6 Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Sat, 20 Aug 2022 02:20:01 -0400 Subject: [PATCH] docs: add numpydoc; set proper info --- doc/conf.py | 8 +++++--- doc/requirements.txt | 1 + 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index a6ebe43ed..48b4b53d0 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -13,6 +13,7 @@ import os import sys import subprocess +from datetime import date # import sys import recommonmark from recommonmark.transform import AutoStructify @@ -20,9 +21,9 @@ # -- Project information ----------------------------------------------------- -project = 'DPGEN' -copyright = '2020, Deep Potential' -author = 'Deep Potential' +project = 'DP-GEN' +copyright = '2020-%d, DeepModeling' % date.today().year +author = 'DeepModeling' # -- General configuration --------------------------------------------------- @@ -46,6 +47,7 @@ 'sphinx.ext.autosummary', 'sphinx.ext.viewcode', 'sphinxarg.ext', + 'numpydoc', ] diff --git a/doc/requirements.txt b/doc/requirements.txt index fc51a9264..88ef36e9f 100644 --- a/doc/requirements.txt +++ b/doc/requirements.txt @@ -6,4 +6,5 @@ sphinx-argparse myst-parser deepmodeling_sphinx dargs>=0.3.1 +numpydoc .