Skip to content

Commit f95c6d9

Browse files
committed
Add ghpage for preview
1 parent 57fb7ce commit f95c6d9

File tree

8 files changed

+13978
-529
lines changed

8 files changed

+13978
-529
lines changed

.github/workflows/webpage.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
# Updates web page on pushes to `master`
3+
name: webpage
4+
5+
on:
6+
push:
7+
branches:
8+
- master
9+
10+
jobs:
11+
webpage:
12+
if: github.repository == 'unkcpz/qeschemas' # XXX: change to QEF/qeschemas after fixed
13+
14+
runs-on: ubuntu-latest
15+
env:
16+
COMMIT_AUTHOR: Deploy Action
17+
COMMIT_AUTHOR_EMAIL: [email protected]
18+
steps:
19+
- uses: actions/checkout@v2
20+
- run: git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
21+
- name: Install xsltproc
22+
run: sudo apt-get install -f xsltproc
23+
- name: make pages
24+
run: ./.make_ghpages/generate.sh
25+
- name: update index.html
26+
run: cp ./.make_ghpages/index.html out/
27+
- name: Deploy 🚀
28+
uses: JamesIves/[email protected]
29+
with:
30+
branch: gh-pages # The branch the action should deploy to.
31+
folder: out # The folder the action should deploy.

.make_ghpages/generate.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
mkdir -p out
3+
xsltproc --stringparam title "UPF v2.0.1" \
4+
--stringparam sortByComponent false \
5+
--stringparam printAllSuperTypes false \
6+
--stringparam printLegend false \
7+
--stringparam printGlossary false \
8+
--stringparam printNSPrefixes false \
9+
.make_ghpages/xs3p.xsl UPF/qe_upf_220905.xsd > out/qe_upf.html

.make_ghpages/index.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<body>
4+
5+
<h1>Quantum ESPRESSO schemas</h1>
6+
7+
<p><a href="/qeschemas/qe_upf.html">UPF schema</a></p>
8+
9+
</body>
10+
</html>
11+

0 commit comments

Comments
 (0)