Skip to content

Commit

Permalink
Merge pull request #61 from systemphil/feature/prepyrus-v2
Browse files Browse the repository at this point in the history
Feature/prepyrus v2
  • Loading branch information
Firgrep authored Aug 2, 2024
2 parents e664fad + 8e92541 commit fef2de2
Show file tree
Hide file tree
Showing 21 changed files with 286 additions and 448 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,34 @@ on:
- main

jobs:
prepyrus_process:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache/restore@v4
id: prepyrus-cache-restore
with:
path: target/release
key: ${{ runner.os }}-cargo-${{ hashFiles('scripts/prepyrus/Cargo.lock') }}-${{ hashFiles('scripts/prepyrus/src/**') }}
- name: Install Rust
if: steps.prepyrus-cache-restore.outputs.cache-hit != 'true'
uses: actions-rust-lang/setup-rust-toolchain@v1

- name: Install dependencies
if: steps.prepyrus-cache-restore.outputs.cache-hit != 'true'
run: cargo build --release --package prepyrus

- name: Run prepyrus script in process mode
run: target/release/prepyrus absolute_bibliography.bib src/pages process

- name: Save Prepyrus to cache
id: prepyrus-cache-save
if: steps.prepyrus-cache-restore.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
path: target/release
key: ${{ runner.os }}-cargo-${{ hashFiles('scripts/prepyrus/Cargo.lock') }}-${{ hashFiles('scripts/prepyrus/src/**') }}

build_and_deploy:
if: github.repository_owner == 'systemphil'
environment: dev
Expand Down
22 changes: 10 additions & 12 deletions .github/workflows/verify_mdx_content.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,7 @@ jobs:
- uses: actions/cache/restore@v4
id: prepyrus-cache-restore
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
path: target/release
key: ${{ runner.os }}-cargo-${{ hashFiles('scripts/prepyrus/Cargo.lock') }}-${{ hashFiles('scripts/prepyrus/src/**') }}
- name: Install Rust
if: steps.prepyrus-cache-restore.outputs.cache-hit != 'true'
Expand All @@ -36,10 +31,13 @@ jobs:
if: steps.prepyrus-cache-restore.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
path: target/release
key: ${{ runner.os }}-cargo-${{ hashFiles('scripts/prepyrus/Cargo.lock') }}-${{ hashFiles('scripts/prepyrus/src/**') }}
#
# To include multiple paths for the cache:
# path: |
# ~/.cargo/bin/
# ~/.cargo/registry/index/
# ~/.cargo/registry/cache/
# ~/.cargo/git/db/
# target/
26 changes: 18 additions & 8 deletions absolute_bibliography.bib
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,31 @@ @book{aristotle2010basic
series = {Modern Library Classics},
url = {https://books.google.de/books?id=ykGPjLgScUEC},
year = {2001},
publisher = {Random House Publishing Group}
publisher = {Random House Publishing Group},
address = {New York}
}

@book{burbidge1981hegel,
title = {On Hegel's Logic: Fragments of a Commentary},
author = {Burbidge, J.W.},
isbn = {9780391023871},
lccn = {81006699},
url = {https://books.google.de/books?id=bwavAAAAIAAJ},
year = {1981},
publisher = {Humanities Press}
publisher = {Humanities Press},
address = {Atlantic Highlands, N.J.}
}

@book{hegel2010logic,
title = {Georg Wilhelm Friedrich Hegel: The Science of Logic},
author = {Hegel, G.W.F.},
translator = {Giovanni, G. Di},
translator = {Giovanni, George Di},
isbn = {9781139491358},
series = {Cambridge Hegel Translations},
url = {https://books.google.de/books?id=hvFzyR3mNpQC},
year = {2010},
publisher = {Cambridge University Press}
publisher = {Cambridge University Press},
address = {Cambridge}
}

@book{hegel1991logic,
Expand All @@ -36,8 +40,10 @@ @book{hegel1991logic
translator = {Miller, A.V.},
isbn = {1573922803},
year = {1991},
publisher = {Humanities Press}
publisher = {Humanities Press},
address = {Atlantic Highlands, N.J.}
}

@book{houlgate2022hegel,
title = {Hegel on Being},
author = {Houlgate, S.},
Expand All @@ -47,8 +53,10 @@ @book{houlgate2022hegel
series = {Hegel on Being},
url = {https://books.google.de/books?id=rZJgzgEACAAJ},
year = {2022},
publisher = {Bloomsbury Academic}
publisher = {Bloomsbury Academic},
address = {London}
}

@book{kant1998critique,
isbn = {0521354021},
numpages = {785},
Expand All @@ -59,12 +67,14 @@ @book{kant1998critique
url = {https://openlibrary.org/books/OL657787M/Critique_of_pure_reason},
author = {Kant, Immanuel},
date = {1998},
year = {1998}
year = {1998},
address = {Cambridge}
}

@book{mctaggart1910hegel,
title = {A Commentary on Hegel's Logic},
author = {McTaggart, J.M.E.},
year = {1910},
publisher = {Cambridge University Press}
publisher = {Cambridge University Press},
address = {Cambridge}
}
Loading

0 comments on commit fef2de2

Please sign in to comment.