Skip to content
Snippets Groups Projects
Commit 4f5783a6 authored by Mathias Goebel's avatar Mathias Goebel :reminder_ribbon:
Browse files

docs: refine instructions on how to load content from API

parent 63d56e83
No related branches found
No related tags found
1 merge request!76List of Manuscripts
Pipeline #224654 passed
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment