Skip to content

Commit

Permalink
Merge pull request #39 from 3MFConsortium/develop_1.2.0
Browse files Browse the repository at this point in the history
Fix namespace for beamlattice balls
  • Loading branch information
martinweismann authored Mar 29, 2021
2 parents 096b012 + 036da05 commit 563c864
Show file tree
Hide file tree
Showing 11 changed files with 203 additions and 109 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# It is used to create am easily distributable and printable PDF
# version of a specification document written in markdown (3MF-style).

# (outdated) Documentation:
# https://github.com/3MFConsortium/spec_conventions/blob/master/generatePDFs/generatePDFs.md

on: [pull_request]
name: Build
jobs:
build-linux:
runs-on: ubuntu-20.04
env:
SPECNAME: "3MF Beam Lattice Extension"
steps:
- uses: actions/checkout@v2
with:
submodules: true
- run: pip install wheel
- run: pip install grip
- run: ./markdownToPDF/install_wkhtmltopdf.sh
- run: ./markdownToPDF/mdToPDF.sh "$SPECNAME"
- name: Upload PDF
uses: actions/upload-artifact@v2
with:
name: ${{ env.SPECNAME }}.pdf
path: ${{ env.SPECNAME }}.pdf


54 changes: 0 additions & 54 deletions .travis.yml

This file was deleted.

224 changes: 172 additions & 52 deletions 3MF Beam Lattice Extension.md

Large diffs are not rendered by default.

Binary file modified images/ball.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/ballref.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/balls.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/beamlattice.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/beamset.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/figure_2-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/mesh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions markdownToPDF/mdToPDF.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@

#!/bin/bash

mkdir ~/.grip
echo "PASSWORD = '${GITHUB_API_KEY}'" > ~/.grip/settings.py
# mkdir ~/.grip
# echo "PASSWORD = '${GITHUB_API_KEY}'" > ~/.grip/settings.py

FILE="$1"
TMPFILE="temp.html"

grip "$FILE.md" --export "$FILE.html"
/home/runner/.local/bin/grip "$FILE.md" --export "$FILE.html"
sed "s|readme boxed-group clearfix announce instapaper_body md||g" "$FILE.html" > "$TMPFILE"
sed -i "s|.md$||g" "$TMPFILE"
sed -i 's|<a href="images/3mf_logo_50px.png"|<a|g' "$TMPFILE"
Expand Down

0 comments on commit 563c864

Please sign in to comment.