From d6e5794ca9490f1927e459fccc8c0177f4202309 Mon Sep 17 00:00:00 2001 From: Mayank Chetan Date: Mon, 29 Sep 2025 15:44:48 -0600 Subject: [PATCH] fix rtd copyright year, add link to rtd when using ************************************************************************************************** OpenFAST Copyright (C) 2025 National Renewable Energy Laboratory Copyright (C) 2025 Envision Energy USA LTD This program is licensed under Apache License Version 2.0 and comes with ABSOLUTELY NO WARRANTY. See the "LICENSE" file distributed with this software for details. ************************************************************************************************** OpenFAST-v4.1.2 Compile Info: - Compiler: GCC version 14.3.0 - Architecture: 64 bit - Precision: single - OpenMP: No - Date: Aug 7 2025 - Time: 14:27:18 Execution Info: - Date: 09/29/2025 - Time: 15:44:47-0600 Syntax is: OpenFAST [-h] where: -h generates this help message. is the name of the required primary input file. Note: values enclosed in square brackets [] are optional. Do not enter the brackets. OpenFAST terminated normally. --- docs/conf.py | 19 ++++++++++--------- modules/nwtc-library/src/NWTC_IO.f90 | 2 ++ 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index c63f31292..06a4c7e2f 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -20,6 +20,7 @@ import sys import subprocess import re +import datetime #sys.path.append(os.path.abspath('_extensions/')) @@ -127,18 +128,18 @@ def runDoxygen(sourcfile, doxyfileIn, doxyfileOut): master_doc = 'index' # General information about the project. -project = u'OpenFAST' -copyright = u'2023, National Renewable Energy Laboratory' -author = u'OpenFAST Team' +project = f'OpenFAST' +copyright = f'{datetime.date.today().year}, National Renewable Energy Laboratory' +author = f'OpenFAST Team' # 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. # # The short X.Y version. -version = u'4.1' +version = f'4.1' # The full version, including alpha/beta/rc tags. -release = u'v4.1.2' +release = f'v4.1.2' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. @@ -226,8 +227,8 @@ def runDoxygen(sourcfile, doxyfileIn, doxyfileOut): ( master_doc, 'Openfast.tex', - u'OpenFAST Documentation', - u'National Renewable Energy Laboratory', + f'OpenFAST Documentation', + f'National Renewable Energy Laboratory', 'manual' ), ] @@ -241,7 +242,7 @@ def runDoxygen(sourcfile, doxyfileIn, doxyfileOut): ( master_doc, 'openfast', - u'OpenFAST Documentation', + f'OpenFAST Documentation', [author], 1 ) @@ -257,7 +258,7 @@ def runDoxygen(sourcfile, doxyfileIn, doxyfileOut): ( master_doc, 'OpenFAST', - u'OpenFAST Documentation', + f'OpenFAST Documentation', author, 'OpenFAST', 'One line description of project.', diff --git a/modules/nwtc-library/src/NWTC_IO.f90 b/modules/nwtc-library/src/NWTC_IO.f90 index 67bbe4213..6f5964d27 100644 --- a/modules/nwtc-library/src/NWTC_IO.f90 +++ b/modules/nwtc-library/src/NWTC_IO.f90 @@ -2354,6 +2354,8 @@ SUBROUTINE NWTC_DisplaySyntax( DefaultInputFile, ThisProgName ) //TRIM( DefaultInputFile )//'".' ) END IF CALL WrScr ( NewLine//' Note: values enclosed in square brackets [] are optional. Do not enter the brackets.') + CALL WrScr ( NewLine//' For more information and documentation, visit:' ) + CALL WrScr ( ' https://openfast.readthedocs.io/' ) CALL WrScr ( ' ') END SUBROUTINE NWTC_DisplaySyntax