Skip to content

update readmes

update readmes #285

Workflow file for this run

name: Publish to GitHub Pages
on:
push:
branches:
- main
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22.12.0'
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: '9'
- name: Create redirect page for fhirpath-editor
run: |
mkdir -p fhirpath-editor
cat > fhirpath-editor/index.html << 'EOF'
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>FHIRPath Editor - Moved</title>
<meta http-equiv="refresh" content="3;url=https://healthsamurai.github.io/fhirpath-editor/">
<script>
// Immediate redirect
window.location.href = "https://healthsamurai.github.io/fhirpath-editor/";
</script>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
max-width: 600px;
margin: 100px auto;
padding: 20px;
text-align: center;
background-color: #f8f9fa;
}
.container {
background: white;
padding: 40px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
h1 { color: #2c5aa0; margin-bottom: 20px; }
p { margin: 15px 0; line-height: 1.6; }
a { color: #2c5aa0; text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; }
.countdown { font-weight: bold; color: #d73a49; }
</style>
</head>
<body>
<div class="container">
<h1>🚀 FHIRPath Editor has moved!</h1>
<p>This project is now available at its new location.</p>
<p>You will be automatically redirected in <span class="countdown">3</span> seconds.</p>
<p>If you are not redirected automatically, <a href="https://healthsamurai.github.io/fhirpath-editor/">click here to go to the new location</a>.</p>
<p><small>New URL: <a href="https://healthsamurai.github.io/fhirpath-editor/">https://healthsamurai.github.io/fhirpath-editor/</a></small></p>
</div>
<script>
// Countdown timer
let countdown = 3;
const countdownElement = document.querySelector('.countdown');
const timer = setInterval(() => {
countdown--;
if (countdownElement) countdownElement.textContent = countdown;
if (countdown <= 0) {
clearInterval(timer);
window.location.href = "https://healthsamurai.github.io/fhirpath-editor/";
}
}, 1000);
</script>
</body>
</html>
EOF
- name: Install renderer dependencies
run: |
pnpm install --frozen-lockfile --dir aidbox-forms/aidbox-forms-builder-custom-renderer/smart-forms-renderer
pnpm install --frozen-lockfile --dir aidbox-forms/aidbox-forms-builder-custom-renderer/lhc-forms-renderer
pnpm install --frozen-lockfile --dir aidbox-forms/aidbox-forms-builder-custom-renderer/beda-renderer
pnpm install --frozen-lockfile --dir aidbox-forms/aidbox-forms-builder-custom-renderer/refero-renderer
- name: Install Playwright browsers
run: |
pnpm --dir aidbox-forms/aidbox-forms-builder-custom-renderer/smart-forms-renderer exec playwright install --with-deps
- name: Run SWM protocol tests
run: |
pnpm --dir aidbox-forms/aidbox-forms-builder-custom-renderer/smart-forms-renderer exec playwright test --reporter=line
pnpm --dir aidbox-forms/aidbox-forms-builder-custom-renderer/lhc-forms-renderer exec playwright test --reporter=line
pnpm --dir aidbox-forms/aidbox-forms-builder-custom-renderer/beda-renderer exec playwright test --reporter=line
pnpm --dir aidbox-forms/aidbox-forms-builder-custom-renderer/refero-renderer exec playwright test --reporter=line
- name: Build Aidbox Forms renderers
run: |
pnpm --dir aidbox-forms/aidbox-forms-builder-custom-renderer/smart-forms-renderer build
pnpm --dir aidbox-forms/aidbox-forms-builder-custom-renderer/lhc-forms-renderer build
pnpm --dir aidbox-forms/aidbox-forms-builder-custom-renderer/beda-renderer build
pnpm --dir aidbox-forms/aidbox-forms-builder-custom-renderer/refero-renderer build
mkdir -p renderers/smart-forms renderers/lhc-forms renderers/beda renderers/refero
cp -R aidbox-forms/aidbox-forms-builder-custom-renderer/smart-forms-renderer/dist/* renderers/smart-forms/
cp -R aidbox-forms/aidbox-forms-builder-custom-renderer/lhc-forms-renderer/dist/* renderers/lhc-forms/
cp -R aidbox-forms/aidbox-forms-builder-custom-renderer/beda-renderer/dist/* renderers/beda/
cp -R aidbox-forms/aidbox-forms-builder-custom-renderer/refero-renderer/dist/* renderers/refero/
rm aidbox-integrations/apollo-graphql-federation/README.md
- name: Generate examples metadata
run: python3 .github/scripts/generate_examples_metadata.py
- name: Publish
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: .