Skip to content

Commit

Permalink
style(Documentation): align with JuliaFormatter styles
Browse files Browse the repository at this point in the history
  • Loading branch information
bauglir committed Jul 29, 2020
1 parent dac1a19 commit f2835ea
Showing 1 changed file with 17 additions and 20 deletions.
37 changes: 17 additions & 20 deletions src/kroki/documentation.jl
Expand Up @@ -8,31 +8,28 @@ using DocStringExtensions

export @setupDocstringMarkup

@template (FUNCTIONS, MACROS, METHODS) =
"""
$(TYPEDSIGNATURES)
$(DOCSTRING)
"""
@template (FUNCTIONS, MACROS, METHODS) = """
$(TYPEDSIGNATURES)
$(DOCSTRING)
"""

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

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

"""
Helper macro ensuring consistent docstring markup across modules through
Expand Down

0 comments on commit f2835ea

Please sign in to comment.