Skip to content

Commit

Permalink
Support ‘contributors’ for docs. See #100.
Browse files Browse the repository at this point in the history
  • Loading branch information
balhoff committed Apr 29, 2021
1 parent 4278581 commit 2a06c1d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/main/scala/org/monarchinitiative/dosdp/DOSDP.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ final case class DOSDP(
pattern_name: Option[String] = None,
pattern_iri: Option[String] = None,
base_IRI: Option[String] = None,
contributors: Option[List[String]] = None,
description: Option[String] = None,
readable_identifiers: Option[List[String]] = None,
classes: Option[Map[String, String]] = None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ object DocsMarkdown {

## Description

${dosdp.description.getOrElse("_No description_")}
${dosdp.description.getOrElse("*No description*")}

${if (dosdp.contributors.nonEmpty) "## Contributors\n" else ""}
${dosdp.contributors.getOrElse(Nil).map(c => s"- $c").mkString("\n")}

## Variables

Expand Down

0 comments on commit 2a06c1d

Please sign in to comment.