Skip to content

Commit

Permalink
Merge pull request #59 from RobertGawron/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
RobertGawron authored Oct 24, 2020
2 parents 9bf5eae + b350b7c commit 266fd8e
Show file tree
Hide file tree
Showing 6 changed files with 781 additions and 8 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/docs-generation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ jobs:

steps:
- uses: actions/checkout@v1
- name: install pytest and run tests
- name: install latex and generate documents
run: |
sudo apt-get install -y texlive-latex-base texlive-latex-extra texlive-extra-utils poppler-utils
cd ./Documentation/Diagrams
chmod +x ./creatediagrams.sh
./creatediagrams.sh
sudo apt-get install -y texlive-latex-base texlive-latex-extra texlive-extra-utils poppler-utils pdf2svg
cd ./ContinousIntegration
chmod +x ./run_generate_docs.sh
./run_generate_docs.sh
mkdir result
cp *png result
cp ../Documentation/Diagrams/*.png ../Documentation/Diagrams/*.svg result
- name: Archive latex docs
uses: actions/upload-artifact@v2
if: always()
with:
name: Latex Documents
path: ./Documentation/Diagrams/result
path: ./ContinousIntegration/result
3 changes: 3 additions & 0 deletions ContinousIntegration/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Continous Integration

This folder contains scripts run by GitHub continuous integration module. These scripts should be also run locally before pull request.
6 changes: 6 additions & 0 deletions Documentation/Diagrams/creatediagrams.sh → ContinousIntegration/run_generate_docs.sh
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash

cd ../Documentation/Diagrams/

# generate .png from all .tex in current directory

for filename_with_extension in *.tex
Expand All @@ -17,6 +19,10 @@ do
pdfcrop $filename.pdf $filename-tmp.pdf
pdftoppm -png -r 800 $filename-tmp.pdf $filename


# convert .tex to .png

pdf2svg $filename-tmp.pdf $filename.svg all
done

rm *.aux *.log *.pdf
Loading

0 comments on commit 266fd8e

Please sign in to comment.