Skip to content

Commit bf96cad

Browse files
authored
Merge pull request #1 from pdowler/main
ivoatex setup and initial port of REC from docx format
2 parents 7b027b4 + bfca620 commit bf96cad

File tree

8 files changed

+3721
-0
lines changed

8 files changed

+3721
-0
lines changed

.github/workflows/build.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# This file generated from a template file maintained in the ivoatex repository.
2+
# To create and install it into a project repository, do:
3+
# make github-preview
4+
# git commit
5+
# git push
6+
#
7+
name: Check the IVOA document
8+
9+
env:
10+
doc_name: ObsCore
11+
12+
on:
13+
pull_request:
14+
types: [opened, synchronize, reopened]
15+
16+
jobs:
17+
build:
18+
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
23+
- name: Checkout the repository
24+
uses: actions/checkout@v4
25+
with:
26+
submodules: true
27+
28+
- name: Setup dependencies
29+
run: |
30+
sudo apt update
31+
sudo apt install texlive-latex-base texlive-latex-recommended \
32+
texlive-latex-extra texlive-fonts-recommended \
33+
librsvg2-bin latexmk \
34+
pdftk xsltproc latexmk cm-super
35+
36+
- name: Build the document
37+
run: make
38+
39+
- name: Check the output
40+
run: |
41+
test -f ${{ env.doc_name }}.pdf
42+
test -f ${{ env.doc_name }}.bbl
43+
44+
- name: Keep the PDF artefact
45+
uses: actions/upload-artifact@v4
46+
with:
47+
name: PDF Preview
48+
path: ${{ env.doc_name }}.pdf

.github/workflows/preview.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# This file generated from a template file maintained in the ivoatex repository.
2+
# To create and install it into a project repository, do:
3+
# make github-preview
4+
# git commit
5+
# git push
6+
#
7+
name: Update PDF Preview
8+
9+
env:
10+
doc_name : ObsCore
11+
branch_name: ${{ github.head_ref || github.ref_name }}
12+
tag_preview: auto-pdf-preview
13+
14+
on:
15+
push:
16+
branches:
17+
- master
18+
19+
jobs:
20+
build:
21+
22+
runs-on: ubuntu-latest
23+
24+
steps:
25+
26+
- name: Checkout the repository
27+
uses: actions/checkout@v4
28+
with:
29+
submodules: true
30+
31+
- name: Setup dependencies
32+
run: |
33+
sudo apt install texlive-latex-base texlive-latex-recommended \
34+
texlive-latex-extra texlive-fonts-recommended \
35+
librsvg2-bin latexmk \
36+
pdftk xsltproc latexmk cm-super
37+
38+
- name: Build the document
39+
run: make ${{ env.doc_name }}-draft.pdf
40+
41+
- name: Check the output
42+
run: |
43+
test -f ${{ env.doc_name }}-draft.pdf
44+
test -f ${{ env.doc_name }}.bbl
45+
46+
- name: Remove the former PDF preview (if any)
47+
run: |
48+
existingTag=$( gh release list --exclude-drafts --json 'isPrerelease,tagName' \
49+
--jq '.[] | select(.isPrerelease == true and .tagName == "${{ env.tag_preview }}") | .tagName' \
50+
| xargs -n 1 echo )
51+
if [ -n "$existingTag" ];
52+
then
53+
gh release delete --cleanup-tag "$existingTag"
54+
fi
55+
env:
56+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
58+
- name: Upload the new PDF preview
59+
run: |
60+
RELEASE_NOTES="This release aims to provide a PDF preview of the last commit applied on this repository.
61+
It will be updated automatically after each merge of a PullRequest.
62+
**DO NOT PUBLISH THIS PRE-RELEASE!**
63+
_Corresponding commit: ${{ github.sha }}_"
64+
65+
gh release create ${{ env.tag_preview }} \
66+
${{ env.doc_name }}-draft.pdf \
67+
--prerelease \
68+
--target "${{ env.branch_name }}" \
69+
--title 'Auto PDF Preview' \
70+
--notes "$RELEASE_NOTES"
71+
env:
72+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
73+

.gitignore

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
*.blg
2+
*.toc
3+
*.out
4+
*.pdf
5+
*.aux
6+
*.bbl
7+
ivoatexmeta.tex
8+
*.log
9+
*.html
10+
*.zip
11+
*.fdb_latexmk
12+
*.fls
13+
gitmeta.tex
14+
*.swp
15+
role_diagram.svg
16+
17+
# OS-specific
18+
.DS_Store

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "ivoatex"]
2+
path = ivoatex
3+
url = https://github.com/ivoa-std/ivoatex

0 commit comments

Comments
 (0)