Skip to content

Commit

Permalink
Merge pull request #104 from CDCgov/issue101
Browse files Browse the repository at this point in the history
Issue 101: Add documention templates
  • Loading branch information
seabbs authored Mar 1, 2024
2 parents a8d96a0 + e37c4e1 commit 00c7f43
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 8 deletions.
9 changes: 1 addition & 8 deletions EpiAware/src/EpiAware.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,6 @@ An epidemiological model in `EpiAware` consists of composable structs with core
of infection and the time of observation as a convolution, followed by a negative
binomial distributed sample.
## Imports
$(IMPORTS)
## Exports
$(EXPORTS)
"""
module EpiAware

Expand All @@ -57,6 +49,7 @@ export make_epi_aware
# Exported utilities
export create_discrete_pmf, spread_draws, scan

include("docstrings.jl")
include("abstract-types.jl")
include("epi-models.jl")
include("utilities.jl")
Expand Down
34 changes: 34 additions & 0 deletions EpiAware/src/docstrings.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
@template (FUNCTIONS, METHODS, MACROS) = """
$(FUNCTIONNAME)
$(DOCSTRING)
---
# Signatures
$(TYPEDSIGNATURES)
---
## Methods
$(METHODLIST)
---
## Fields
$(TYPEDFIELDS)
"""

@template (TYPES) = """
$(TYPEDEF)
$(DOCSTRING)
---
## Fields
$(TYPEDFIELDS)
"""

@template MODULES = """
$(DOCSTRING)
---
## Exports
$(EXPORTS)
---
## Imports
$(IMPORTS)
"""

0 comments on commit 00c7f43

Please sign in to comment.