Skip to content

Commit

Permalink
Merge pull request #27 from pdowler/main
Browse files Browse the repository at this point in the history
update ivoatex and add draft preview build
  • Loading branch information
janetdevans authored Sep 25, 2024
2 parents cd35976 + 72db140 commit 748a1a2
Show file tree
Hide file tree
Showing 8 changed files with 86 additions and 11 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# This file generated from a template file maintained in the ivoatex repository.
# To create and install it into a project repository, do:
# make github-preview
# git commit
# git push
#
name: Check the IVOA document

env:
Expand Down Expand Up @@ -25,7 +31,7 @@ jobs:
sudo apt install texlive-latex-base texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended xsltproc latexmk cm-super
- name: Build the document
run: make archdiag0.pdf archdiag1.pdf archdiag2.pdf biblio forcetex
run: make

- name: Check the output
run: |
Expand All @@ -37,4 +43,3 @@ jobs:
with:
path: ${{ env.doc_name }}.pdf


66 changes: 66 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# This file generated from a template file maintained in the ivoatex repository.
# To create and install it into a project repository, do:
# make github-preview
# git commit
# git push
#
name: Update PDF Preview

env:
doc_name: IVOAArchitecture

on:
push:
branches:
- main

jobs:
build:

runs-on: ubuntu-latest

steps:

- name: Checkout the repository
uses: actions/checkout@v1
with:
submodules: true

- name: Setup dependencies
run: |
sudo apt update
sudo apt install texlive-latex-base texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended xsltproc latexmk cm-super
sudo snap install pdftk
- name: Build the document
run: make ${{ env.doc_name }}-draft.pdf

- name: Check the output
run: |
test -f ${{ env.doc_name }}-draft.pdf
test -f ${{ env.doc_name }}.bbl
- name: Move the auto-pdf-preview tag
uses: weareyipyip/walking-tag-action@v2
with:
tag-name: auto-pdf-preview
tag-message: |
Last commit taken into account for the automatically updated PDF preview of this IVOA document.
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Update the PDF preview
uses: Xotl/cool-github-releases@v1
with:
mode: update
isPrerelease: true
tag_name: auto-pdf-preview
release_name: "Auto PDF Preview"
body_mrkdwn: |
This release aims to provide a PDF preview of the last commit applied on this repository.
It will be updated automatically after each merge of a PullRequest.
**DO NOT PUBLISH THIS PRE-RELEASE!**"
_Corresponding commit: ${{ github.sha }}_
assets: ${{ env.doc_name }}-draft.pdf
replace_assets: true
github_token: ${{ secrets.GITHUB_TOKEN }}
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ AUX_FILES =

include ivoatex/Makefile

archdiag2.svg: archdiag-full.xml ivoatex/make-archdiag.xslt
$(XSLTPROC) -o $@ ivoatex/make-archdiag.xslt archdiag-full.xml
#archdiag2.svg: archdiag-full.xml ivoatex/make-archdiag.xslt
# $(XSLTPROC) -o $@ ivoatex/make-archdiag.xslt archdiag-full.xml

archdiag1.svg: ivoatex/make-archdiag.xslt
echo '<archdiag xmlns="http://ivoa.net/archdiag"/>' | $(XSLTPROC) -o $@ ivoatex/make-archdiag.xslt -
#archdiag1.svg: ivoatex/make-archdiag.xslt
# echo '<archdiag xmlns="http://ivoa.net/archdiag"/>' | $(XSLTPROC) -o $@ ivoatex/make-archdiag.xslt -

archdiag0.svg: ivoatex/make-archdiag.xslt
echo '<archdiag0 xmlns="http://ivoa.net/archdiag"/>' | $(XSLTPROC) -o $@ ivoatex/make-archdiag.xslt -
#archdiag0.svg: ivoatex/make-archdiag.xslt
# echo '<archdiag0 xmlns="http://ivoa.net/archdiag"/>' | $(XSLTPROC) -o $@ ivoatex/make-archdiag.xslt -



Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@
This is the home for the IVOA Architecture Note that is produced by the Technical
Coordination Group (TCG). This document was created and is updated periodically to
describe the design concepts behind existing and new IVOA standards. The original
note was published in 2010 and this 2021 update is the first since that date.
note was published in 2010 and updated in 2021. The document is expected to be updated
approximately once every three (3) years around the end of a TCG chair's term.

# Status

Under development.
The draft version (2024 update) is:
[![PDF-Preview](https://img.shields.io/badge/Preview-PDF-blue)](../../releases/download/auto-pdf-preview/IVOAArchitecture-draft.pdf)

The released version of this document is: https://www.ivoa.net/Documents/IVOAArchitecture/20211101

# Working on this Document

Expand Down
Binary file added archdiag0.pdf
Binary file not shown.
Binary file added archdiag1.pdf
Binary file not shown.
Binary file added archdiag2.pdf
Binary file not shown.

0 comments on commit 748a1a2

Please sign in to comment.