Skip to content

Commit

Permalink
Add ghpage for preview
Browse files Browse the repository at this point in the history
  • Loading branch information
unkcpz committed Sep 5, 2022
1 parent 57fb7ce commit f95c6d9
Show file tree
Hide file tree
Showing 8 changed files with 13,978 additions and 529 deletions.
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.
9 changes: 9 additions & 0 deletions .make_ghpages/generate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/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_upf_220905.xsd > out/qe_upf.html
11 changes: 11 additions & 0 deletions .make_ghpages/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<body>

<h1>Quantum ESPRESSO schemas</h1>

<p><a href="/qeschemas/qe_upf.html">UPF schema</a></p>

</body>
</html>

Loading

0 comments on commit f95c6d9

Please sign in to comment.