-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mint dse-static-cookiecutter README.md and LICENSE updated data currently excluded from versioning while developing
- Loading branch information
0 parents
commit 37edd4e
Showing
51 changed files
with
3,685 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: ARCHE-Ingest | ||
|
||
on: | ||
workflow_dispatch | ||
|
||
jobs: | ||
build_pages: | ||
name: Ingest Data into ARCHE | ||
runs-on: ubuntu-latest | ||
env: | ||
ANT_OPTS: -Xmx5g | ||
steps: | ||
- name: Perform Checkout | ||
uses: actions/checkout@v2 | ||
- name: Install Saxon, Ant and Fundament | ||
run: | | ||
apt-get update && apt-get install openjdk-11-jre-headless ant -y --no-install-recommend | ||
./shellscripts/script.sh | ||
- name: Build | ||
run: | | ||
ant -f build_arche.xml | ||
- name: ingestion dependencies | ||
run: | | ||
composer require "acdh-oeaw/arche-ingest:^1" | ||
- name: ingest resources | ||
run: | | ||
vendor/bin/arche-import-metadata html/arche.rdf https://arche-dev.acdh-dev.oeaw.ac.at/api ${{secrets.ARCHE_LOGIN}} ${{secrets.ARCHE_PASSWORD}}--retriesOnConflict 25 | ||
- name: Copy XML Files to to_ingest | ||
run: | | ||
mkdir $PWD/to_ingest | ||
find -path "./data/editions/*.xml" -exec cp -prv '{}' './to_ingest' ';' | ||
find -path "./data/indices/*.xml" -exec cp -prv '{}' './to_ingest' ';' | ||
find -path "./data/meta/*.xml" -exec cp -prv '{}' './to_ingest' ';' | ||
- name: install repo-file-checker | ||
run: | | ||
composer require "acdh-oeaw/repo-file-checker:^2" | ||
mkdir -p filechecker/tmp filechecker/reports | ||
- name: run repo-file-checker | ||
run: | | ||
php -f vendor/acdh-oeaw/repo-file-checker/index.php -- --tmpDir filechecker/tmp --reportDir filechecker/reports to_ingest 0 | ||
- name: ingest binaries | ||
run: | | ||
vendor/bin/arche-import-binary to_ingest https://id.acdh.oeaw.ac.at/maechtekongresse-static https://arche-dev.acdh-dev.oeaw.ac.at/api ${{secrets.ARCHE_LOGIN}} ${{secrets.ARCHE_PASSWORD}} --skip not_exist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Build and publish | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
build_pages: | ||
name: Publish Edition as GitHub Pages Website | ||
runs-on: ubuntu-latest | ||
env: | ||
ANT_OPTS: -Xmx5g | ||
steps: | ||
- name: Perform Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install Saxon, Ant and Python | ||
run: | | ||
apt-get update && apt-get install openjdk-11-jre-headless ant -y --no-install-recommend | ||
./shellscripts/script.sh | ||
pip install -r requirements.txt | ||
- name: Build | ||
run: | | ||
ant | ||
- name: Deploy | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{secrets.GITHUB_TOKEN}} | ||
publish_dir: ./html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,146 @@ | ||
# project specific | ||
*.html | ||
!search.html | ||
/saxon | ||
data/imprint.xml | ||
/static-search | ||
html/static-search | ||
/data | ||
html/*.xml | ||
*.xpr | ||
|
||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
wheels/ | ||
pip-wheel-metadata/ | ||
share/python-wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
MANIFEST | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.nox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*.cover | ||
*.py,cover | ||
.hypothesis/ | ||
.pytest_cache/ | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
local_settings.py | ||
db.sqlite3 | ||
db.sqlite3-journal | ||
|
||
# Flask stuff: | ||
instance/ | ||
.webassets-cache | ||
|
||
# Scrapy stuff: | ||
.scrapy | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
# Jupyter Notebook | ||
.ipynb_checkpoints | ||
|
||
# IPython | ||
profile_default/ | ||
ipython_config.py | ||
|
||
# pyenv | ||
.python-version | ||
|
||
# pipenv | ||
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. | ||
# However, in case of collaboration, if having platform-specific dependencies or dependencies | ||
# having no cross-platform support, pipenv may install dependencies that don't work, or not | ||
# install all needed dependencies. | ||
#Pipfile.lock | ||
|
||
# PEP 582; used by e.g. github.com/David-OConnor/pyflow | ||
__pypackages__/ | ||
|
||
# Celery stuff | ||
celerybeat-schedule | ||
celerybeat.pid | ||
|
||
# SageMath parsed files | ||
*.sage.py | ||
|
||
# Environments | ||
.env | ||
.venv | ||
env/ | ||
venv/ | ||
ENV/ | ||
env.bak/ | ||
venv.bak/ | ||
|
||
# Spyder project settings | ||
.spyderproject | ||
.spyproject | ||
|
||
# Rope project settings | ||
.ropeproject | ||
|
||
# mkdocs documentation | ||
/site | ||
|
||
# mypy | ||
.mypy_cache/ | ||
.dmypy.json | ||
dmypy.json | ||
|
||
# Pyre type checker | ||
.pyre/ | ||
|
||
# Windows | ||
desktop.ini | ||
|
||
# MacOS | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Data in data is licenced under CC-BY-SA 4.0 as stated in the TEI files. | ||
|
||
https://creativecommons.org/licenses/by-sa/4.0/legalcode | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Mächtekongresse 1818-1822 | ||
|
||
Repository for a DSE-Static-Cookiecutter version of the **maechtekongresse** edition. | ||
|
||
Migration to static site approach: March 2024. TEI XML Data remains unchanged. | ||
|
||
* data is fetched from https://github.com/KONDE-AT/maechtekongresse | ||
* build with [DSE-Static-Cookiecutter](https://github.com/acdh-oeaw/dse-static-cookiecutter) | ||
|
||
|
||
-- | ||
|
||
This is the public Repository for the digital scholarly edition of the Mächtekongresse Edition by Karin Schneider and Stephan Kurz, Austrian Academy of Sciences, Institute for Modern and Contemporary Historical Research (since 2020, renamed to [Institute for Habsburg and Balkan Studies](https://www.oeaw.ac.at/ihb/)). | ||
|
||
The web application curated here is deployed at <https://maechtekongresse.acdh.oeaw.ac.at/>, which has the following registered ISBN: 978-3-9504783-0-3. | ||
|
||
An additional copy of the TEI data is kept at the Austrian Academy of Sciences’ long term research data repository ARCHE under the identifier <http://hdl.handle.net/21.11115/0000-000C-2093-9>/<https://id.acdh.oeaw.ac.at/maechtekongresse>. | ||
|
||
The web application derived from an earlier version of <https://github.com/KONDE-AT/dsebaseapp>. | ||
|
||
Data in `data` is licenced under CC-BY-SA 4.0 as stated in the TEI files. | ||
|
||
[](https://doi.org/10.5281/zenodo.4590269) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project basedir="." name="tei2html"> | ||
<property name="index" value="./data/meta/about.xml"/> | ||
<property name="target" value="./html"/> | ||
<property name="target_xml" value="./html/xml-view"/> | ||
<delete> | ||
<fileset dir="${target}" includes="*.html"/> | ||
</delete> | ||
<delete dir="${target}/static-search"/> | ||
<xslt in="${index}" out="${target}/index.html" style="./xslt/index.xsl"> | ||
<factory name="net.sf.saxon.TransformerFactoryImpl"/> | ||
<classpath location="${basedir}/saxon/saxon9he.jar"/> | ||
</xslt> | ||
<xslt style="./xslt/editions.xsl" basedir="./data/editions" destdir="${target}" includes="*.xml"> | ||
<factory name="net.sf.saxon.TransformerFactoryImpl"/> | ||
<classpath location="${basedir}/saxon/saxon9he.jar"/> | ||
</xslt> | ||
<xslt style="./xslt/meta.xsl" basedir="./data/meta" destdir="${target}" includes="*.xml"> | ||
<factory name="net.sf.saxon.TransformerFactoryImpl"/> | ||
<classpath location="${basedir}/saxon/saxon9he.jar"/> | ||
</xslt> | ||
<xslt in="${index}" out="${target}/toc.html" style="./xslt/toc.xsl"> | ||
<factory name="net.sf.saxon.TransformerFactoryImpl"/> | ||
<classpath location="${basedir}/saxon/saxon9he.jar"/> | ||
</xslt> | ||
<xslt in="${index}" out="${target}/search.html" style="./xslt/search.xsl"> | ||
<factory name="net.sf.saxon.TransformerFactoryImpl"/> | ||
<classpath location="${basedir}/saxon/saxon9he.jar"/> | ||
</xslt> | ||
<xslt in="./data/imprint.xml" out="${target}/imprint.html" style="./xslt/imprint.xsl"> | ||
<factory name="net.sf.saxon.TransformerFactoryImpl"/> | ||
<classpath location="${basedir}/saxon/saxon9he.jar"/> | ||
</xslt> | ||
<xslt in="./data/indices/listperson.xml" out="${target}/listperson.html" style="./xslt/listperson.xsl"> | ||
<factory name="net.sf.saxon.TransformerFactoryImpl"/> | ||
<classpath location="${basedir}/saxon/saxon9he.jar"/> | ||
</xslt> | ||
<xslt in="./data/indices/listplace.xml" out="${target}/listplace.html" style="./xslt/listplace.xsl"> | ||
<factory name="net.sf.saxon.TransformerFactoryImpl"/> | ||
<classpath location="${basedir}/saxon/saxon9he.jar"/> | ||
</xslt> | ||
<xslt in="./data/indices/listorg.xml" out="${target}/listorg.html" style="./xslt/listorg.xsl"> | ||
<factory name="net.sf.saxon.TransformerFactoryImpl"/> | ||
<classpath location="${basedir}/saxon/saxon9he.jar"/> | ||
</xslt> | ||
<!--<xslt in="./data/indices/listbibl.xml" out="${target}/listbibl.html" style="./xslt/listbibl.xsl"> | ||
<factory name="net.sf.saxon.TransformerFactoryImpl"/> | ||
<classpath location="${basedir}/saxon/saxon9he.jar"/> | ||
</xslt>--> | ||
<!--<xslt in="./data/meta/arche_constants.rdf" out="${target}/arche.rdf" style="./xslt/arche.xsl"> | ||
<factory name="net.sf.saxon.TransformerFactoryImpl"/> | ||
<classpath location="${basedir}/saxon/saxon9he.jar"/> | ||
</xslt>--> | ||
<xslt in="./data/indices/listperson.xml" out="${target}/beacon.txt" style="./xslt/beacon.xsl"> | ||
<factory name="net.sf.saxon.TransformerFactoryImpl"/> | ||
<classpath location="${basedir}/saxon/saxon9he.jar"/> | ||
</xslt> | ||
<replace dir="${target}" value=""> | ||
<include name="*.html"/> | ||
<replacetoken> xmlns=""</replacetoken> | ||
</replace> | ||
<replace dir="${target}" value=""> | ||
<include name="*.html"/> | ||
<replacetoken>xmlns:tei="http://www.tei-c.org/ns/1.0"</replacetoken> | ||
</replace> | ||
<replace dir="${target}" value=""> | ||
<include name="*.html"/> | ||
<replacetoken><br ></replacetoken> | ||
</replace> | ||
<replace dir="${target}" value=""> | ||
<include name="*.html"/> | ||
<replacetoken><br></replacetoken> | ||
</replace> | ||
<replace dir="${target}" value="<br />"> | ||
<include name="*.html"/> | ||
<replacetoken></br></replacetoken> | ||
</replace> | ||
|
||
<replace dir="${target}" value=""> | ||
<include name="*.html"/> | ||
<replacetoken>xmlns="http://www.w3.org/1999/xhtml"</replacetoken> | ||
</replace> | ||
|
||
<copy todir="${target}" flatten="true"> | ||
<fileset dir="./data/"> | ||
<include name="**/*.xml"/> | ||
</fileset> | ||
</copy> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project basedir="." name="tei2html"> | ||
<xslt in="./data/meta/arche_constants.rdf" out="./html/arche.rdf" style="./xslt/arche.xsl"> | ||
<factory name="net.sf.saxon.TransformerFactoryImpl"/> | ||
<classpath location="${basedir}/saxon/saxon9he.jar"/> | ||
</xslt> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# bin/bash | ||
|
||
echo "fetching transkriptions from data_repo" | ||
rm -rf data/editions && mkdir data/editions | ||
rm -rf data/indices && mkdir data/indices | ||
rm -rf data/meta && mkdir data/meta | ||
curl -LO https://github.com/KONDE-AT/maechtekongresse/archive/refs/heads/master.zip | ||
unzip master | ||
|
||
mv ./maechtekongresse-master/data/editions/ ./data | ||
mv ./maechtekongresse-master/data/indices/ ./data | ||
mv ./maechtekongresse-master/data/meta/ ./data | ||
|
||
rm master.zip | ||
rm -rf ./maechtekongresse-master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#FORMAT: BEACON | ||
#NAME:Mächtekongresse 1818-1822 |
Oops, something went wrong.