Skip to content

Commit

Permalink
[develop]: Update doc requirements and add logo (ufs-community#1018)
Browse files Browse the repository at this point in the history
 * Specify a minimum version of Sphinx in requirements.in
 * Update requirements.txt based on requirements.in for a full list of dependencies. This will ensure uniform documentation builds across platforms.
 * Add UFS logo to documentation.
 * Rename docs directory to doc for NCO compliance.
 * Slightly darken blue sidebar background to meet WCAG AA text/background contrast standards for large text.

---------

Co-authored-by: michael.lueken <Michael.Lueken@noaa.gov>
  • Loading branch information
gspetro-NOAA and MichaelLueken authored Feb 21, 2024
1 parent b3f1295 commit 6d3ebfb
Show file tree
Hide file tree
Showing 48 changed files with 121 additions and 41 deletions.
4 changes: 2 additions & 2 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ build:

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/UsersGuide/source/conf.py
configuration: doc/UsersGuide/source/conf.py

# If using Sphinx, optionally build your docs in additional formats such as PDF
# formats:
Expand All @@ -26,7 +26,7 @@ sphinx:
# Optionally declare the Python requirements required to build your docs
python:
install:
- requirements: docs/UsersGuide/requirements.txt
- requirements: doc/UsersGuide/requirements.txt

submodules:
include:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
70 changes: 35 additions & 35 deletions docs/UsersGuide/make.bat → doc/UsersGuide/make.bat
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
@ECHO OFF

pushd %~dp0

REM Command file for Sphinx documentation

if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set SOURCEDIR=source
set BUILDDIR=build

if "%1" == "" goto help

%SPHINXBUILD% >NUL 2>NUL
if errorlevel 9009 (
echo.
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
echo.installed, then set the SPHINXBUILD environment variable to point
echo.to the full path of the 'sphinx-build' executable. Alternatively you
echo.may add the Sphinx directory to PATH.
echo.
echo.If you don't have Sphinx installed, grab it from
echo.http://sphinx-doc.org/
exit /b 1
)

%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
goto end

:help
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%

:end
popd
@ECHO OFF

pushd %~dp0

REM Command file for Sphinx documentation

if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set SOURCEDIR=source
set BUILDDIR=build

if "%1" == "" goto help

%SPHINXBUILD% >NUL 2>NUL
if errorlevel 9009 (
echo.
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
echo.installed, then set the SPHINXBUILD environment variable to point
echo.to the full path of the 'sphinx-build' executable. Alternatively you
echo.may add the Sphinx directory to PATH.
echo.
echo.If you don't have Sphinx installed, grab it from
echo.http://sphinx-doc.org/
exit /b 1
)

%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
goto end

:help
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%

:end
popd
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
sphinxcontrib-bibtex
sphinx>=6.0.0
sphinx_rtd_theme
docutils==0.16
sphinxcontrib-bibtex
76 changes: 76 additions & 0 deletions doc/UsersGuide/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
#
# This file is autogenerated by pip-compile with Python 3.11
# by the following command:
#
# pip-compile requirements.in
#
alabaster==0.7.16
# via sphinx
babel==2.14.0
# via sphinx
certifi==2024.2.2
# via requests
charset-normalizer==3.3.2
# via requests
docutils==0.19
# via
# pybtex-docutils
# sphinx
# sphinx-rtd-theme
# sphinxcontrib-bibtex
idna==3.6
# via requests
imagesize==1.4.1
# via sphinx
jinja2==3.1.3
# via sphinx
latexcodec==2.0.1
# via pybtex
markupsafe==2.1.5
# via jinja2
packaging==23.2
# via sphinx
pybtex==0.24.0
# via
# pybtex-docutils
# sphinxcontrib-bibtex
pybtex-docutils==1.0.3
# via sphinxcontrib-bibtex
pygments==2.17.2
# via sphinx
pyyaml==6.0.1
# via pybtex
requests==2.31.0
# via sphinx
six==1.16.0
# via
# latexcodec
# pybtex
snowballstemmer==2.2.0
# via sphinx
sphinx==7.2.6
# via
# -r requirements.in
# sphinx-rtd-theme
# sphinxcontrib-bibtex
# sphinxcontrib-jquery
sphinx-rtd-theme==2.0.0
# via -r requirements.in
sphinxcontrib-applehelp==1.0.8
# via sphinx
sphinxcontrib-bibtex==2.5.0
# via -r requirements.in
sphinxcontrib-devhelp==1.0.6
# via sphinx
sphinxcontrib-htmlhelp==2.0.5
# via sphinx
sphinxcontrib-jquery==4.1
# via sphinx-rtd-theme
sphinxcontrib-jsmath==1.0.1
# via sphinx
sphinxcontrib-qthelp==1.0.7
# via sphinx
sphinxcontrib-serializinghtml==1.1.10
# via sphinx
urllib3==2.2.0
# via requests
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,8 @@

}


/* Darken navbar blue background for contrast with logo */
.wy-side-nav-search, .wy-nav-top {
background: #2779B0;
}

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
version = 'develop'
# The full version, including alpha/beta/rc tags
release = 'Develop Branch Documentation'
html_logo = "https://github.com/ufs-community/ufs/wiki/images/ufs-epic-logo.png"

numfig = True

Expand Down Expand Up @@ -131,7 +132,7 @@
# html_theme_options = {}
html_theme_options = {
"body_max_width": "none",
'navigation_depth': 6,
"navigation_depth": 6,
}

# Add any paths that contain custom static files (such as style sheets) here,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file removed docs/UsersGuide/source/tables/.DS_Store
Binary file not shown.

0 comments on commit 6d3ebfb

Please sign in to comment.