Skip to content

Commit

Permalink
test out create markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
BSnelling committed Jun 7, 2024
1 parent 670ff98 commit 1b95b21
Show file tree
Hide file tree
Showing 9 changed files with 7,268 additions and 34 deletions.
1,056 changes: 1,056 additions & 0 deletions docs/GWDM/2.0.form.json

Large diffs are not rendered by default.

1,118 changes: 1,118 additions & 0 deletions docs/GWDM/2.0.md

Large diffs are not rendered by default.

1,411 changes: 1,411 additions & 0 deletions docs/GWDM/2.0.structure.json

Large diffs are not rendered by default.

1,234 changes: 1,234 additions & 0 deletions docs/HDRUK/3.0.0.form.json

Large diffs are not rendered by default.

1,074 changes: 1,074 additions & 0 deletions docs/HDRUK/3.0.0.md

Large diffs are not rendered by default.

1,352 changes: 1,352 additions & 0 deletions docs/HDRUK/3.0.0.structure.json

Large diffs are not rendered by default.

46 changes: 15 additions & 31 deletions hdr_schemata/models/HDRUK/v3_0_0/EnrichmentAndLinkage.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,37 +13,21 @@ class EnrichmentAndLinkage(BaseModel):
class Config:
extra = "forbid"

derivedFrom: Optional[
Union[
Optional[CommaSeparatedValues],
List[Optional[AbstractText]],
List[DatasetDescriptor]
]
] = Field(None, **an.derivedFrom.__dict__)

isPartOf: Optional[
Union[
Optional[CommaSeparatedValues],
List[Union[Url, OneHundredFiftyCharacters]],
List[DatasetDescriptor]
]
] = Field(None, **an.isPartOf.__dict__)

linkableDatasets: Optional[
Union[
Optional[CommaSeparatedValues],
List[Union[Optional[Url], OneHundredFiftyCharacters]],
List[DatasetDescriptor]
]
] = Field(None, **an.linkableDatasets.__dict__)

similarToDatasets: Optional[
Union[
Optional[CommaSeparatedValues],
List[Union[Optional[Url], OneHundredFiftyCharacters]],
List[DatasetDescriptor]
]
] = Field(None, **an.linkableDatasets.__dict__)
derivedFrom: Optional[List[DatasetDescriptor]] = Field(
None, **an.derivedFrom.__dict__
)

isPartOf: Optional[List[DatasetDescriptor]] = Field(
None, **an.isPartOf.__dict__
)

linkableDatasets: Optional[List[DatasetDescriptor]] = Field(
None, **an.linkableDatasets.__dict__
)

similarToDatasets: Optional[List[DatasetDescriptor]] = Field(
None, **an.similarToDatasets.__dict__
)

investigations: Optional[List[Url]] = Field(None, **an.investigations.__dict__)

Expand Down
2 changes: 1 addition & 1 deletion hdr_schemata/models/HDRUK/v3_0_0/annotations/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ summary:

name:
description: The organisation responsible for running or supporting the data access request process, as well as publishing and maintaining the metadata.
title: Name of Data Provider
title: Name of data provider

logo:
description: Please provide a logo associated with the Gateway Organisation using a valid URL. The following formats will be accepted .jpg, .png or .svg.
Expand Down
9 changes: 7 additions & 2 deletions hdr_schemata/utils/create_markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,22 +219,27 @@ def remove_types(data):

from hdr_schemata.models.HDRUK import Hdruk212
from hdr_schemata.models.HDRUK import Hdruk213
from hdr_schemata.models.HDRUK import Hdruk220
from hdr_schemata.models.HDRUK import Hdruk220
from hdr_schemata.models.HDRUK import Hdruk221
from hdr_schemata.models.HDRUK import Hdruk300
from hdr_schemata.models.GWDM.v1_1 import Gwdm10
from hdr_schemata.models.GWDM.v1_1 import Gwdm11
from hdr_schemata.models.GWDM.v1_2 import Gwdm12
from hdr_schemata.models.GWDM.v2_0 import Gwdm20


create_markdown(Hdruk220, "./docs/HDRUK/", "2.2.0")
create_markdown(Hdruk221, "./docs/HDRUK/", "2.2.1")
create_markdown(Hdruk212, "./docs/HDRUK/", "2.1.2")
create_markdown(Hdruk213, "./docs/HDRUK/", "2.1.3")
create_markdown(Hdruk300, "./docs/HDRUK/", "3.0.0")

from hdr_schemata.models.GWDM.v1_1 import Gwdm10
from hdr_schemata.models.GWDM.v1_1 import Gwdm11
from hdr_schemata.models.GWDM.v1_2 import Gwdm12
from hdr_schemata.models.GWDM.v2_0 import Gwdm20

create_markdown(Gwdm10, "./docs/GWDM/", "1.0")
create_markdown(Gwdm11, "./docs/GWDM/", "1.1")
create_markdown(Gwdm12, "./docs/GWDM/", "1.2")
create_markdown(Gwdm20, "./docs/GWDM/", "2.0")

0 comments on commit 1b95b21

Please sign in to comment.