Skip to content

Commit

Permalink
Delete html, create groovy persona
Browse files Browse the repository at this point in the history
  • Loading branch information
youphendriks committed Oct 2, 2024
1 parent b3a47bc commit e76be13
Show file tree
Hide file tree
Showing 12 changed files with 257 additions and 50 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/create-markdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ jobs:
- name: Generate catalog
run: cd docs ; groovy createCatalog.groovy > catalog.md ; groovy createIndex.groovy > index.md

- name: Generate persona pages
run: cd docs; groovy createPersona1.groovy > persona1.md ; groovy createPersona2.groovy > persona2.md ; groovy createPersona3.groovy > persona3.md

- name: Generate service pages
run: cd docs/service ; groovy createMarkdown.groovy *.json

Expand All @@ -39,6 +42,9 @@ jobs:
git add docs/sitemap.xml
git add docs/index.md
git add docs/catalog.md
git add docs/persona1.md
git add docs/persona2.md
git add docs/persona3.md
git add docs/service/*.md
if git diff --exit-code --staged; then
echo "No changes"
Expand Down
59 changes: 59 additions & 0 deletions docs/createPersona1.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
// License: MIT

// groovy createMarkdown.groovy *.json

import groovy.json.JsonSlurper
import groovy.io.FileType

println """
![https://vhp4safety.nl](VHP-LOGO-100mm-RGB.png "The VHP4Safety Project is a Dutch NWO-funded research collaboration")
# VHP4Safety Cloud catalog - Persona 1
<!-- THIS FILE IS AUTOGENERATED. DO NOT EDIT. -->
Below you find an overview of services available in the context of the VHP4Safety Platform.
[Additional services have been suggested](https://github.com/VHP4Safety/cloud/labels/service)
and users can [request additional services](https://github.com/VHP4Safety/cloud/issues/new/choose).
"""

def list = []

def dir = new File("service")
dir.eachFileRecurse (FileType.FILES) { file ->
if (file.name.endsWith(".json") && file.name != "template.json") {
list << file
}
}

list = list.sort()

/* list.each { file ->
fileContents = file.text
def data = new JsonSlurper().parseText(fileContents)
print "[${data.service}](#${data.id}) "
}
println "\n" */

for (item in list) {
fileContents = item.text
def data = new JsonSlurper().parseText(fileContents)
if (data.VHPpersona)
if (data.VHPpersona.persona1 == "true") {
logo = ""
if (data.screenshot) logo = "![${data.service} logo](https://raw.githubusercontent.com/VHP4Safety/cloud/main/docs/service/${data.screenshot} \"Click on the image to go to the service\")\n"
println """-------------------------------------------------------------------------------
${logo}
## ${data.service}
${data.description} [[more info](service/${data.id}.md)]
"""
}
}

println """
### Funding
VHP4Safety – the Virtual Human Platform for safety assessment project [NWA 1292.19.272](https://www.nwo.nl/projecten/nwa129219272) is part of the NWA research program ‘Research along Routes by Consortia (ORC)’, which is funded by the Netherlands Organization for Scientific Research
(NWO). The project started on June 1, 2021 with a budget of over 10 million Euros and will last for the duration of 5 years."""
59 changes: 59 additions & 0 deletions docs/createPersona2.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
// License: MIT

// groovy createMarkdown.groovy *.json

import groovy.json.JsonSlurper
import groovy.io.FileType

println """
![https://vhp4safety.nl](VHP-LOGO-100mm-RGB.png "The VHP4Safety Project is a Dutch NWO-funded research collaboration")
# VHP4Safety Cloud catalog - Persona 2
<!-- THIS FILE IS AUTOGENERATED. DO NOT EDIT. -->
Below you find an overview of services available in the context of the VHP4Safety Platform.
[Additional services have been suggested](https://github.com/VHP4Safety/cloud/labels/service)
and users can [request additional services](https://github.com/VHP4Safety/cloud/issues/new/choose).
"""

def list = []

def dir = new File("service")
dir.eachFileRecurse (FileType.FILES) { file ->
if (file.name.endsWith(".json") && file.name != "template.json") {
list << file
}
}

list = list.sort()

/* list.each { file ->
fileContents = file.text
def data = new JsonSlurper().parseText(fileContents)
print "[${data.service}](#${data.id}) "
}
println "\n" */

for (item in list) {
fileContents = item.text
def data = new JsonSlurper().parseText(fileContents)
if (data.VHPpersona)
if (data.VHPpersona.persona2 == "true") {
logo = ""
if (data.screenshot) logo = "![${data.service} logo](https://raw.githubusercontent.com/VHP4Safety/cloud/main/docs/service/${data.screenshot} \"Click on the image to go to the service\")\n"
println """-------------------------------------------------------------------------------
${logo}
## ${data.service}
${data.description} [[more info](service/${data.id}.md)]
"""
}
}

println """
### Funding
VHP4Safety – the Virtual Human Platform for safety assessment project [NWA 1292.19.272](https://www.nwo.nl/projecten/nwa129219272) is part of the NWA research program ‘Research along Routes by Consortia (ORC)’, which is funded by the Netherlands Organization for Scientific Research
(NWO). The project started on June 1, 2021 with a budget of over 10 million Euros and will last for the duration of 5 years."""
59 changes: 59 additions & 0 deletions docs/createPersona3.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
// License: MIT

// groovy createMarkdown.groovy *.json

import groovy.json.JsonSlurper
import groovy.io.FileType

println """
![https://vhp4safety.nl](VHP-LOGO-100mm-RGB.png "The VHP4Safety Project is a Dutch NWO-funded research collaboration")
# VHP4Safety Cloud catalog - Persona 3
<!-- THIS FILE IS AUTOGENERATED. DO NOT EDIT. -->
Below you find an overview of services available in the context of the VHP4Safety Platform.
[Additional services have been suggested](https://github.com/VHP4Safety/cloud/labels/service)
and users can [request additional services](https://github.com/VHP4Safety/cloud/issues/new/choose).
"""

def list = []

def dir = new File("service")
dir.eachFileRecurse (FileType.FILES) { file ->
if (file.name.endsWith(".json") && file.name != "template.json") {
list << file
}
}

list = list.sort()

/* list.each { file ->
fileContents = file.text
def data = new JsonSlurper().parseText(fileContents)
print "[${data.service}](#${data.id}) "
}
println "\n" */

for (item in list) {
fileContents = item.text
def data = new JsonSlurper().parseText(fileContents)
if (data.VHPpersona)
if (data.VHPpersona.persona3 == "true") {
logo = ""
if (data.screenshot) logo = "![${data.service} logo](https://raw.githubusercontent.com/VHP4Safety/cloud/main/docs/service/${data.screenshot} \"Click on the image to go to the service\")\n"
println """-------------------------------------------------------------------------------
${logo}
## ${data.service}
${data.description} [[more info](service/${data.id}.md)]
"""
}
}

println """
### Funding
VHP4Safety – the Virtual Human Platform for safety assessment project [NWA 1292.19.272](https://www.nwo.nl/projecten/nwa129219272) is part of the NWA research program ‘Research along Routes by Consortia (ORC)’, which is funded by the Netherlands Organization for Scientific Research
(NWO). The project started on June 1, 2021 with a budget of over 10 million Euros and will last for the duration of 5 years."""
37 changes: 0 additions & 37 deletions docs/index.html

This file was deleted.

5 changes: 0 additions & 5 deletions docs/js/filter.js

This file was deleted.

8 changes: 0 additions & 8 deletions docs/js/toggletext.js

This file was deleted.

32 changes: 32 additions & 0 deletions docs/persona1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@

![https://vhp4safety.nl](VHP-LOGO-100mm-RGB.png "The VHP4Safety Project is a Dutch NWO-funded research collaboration")

# VHP4Safety Cloud catalog

<!-- THIS FILE IS AUTOGENERATED. DO NOT EDIT. -->

Below you find an overview of services available in the context of the VHP4Safety Platform.
[Additional services have been suggested](https://github.com/VHP4Safety/cloud/labels/service)
and users can [request additional services](https://github.com/VHP4Safety/cloud/issues/new/choose).

-------------------------------------------------------------------------------
![AOP-Wiki Snorql UI logo](https://raw.githubusercontent.com/VHP4Safety/cloud/main/docs/service/aopwiki.png "Click on the image to go to the service")

## AOP-Wiki Snorql UI

Graphical interface to an AOP-Wiki SPARQL endpoint. [[more info](service/aopwiki.md)]


-------------------------------------------------------------------------------
![BridgeDb logo](https://raw.githubusercontent.com/VHP4Safety/cloud/main/docs/service/bridgedb.png "Click on the image to go to the service")

## BridgeDb

A framework to map identifiers between various biological databases and related sources. [[more info](service/bridgedb.md)]



### Funding

VHP4Safety – the Virtual Human Platform for safety assessment project [NWA 1292.19.272](https://www.nwo.nl/projecten/nwa129219272) is part of the NWA research program ‘Research along Routes by Consortia (ORC)’, which is funded by the Netherlands Organization for Scientific Research
(NWO). The project started on June 1, 2021 with a budget of over 10 million Euros and will last for the duration of 5 years.
16 changes: 16 additions & 0 deletions docs/persona2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

![https://vhp4safety.nl](VHP-LOGO-100mm-RGB.png "The VHP4Safety Project is a Dutch NWO-funded research collaboration")

# VHP4Safety Cloud catalog - Persona 2

<!-- THIS FILE IS AUTOGENERATED. DO NOT EDIT. -->

Below you find an overview of services available in the context of the VHP4Safety Platform.
[Additional services have been suggested](https://github.com/VHP4Safety/cloud/labels/service)
and users can [request additional services](https://github.com/VHP4Safety/cloud/issues/new/choose).


### Funding

VHP4Safety – the Virtual Human Platform for safety assessment project [NWA 1292.19.272](https://www.nwo.nl/projecten/nwa129219272) is part of the NWA research program ‘Research along Routes by Consortia (ORC)’, which is funded by the Netherlands Organization for Scientific Research
(NWO). The project started on June 1, 2021 with a budget of over 10 million Euros and will last for the duration of 5 years.
16 changes: 16 additions & 0 deletions docs/persona3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

![https://vhp4safety.nl](VHP-LOGO-100mm-RGB.png "The VHP4Safety Project is a Dutch NWO-funded research collaboration")

# VHP4Safety Cloud catalog - Persona 3

<!-- THIS FILE IS AUTOGENERATED. DO NOT EDIT. -->

Below you find an overview of services available in the context of the VHP4Safety Platform.
[Additional services have been suggested](https://github.com/VHP4Safety/cloud/labels/service)
and users can [request additional services](https://github.com/VHP4Safety/cloud/issues/new/choose).


### Funding

VHP4Safety – the Virtual Human Platform for safety assessment project [NWA 1292.19.272](https://www.nwo.nl/projecten/nwa129219272) is part of the NWA research program ‘Research along Routes by Consortia (ORC)’, which is funded by the Netherlands Organization for Scientific Research
(NWO). The project started on June 1, 2021 with a budget of over 10 million Euros and will last for the duration of 5 years.
5 changes: 5 additions & 0 deletions docs/service/aopwiki.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,10 @@
},
"ELIXIR": {
"biotools": "aop-wiki_rdf"
},
"VHPpersona": {
"persona1": "true",
"persona-2": "",
"persona-3": ""
}
}
5 changes: 5 additions & 0 deletions docs/service/bridgedb.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,10 @@
},
"Other": {
"rsd": "bridgedb-java"
},
"VHPpersona": {
"persona1": "true",
"persona-2": "",
"persona-3": ""
}
}

0 comments on commit e76be13

Please sign in to comment.