Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

combine new UPF-v3 schema with ltalirz/upf-schema (v2) and add ghpage #11

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/webpage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
# Updates web page on pushes to `master`
name: webpage

on:
push:
branches:
- master

jobs:
webpage:
if: github.repository == 'unkcpz/qeschemas' # XXX: change to QEF/qeschemas after fixed

runs-on: ubuntu-latest
env:
COMMIT_AUTHOR: Deploy Action
COMMIT_AUTHOR_EMAIL: [email protected]
steps:
- uses: actions/checkout@v2
- run: git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
- name: Install xsltproc
run: sudo apt-get install -f xsltproc
- name: make pages
run: ./.make_ghpages/generate.sh
- name: update index.html
run: cp ./.make_ghpages/index.html out/
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: out # The folder the action should deploy.
17 changes: 17 additions & 0 deletions .make_ghpages/generate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash
mkdir -p out
xsltproc --stringparam title "UPF v2.0.1" \
--stringparam sortByComponent false \
--stringparam printAllSuperTypes false \
--stringparam printLegend false \
--stringparam printGlossary false \
--stringparam printNSPrefixes false \
.make_ghpages/xs3p.xsl UPF/qe_pp-v2.xsd > out/qe_pp-v2.html

xsltproc --stringparam title "UPF v3.0.0" \
--stringparam sortByComponent false \
--stringparam printAllSuperTypes false \
--stringparam printLegend false \
--stringparam printGlossary false \
--stringparam printNSPrefixes false \
.make_ghpages/xs3p.xsl UPF/qe_pp-v3.xsd > out/qe_pp-v3.html
12 changes: 12 additions & 0 deletions .make_ghpages/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<body>

<h1>Quantum ESPRESSO schemas</h1>

<p><a href="/qeschemas/qe_pp-v2.html">UPF v2.0.1 schema</a></p>
<p><a href="/qeschemas/qe_pp-v3.html">UPF v3.0.0 schema</a></p>

</body>
</html>

Loading