Skip to content

Commit

Permalink
feat: build webpages dynamically
Browse files Browse the repository at this point in the history
  • Loading branch information
csae8092 committed Jan 22, 2025
1 parent 4fbe694 commit 6026ee0
Show file tree
Hide file tree
Showing 23 changed files with 303 additions and 2,259 deletions.
10 changes: 10 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[flake8]
ignore = D203 W504
max-line-length = 120
exclude =
.git
.tox
build
dist
env
venv
9 changes: 4 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,11 @@ jobs:
- name: Setup python
uses: actions/setup-python@v5

- name: Install pylode
run: pip install pylode
- name: Install requirements.txt
run: pip install -r requirements.txt

- name: Generate documentation
run: |
for file in `find types -name '*.ttl'`; do mkdir -p html/${file%.*}; pylode $file -o html/${file%.*}/index.html; done
- name: Build Website
run: python scripts/build.py

- name: Login to ghcr.io
uses: docker/login-action@v2
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
- name: Install requirements
run: pip install -r requirements.txt
- name: Build Website
run: python scripts/build.py
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -170,3 +170,4 @@ cython_debug/
# PyPI configuration file
.pypirc
play.py
*.html
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,18 @@

# pfp-schema
The PFP - [Prosopographic Research Platform](https://www.oeaw.ac.at/acdh/research/dh-research-infrastructure/activities/modelling-humanities-data/pfp-prosopographical-research-platform-austria) Austria serves as an umbrella project for personal research at the Austrian Academy of Sciences (ÖAW) using methods of the Digital Humanities. On this page we publish relevant materials with regard to the overarching dta model.


## dev

* clone the repo
* (create virtual env e.g. `python -m venv venv`)
* `python scripts/build_static.py` to build the website and convert .ttl stored in anywhere in the `./html` into HTML sites using [pylode](https://github.com/rdflib/pyLODE)


## docker

```bash
docker build -t pfp-schema:latest .
docker run -d -p 5000:5000 --name pfp-schema pfp-schema:latest
```
Empty file added html/css/style.css
Empty file.
176 changes: 0 additions & 176 deletions html/imprint.html

This file was deleted.

124 changes: 0 additions & 124 deletions html/index.html

This file was deleted.

4 changes: 2 additions & 2 deletions schema/schema.ttl → html/schema/schema.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix ore: <http://www.openarchives.org/ore/terms/> .
@prefix pfp: <http://pfp-schema.acdh.oeaw.ac.at/#> .
@prefix pfp: <http://pfp-schema.acdh.oeaw.ac.at/schema#> .

<http://pfp-schema.acdh.oeaw.ac.at/#> a owl:Ontology ;
<http://pfp-schema.acdh.oeaw.ac.at/schema#> a owl:Ontology ;
dc:title "PFP Schema" .

pfp:provided_entity a owl:Class ;
Expand Down
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 6026ee0

Please sign in to comment.