Skip to content

Commit

Permalink
docs: touch up dfn spec, include in rtd dev docs (#1948)
Browse files Browse the repository at this point in the history
Include the DFN specification markdown document in the RTD developer docs section. Includes some minor touchup to the document: expand intro, fix headers for table of contents rendering, turn the attribute list into a formatted table, add some explication.
  • Loading branch information
wpbonelli authored Nov 12, 2024
1 parent ca387f4 commit 67e8128
Show file tree
Hide file tree
Showing 4 changed files with 246 additions and 176 deletions.
10 changes: 8 additions & 2 deletions .build_rtd_docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
dstdir = "_dev"
fpth = "DEVELOPER.md"
src = os.path.join("..", fpth)
dst = os.path.join(dstdir, fpth)
dst = os.path.join(dstdir, fpth.lower())
# clean up an existing _mf6run directory
if os.path.isdir(dstdir):
shutil.rmtree(dstdir)
Expand All @@ -72,7 +72,7 @@
# -- copy contributor docs
fpth = "CONTRIBUTING.md"
src = os.path.join("..", fpth)
dst = os.path.join(dstdir, fpth)
dst = os.path.join(dstdir, fpth.lower())
shutil.copy(src, dst)

# -- copy style guide
Expand All @@ -81,6 +81,12 @@
dst = os.path.join(dstdir, fpth)
shutil.copy(src, dst)

# -- copy DFN spec
fpth = "readme.md"
src = os.path.join("..", "doc", "mf6io", "mf6ivar", fpth)
dst = os.path.join(dstdir, "dfn.md")
shutil.copy(src, dst)

# -- build the deprecations table --------------------------------------------
print("Build the deprecations markdown table")
pth = os.path.join("..", "doc", "mf6io", "mf6ivar")
Expand Down
5 changes: 3 additions & 2 deletions .build_rtd_docs/dev.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ This section includes developer instructions and conventions.
:maxdepth: 1
:glob:

_dev/CONTRIBUTING.md
_dev/DEVELOPER.md
_dev/contributing.md
_dev/developer.md
_dev/styleguide.md
_dev/dfn.md
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ CMakeFiles/
.build_rtd_docs/_mf6io
.build_rtd_docs/_mf6src
.build_rtd_docs/_mf6run
.build_rtd_docs/_dev
latex/
html/
xml/
Expand Down
Loading

0 comments on commit 67e8128

Please sign in to comment.