diff --git a/readme.md b/readme.md index 58b11d321536ed4d4cf6b0c663eee8f030ef5f84..51a5d614e04f6cb0c762b99e329815b759e3638e 100644 --- a/readme.md +++ b/readme.md @@ -28,11 +28,11 @@ Images and files can be added too, a description on how to do that is not necess ## Content via API Some pages are prepared form TEI source files. HTML is provided via backend. -To update the list of manuscripts, run the following code. +To update the [list of manuscripts](src/manuscripts.md), run the following code. ```bash -head -$(grep " HTML " src/manuscripts.md -n | cut -f1 -d:) src/manuscripts.md >> tmp.md -echo "" >> tmp.md # newline -curl https://ahikar-test.sub.uni-goettingen.de/api/website/manuscripts >> tmp.md +head -$(grep " HTML " src/manuscripts.md -n | cut -f1 -d:) src/manuscripts.md >> src/tmp.md +echo "" >> src/tmp.md # newline +curl https://ahikar-test.sub.uni-goettingen.de/api/website/manuscripts | sed "s#xhtml:##g" >> src/tmp.md # check result at tmp.md and than -mv tmp.md src/manuscripts.md +mv src/tmp.md src/manuscripts.md ``` \ No newline at end of file