Unverified Commit da685687 authored by Kristin Berry's avatar Kristin Berry Committed by GitHub
Browse files

Adds Sphinx Documentation (#332)



* Add doxygen, breathe, sphinx documentation first steps

* Add draft readthedocs.yaml file

* Update to use exhale

* try forcing output

* Updated conf.py:

* Added conf.py new location

* Updated to fix typo

* Updated to re-add import

* update RTD.yaml

* Update to use correct doxygen command

* add docs env

* Test

* Remove exhale

* Remove not-working mod from all rst files

Co-authored-by: default avatarKristin Berry <kberry@gyro.wr.usgs.gov>
parent 0440ae47
Loading
Loading
Loading
Loading

.readthedocs.yaml

0 → 100644
+18 −0
Original line number Diff line number Diff line
# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

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

# Optionally build your docs in additional formats such as PDF
formats:
   - pdf

conda:
  environment: doc_environment.yml

doc_environment.yml

0 → 100644
+11 −0
Original line number Diff line number Diff line
name: usgscsm
channels:
  - conda-forge
  - default

dependencies:
  - cmake>=3.12
  - ale
  - csm
  - nlohmann_json
  - breathe

docs/Doxyfile

0 → 100644
+2618 −0

File added.

Preview size limit exceeded, changes collapsed.

docs/Makefile

0 → 100644
+20 −0
Original line number Diff line number Diff line
# Minimal makefile for Sphinx documentation
#

# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS    ?=
SPHINXBUILD   ?= sphinx-build
SOURCEDIR     = source
BUILDDIR      = build

# Put it first so that "make" without argument is like "make help".
help:
	@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option.  $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
	@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

docs/make.bat

0 → 100644
+35 −0
Original line number Diff line number Diff line
@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% %O%
goto end

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

:end
popd
Loading