Skip to content

Commit

Permalink
Merge pull request #1047 from ScilifelabDataCentre/develop
Browse files Browse the repository at this point in the history
Send fixes live
  • Loading branch information
LianeHughes authored Oct 17, 2023
2 parents a97e894 + 7d8f88f commit d8e6cbe
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/htmltest-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
CheckDoctype: false
CheckLinks: false
CheckMeta: false
CheckGeneric: false
CheckInternal: false
CheckInternalHash: false
CheckMailto: false
CheckTel: false
CheckMetaRefresh: false
IgnoreInternalEmptyHash: true
IgnoreEmptyHref: true
IgnoreAltMissing: true
IgnoreAltEmpty: true
IgnoreDirectoryMissingTrailingSlash: true
IgnoreURLs:
- "https://twitter.com/scilifelab_DC"
- "https://linkedin.com/company/scilifelab-data-centre"
- "^https://twitter.com/intent/tweet.*$"
- "^https://www.linkedin.com/sharing/share-offsite.*$"
- "^https://www.facebook.com/sharer/sharer.php.*$"
- "^https://doi.org/.*$"
IgnoreDirs:
- "publications"
- "datasets"
39 changes: 39 additions & 0 deletions .github/workflows/link-checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Run htmltest to check for broken external links
# Scheduled for every first wednesday of the month

name: Check broken links (htmltest)
on:
workflow_dispatch:
branches:
- develop
schedule:
- cron: '25 8 1-7 * 3'

jobs:
htmltest:
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3

- name: Set up Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: "latest"

- name: Run Hugo
run: hugo -d dist

- name: Test HTML
continue-on-error: true
uses: wjdp/htmltest-action@master
with:
path: dist
config: .github/htmltest-config.yml

- name: Archive htmltest results
uses: actions/upload-artifact@v3
with:
name: htmltest-report
path: tmp/.htmltest/htmltest.log
retention-days: 7
2 changes: 1 addition & 1 deletion layouts/contact/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{{ .Content }}

<form class="needs-validation" novalidate method="POST" action="https://forms.dc.scilifelab.se/api/v1/form/lUoBU4hTkbqkNYcs/incoming" accept-charset="utf-8">
<form class="needs-validation" novalidate method="POST" action="https://forms.dc.scilifelab.se/api/v1/form/SgfsDTe1U70Yzt9I/incoming" accept-charset="utf-8">
<h2>{{ if eq $.Site.Language.LanguageName "Svenska" }}Kontakta oss{{ else }}Contact and suggestions form{{ end }}</h2>
<div class="mb-3 mt-3">{{ if eq $.Site.Language.LanguageName "Svenska" }}Vänligen fyll i detta formulär för att ge förslag till portalen eller för frågor rörande datadelning eller datahantering. Vänligen fyll i dina kontaktuppgifter om du vill att vi besvarar ditt ärende. Teamet som arbetar med den <i>Svenska Pathogens Portalen</i> kommer att skicka ett svar inom ett par dagar. {{ else }}Please fill out this form to make suggestions for the <i>Swedish Pathogens Portal</i> or to ask a data management or data sharing question. Please provide your contact information if you would like to receive a response. The data portal team will send you a response within the next couple of days.{{ end }}</div>
<div class="form-group row">
Expand Down

0 comments on commit d8e6cbe

Please sign in to comment.