diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a59201c59bc51f5d65ad53277bbf418804cc782e..0c73ca5cbf3bac10bd74375bca193039e24b8dfa 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,12 +8,17 @@ stages: test: stage: test - image: docker.gitlab.gwdg.de/subugoe/emo/text-api:hugo + image: registry.gitlab.com/pages/hugo/hugo:latest script: + - cp -r sample_server content - hugo except: - main - tags + artifacts: + paths: + - public + release: stage: release @@ -28,11 +33,12 @@ release: pages: stage: publish - image: docker.gitlab.gwdg.de/subugoe/emo/text-api:hugo + image: registry.gitlab.com/pages/hugo/hugo:latest # "update versions" is the commit title we set in archive-version.sh rules: - if: '$CI_COMMIT_TITLE == "update versions"' script: + - cp -r sample_server content - hugo artifacts: paths: diff --git a/Dockerfile.hugo b/Dockerfile.hugo deleted file mode 100644 index debc94ea1a91e0a32af767ad251bb470331d305e..0000000000000000000000000000000000000000 --- a/Dockerfile.hugo +++ /dev/null @@ -1 +0,0 @@ -FROM registry.gitlab.com/pages/hugo/hugo:0.92.2 \ No newline at end of file diff --git a/README.md b/README.md index 735474490ee2dc5797c193d4595ddb0fdc0290ff..b0c7f77f2537f7bedfd9374c160aeaeecc677af7 100644 --- a/README.md +++ b/README.md @@ -31,12 +31,12 @@ Read more at Hugo's [documentation](https://gohugo.io/overview/introduction/). If you clone or download this project to your local computer and run `hugo server`, your site can be accessed under `localhost:1313/hugo/`. -The theme used is adapted from . +The theme used is adapted from and changed to work for Hugo > 0.92.0. ## Deployment This project's static Pages are built by GitLab CI, following the steps defined in [`.gitlab-ci.yml`](.gitlab-ci.yml). -The page is built after each commit to the `master` branch and deployed to . +The page is built after each commit to the `main` branch and deployed to . Since this repository is still protected, only logged in members of the `subugoe` can see the GitLab page. ## Versioning diff --git a/openapi_3.0.2_specification.yml b/openapi_3.0.2_specification.yml index 46875982887c8d8f1ee390db1e3a97e831ba4c92..91049305a000fa7d822bd25aea127dd96825fc6a 100644 --- a/openapi_3.0.2_specification.yml +++ b/openapi_3.0.2_specification.yml @@ -11,7 +11,7 @@ info: url: https://creativecommons.org/licenses/by-nd/4.0/legalcode servers: - - url: https://api.server.test/v1 + - url: https://subugoe.pages.gwdg.de/emo/text-api/sample_server/ description: The URL of the server you implement the TextAPI at. paths: @@ -31,10 +31,10 @@ paths: examples: semanticID: summary: An identifier that has a meaning for humans - value: {"semanticID": "ShakespearesWorks"} + value: "ShakespearesWorks" ID: summary: An identifier with no special meaning for humans - value: {"ID": "12a34b"} + value: "12a34b" responses: '200': description: OK @@ -42,7 +42,7 @@ paths: application/json: schema: $ref: '#/components/schemas/CollectionObject' - example: https://subugoe.pages.gwdg.de/emo/text-api/page/specs/#collectionjson + example: https://subugoe.pages.gwdg.de/emo/text-api/sample_server/collection.json /{collection}/{manifest}/manifest.json: get: @@ -56,6 +56,13 @@ paths: description: The identifier of the collection schema: {$ref: '#/components/schemas/Collection'} required: true + examples: + semanticID: + summary: An identifier that has a meaning for humans + value: "ShakespearesWorks" + ID: + summary: An identifier with no special meaning for humans + value: "12a34b" - name: manifest in: path description: The identifier of the manifest @@ -64,10 +71,10 @@ paths: examples: semanticID: summary: An identifier that has a meaning for humans - value: {"semanticID": "Othello"} + value: "Othello" ID: summary: An identifier with no special meaning for humans - value: {"ID": "12a34b"} + value: "12a34b" responses: '200': description: OK @@ -75,7 +82,7 @@ paths: application/json: schema: $ref: '#/components/schemas/ManifestObject' - example: https://subugoe.pages.gwdg.de/emo/text-api/page/specs/#manifestjson + example: https://subugoe.pages.gwdg.de/emo/text-api/sample_server/manifest.json /{collection}/{manifest}/{item}/{revision}/item.json: @@ -90,11 +97,25 @@ paths: description: The identifier of the collection schema: {$ref: '#/components/schemas/Collection'} required: true + examples: + semanticID: + summary: An identifier that has a meaning for humans + value: "ShakespearesWorks" + ID: + summary: An identifier with no special meaning for humans + value: "12a34b" - name: manifest in: path description: The identifier of the manifest schema: {$ref: '#/components/schemas/Manifest'} required: true + examples: + semanticID: + summary: An identifier that has a meaning for humans + value: "Othello" + ID: + summary: An identifier with no special meaning for humans + value: "12a34b" - name: item in: path description: The identifier of the item @@ -103,10 +124,10 @@ paths: examples: semanticID: summary: An identifier that has a meaning for humans - value: {"semanticID": "page90"} + value: "page90" ID: summary: An identifier with no special meaning for humans - value: {"ID": "3x_2"} + value: "3x_2" - name: revision in: path description: The revision of the item to be delivered. @@ -115,10 +136,10 @@ paths: examples: semanticID: summary: A revision that has a meaning for humans - value: {"semanticID": "1"} + value: "1" ID: - summary: An revision with no special meaning for humans - value: {"ID": "fb406b265a779b43afa635bc8da79d81"} + summary: A revision with no special meaning for humans + value: "fb406b265a779b43afa635bc8da79d81" responses: '200': description: OK @@ -126,7 +147,7 @@ paths: application/json: schema: $ref: '#/components/schemas/ItemObject' - example: https://subugoe.pages.gwdg.de/emo/text-api/page/specs/#itemjson + example: https://subugoe.pages.gwdg.de/emo/text-api/sample_server/latest/item.json /{collection}/{manifest}/{item}/{revision}/full.json: @@ -141,11 +162,25 @@ paths: description: The identifier of the collection schema: {$ref: '#/components/schemas/Collection'} required: true + examples: + semanticID: + summary: An identifier that has a meaning for humans + value: "ShakespearesWorks" + ID: + summary: An identifier with no special meaning for humans + value: "12a34b" - name: manifest in: path description: The identifier of the manifest schema: {$ref: '#/components/schemas/Manifest'} required: true + examples: + semanticID: + summary: An identifier that has a meaning for humans + value: "Othello" + ID: + summary: An identifier with no special meaning for humans + value: "12a34b" - name: item in: path description: The identifier of the item @@ -156,6 +191,13 @@ paths: description: The revision of the item to be delivered. schema: {$ref: '#/components/schemas/Revision'} required: true + examples: + semanticID: + summary: A revision that has a meaning for humans + value: "1" + ID: + summary: A revision with no special meaning for humans + value: "fb406b265a779b43afa635bc8da79d81" responses: '200': description: OK @@ -163,7 +205,7 @@ paths: application/json: schema: $ref: '#/components/schemas/ItemObject' - example: https://subugoe.pages.gwdg.de/emo/text-api/page/specs/#itemjson + example: https://subugoe.pages.gwdg.de/emo/text-api/sample_server/latest/item.json components: schemas: diff --git a/sample_server/12a34b/12a34b/3x_2/1/item.json b/sample_server/12a34b/12a34b/3x_2/1/item.json new file mode 100644 index 0000000000000000000000000000000000000000..ff735f5239259a8732af01f8a2fa172f7b5e0355 --- /dev/null +++ b/sample_server/12a34b/12a34b/3x_2/1/item.json @@ -0,0 +1,38 @@ +{ + "textapi": "1.0.0", + "title": [ + { + "title": "A Sample Item", + "type": "main" + }, + { + "title": "A Subtitle", + "type": "sub" + } + ], + "type": "section", + "n": "one", + "lang": [ + "fre", "aci" + ], + "langAlt": ["karshuni"], + "content": [ + { + "type": "text/html", + "url": "https://example.com/html-serialization-one.html" + }, + { + "type": "text/xml", + "url": "https://example.com/xml-serialization-two.xml" + } + ], + "description": "This is Section one of the Sample Manifest", + "image": { + "id": "https://example.com/image.png", + "license": { + "id": "CC-BY-4.0" + } + }, + "annotationCollection": "https://example.com/one/annotationCollection.json" + } + \ No newline at end of file diff --git a/sample_server/12a34b/12a34b/3x_2/fb406b265a779b43afa635bc8da79d81/item.json b/sample_server/12a34b/12a34b/3x_2/fb406b265a779b43afa635bc8da79d81/item.json new file mode 100644 index 0000000000000000000000000000000000000000..ff735f5239259a8732af01f8a2fa172f7b5e0355 --- /dev/null +++ b/sample_server/12a34b/12a34b/3x_2/fb406b265a779b43afa635bc8da79d81/item.json @@ -0,0 +1,38 @@ +{ + "textapi": "1.0.0", + "title": [ + { + "title": "A Sample Item", + "type": "main" + }, + { + "title": "A Subtitle", + "type": "sub" + } + ], + "type": "section", + "n": "one", + "lang": [ + "fre", "aci" + ], + "langAlt": ["karshuni"], + "content": [ + { + "type": "text/html", + "url": "https://example.com/html-serialization-one.html" + }, + { + "type": "text/xml", + "url": "https://example.com/xml-serialization-two.xml" + } + ], + "description": "This is Section one of the Sample Manifest", + "image": { + "id": "https://example.com/image.png", + "license": { + "id": "CC-BY-4.0" + } + }, + "annotationCollection": "https://example.com/one/annotationCollection.json" + } + \ No newline at end of file diff --git a/sample_server/12a34b/12a34b/manifest.json b/sample_server/12a34b/12a34b/manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..ced37279e59b94bbc5d545d335eeef20ce42f9ae --- /dev/null +++ b/sample_server/12a34b/12a34b/manifest.json @@ -0,0 +1,87 @@ +{ + "textapi": "1.0.0", + "id": "https://subugoe.pages.gwdg.de/emo/text-api/sample_server/12a34b/12a34b/manifest.json", + "label": "Sample Manifest", + "actor": [ + { + "role": ["developer"], + "name": "Jane Doe", + "id": "this_edition$jane_doe", + "idref": { + "base": "https://www.wikidata.org/wiki/", + "id": "Q56314893", + "type": "wikidata" + } + } + ], + "repository": [ + { + "baseUrl": "https://textgridrep.org/", + "id": "textgrid:12345", + "label": "TextGrid Repository", + "url": "https://textgrid.de" + } + ], + "image": { + "id": "https://example.com/myimage.png", + "license": { + "id": "WTFPL", + "notes": "open free libre" + } + }, + + "support": [ + { + "type": "css", + "mime": "text/css", + "url": "https://example.com/resources/mystyle.css" + } + ], + "license": [ + {"id": "CC-BY-SA-4.0"} + ], + "description": "This is a sample manifest. URLs are not meant to be resolved.", + "annotationCollection": "https://example.com/anotherAnnotationCollection.json", + "sequence": [ + { + "id": "https://subugoe.pages.gwdg.de/emo/text-api/sample_server/12a34b/12a34b/3x_2/fb406b265a779b43afa635bc8da79d81/item.json", + "type": "item" + }, + { + "id": "https://subugoe.pages.gwdg.de/emo/text-api/sample_server/12a34b/12a34b/3x_2/1/item.json", + "type": "item" + }, + { + "id": "https://subugoe.pages.gwdg.de/emo/text-api/sample_server/12a34b/12a34b/page90/fb406b265a779b43afa635bc8da79d81/item.json", + "type": "item" + }, + { + "id": "https://subugoe.pages.gwdg.de/emo/text-api/sample_server/12a34b/12a34b/page90/1/item.json", + "type": "item" + } + ], + "metadata": [ + { + "key": "my key", + "value": "my value" + }, + { + "key": "a list", + "value": "test", + "metadata": [ + { + "key": "list key one", + "value": "the bullet point" + }, + { + "key": "list key 2", + "value": "another bullet point" + } + ] + } + ], + "x-somekey": 42, + "x-custom-thing": "untyped additional property (xeno data)" + + } + \ No newline at end of file diff --git a/sample_server/12a34b/12a34b/page90/1/item.json b/sample_server/12a34b/12a34b/page90/1/item.json new file mode 100644 index 0000000000000000000000000000000000000000..ff735f5239259a8732af01f8a2fa172f7b5e0355 --- /dev/null +++ b/sample_server/12a34b/12a34b/page90/1/item.json @@ -0,0 +1,38 @@ +{ + "textapi": "1.0.0", + "title": [ + { + "title": "A Sample Item", + "type": "main" + }, + { + "title": "A Subtitle", + "type": "sub" + } + ], + "type": "section", + "n": "one", + "lang": [ + "fre", "aci" + ], + "langAlt": ["karshuni"], + "content": [ + { + "type": "text/html", + "url": "https://example.com/html-serialization-one.html" + }, + { + "type": "text/xml", + "url": "https://example.com/xml-serialization-two.xml" + } + ], + "description": "This is Section one of the Sample Manifest", + "image": { + "id": "https://example.com/image.png", + "license": { + "id": "CC-BY-4.0" + } + }, + "annotationCollection": "https://example.com/one/annotationCollection.json" + } + \ No newline at end of file diff --git a/sample_server/12a34b/12a34b/page90/fb406b265a779b43afa635bc8da79d81/item.json b/sample_server/12a34b/12a34b/page90/fb406b265a779b43afa635bc8da79d81/item.json new file mode 100644 index 0000000000000000000000000000000000000000..ff735f5239259a8732af01f8a2fa172f7b5e0355 --- /dev/null +++ b/sample_server/12a34b/12a34b/page90/fb406b265a779b43afa635bc8da79d81/item.json @@ -0,0 +1,38 @@ +{ + "textapi": "1.0.0", + "title": [ + { + "title": "A Sample Item", + "type": "main" + }, + { + "title": "A Subtitle", + "type": "sub" + } + ], + "type": "section", + "n": "one", + "lang": [ + "fre", "aci" + ], + "langAlt": ["karshuni"], + "content": [ + { + "type": "text/html", + "url": "https://example.com/html-serialization-one.html" + }, + { + "type": "text/xml", + "url": "https://example.com/xml-serialization-two.xml" + } + ], + "description": "This is Section one of the Sample Manifest", + "image": { + "id": "https://example.com/image.png", + "license": { + "id": "CC-BY-4.0" + } + }, + "annotationCollection": "https://example.com/one/annotationCollection.json" + } + \ No newline at end of file diff --git a/sample_server/12a34b/Othello/3x_2/1/item.json b/sample_server/12a34b/Othello/3x_2/1/item.json new file mode 100644 index 0000000000000000000000000000000000000000..ff735f5239259a8732af01f8a2fa172f7b5e0355 --- /dev/null +++ b/sample_server/12a34b/Othello/3x_2/1/item.json @@ -0,0 +1,38 @@ +{ + "textapi": "1.0.0", + "title": [ + { + "title": "A Sample Item", + "type": "main" + }, + { + "title": "A Subtitle", + "type": "sub" + } + ], + "type": "section", + "n": "one", + "lang": [ + "fre", "aci" + ], + "langAlt": ["karshuni"], + "content": [ + { + "type": "text/html", + "url": "https://example.com/html-serialization-one.html" + }, + { + "type": "text/xml", + "url": "https://example.com/xml-serialization-two.xml" + } + ], + "description": "This is Section one of the Sample Manifest", + "image": { + "id": "https://example.com/image.png", + "license": { + "id": "CC-BY-4.0" + } + }, + "annotationCollection": "https://example.com/one/annotationCollection.json" + } + \ No newline at end of file diff --git a/sample_server/12a34b/Othello/3x_2/fb406b265a779b43afa635bc8da79d81/item.json b/sample_server/12a34b/Othello/3x_2/fb406b265a779b43afa635bc8da79d81/item.json new file mode 100644 index 0000000000000000000000000000000000000000..ff735f5239259a8732af01f8a2fa172f7b5e0355 --- /dev/null +++ b/sample_server/12a34b/Othello/3x_2/fb406b265a779b43afa635bc8da79d81/item.json @@ -0,0 +1,38 @@ +{ + "textapi": "1.0.0", + "title": [ + { + "title": "A Sample Item", + "type": "main" + }, + { + "title": "A Subtitle", + "type": "sub" + } + ], + "type": "section", + "n": "one", + "lang": [ + "fre", "aci" + ], + "langAlt": ["karshuni"], + "content": [ + { + "type": "text/html", + "url": "https://example.com/html-serialization-one.html" + }, + { + "type": "text/xml", + "url": "https://example.com/xml-serialization-two.xml" + } + ], + "description": "This is Section one of the Sample Manifest", + "image": { + "id": "https://example.com/image.png", + "license": { + "id": "CC-BY-4.0" + } + }, + "annotationCollection": "https://example.com/one/annotationCollection.json" + } + \ No newline at end of file diff --git a/sample_server/12a34b/Othello/manifest.json b/sample_server/12a34b/Othello/manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..e3bf33f45e53548faf92a28cd27291d64a19ca18 --- /dev/null +++ b/sample_server/12a34b/Othello/manifest.json @@ -0,0 +1,87 @@ +{ + "textapi": "1.0.0", + "id": "https://subugoe.pages.gwdg.de/emo/text-api/sample_server/12a34b/Othello/manifest.json", + "label": "Sample Manifest", + "actor": [ + { + "role": ["developer"], + "name": "Jane Doe", + "id": "this_edition$jane_doe", + "idref": { + "base": "https://www.wikidata.org/wiki/", + "id": "Q56314893", + "type": "wikidata" + } + } + ], + "repository": [ + { + "baseUrl": "https://textgridrep.org/", + "id": "textgrid:12345", + "label": "TextGrid Repository", + "url": "https://textgrid.de" + } + ], + "image": { + "id": "https://example.com/myimage.png", + "license": { + "id": "WTFPL", + "notes": "open free libre" + } + }, + + "support": [ + { + "type": "css", + "mime": "text/css", + "url": "https://example.com/resources/mystyle.css" + } + ], + "license": [ + {"id": "CC-BY-SA-4.0"} + ], + "description": "This is a sample manifest. URLs are not meant to be resolved.", + "annotationCollection": "https://example.com/anotherAnnotationCollection.json", + "sequence": [ + { + "id": "https://subugoe.pages.gwdg.de/emo/text-api/sample_server/12a34b/Othello/3x_2/fb406b265a779b43afa635bc8da79d81/item.json", + "type": "item" + }, + { + "id": "https://subugoe.pages.gwdg.de/emo/text-api/sample_server/12a34b/Othello/3x_2/1/item.json", + "type": "item" + }, + { + "id": "https://subugoe.pages.gwdg.de/emo/text-api/sample_server/12a34b/Othello/page90/fb406b265a779b43afa635bc8da79d81/item.json", + "type": "item" + }, + { + "id": "https://subugoe.pages.gwdg.de/emo/text-api/sample_server/12a34b/Othello/page90/1/item.json", + "type": "item" + } + ], + "metadata": [ + { + "key": "my key", + "value": "my value" + }, + { + "key": "a list", + "value": "test", + "metadata": [ + { + "key": "list key one", + "value": "the bullet point" + }, + { + "key": "list key 2", + "value": "another bullet point" + } + ] + } + ], + "x-somekey": 42, + "x-custom-thing": "untyped additional property (xeno data)" + + } + \ No newline at end of file diff --git a/sample_server/12a34b/Othello/page90/1/item.json b/sample_server/12a34b/Othello/page90/1/item.json new file mode 100644 index 0000000000000000000000000000000000000000..ff735f5239259a8732af01f8a2fa172f7b5e0355 --- /dev/null +++ b/sample_server/12a34b/Othello/page90/1/item.json @@ -0,0 +1,38 @@ +{ + "textapi": "1.0.0", + "title": [ + { + "title": "A Sample Item", + "type": "main" + }, + { + "title": "A Subtitle", + "type": "sub" + } + ], + "type": "section", + "n": "one", + "lang": [ + "fre", "aci" + ], + "langAlt": ["karshuni"], + "content": [ + { + "type": "text/html", + "url": "https://example.com/html-serialization-one.html" + }, + { + "type": "text/xml", + "url": "https://example.com/xml-serialization-two.xml" + } + ], + "description": "This is Section one of the Sample Manifest", + "image": { + "id": "https://example.com/image.png", + "license": { + "id": "CC-BY-4.0" + } + }, + "annotationCollection": "https://example.com/one/annotationCollection.json" + } + \ No newline at end of file diff --git a/sample_server/12a34b/Othello/page90/fb406b265a779b43afa635bc8da79d81/item.json b/sample_server/12a34b/Othello/page90/fb406b265a779b43afa635bc8da79d81/item.json new file mode 100644 index 0000000000000000000000000000000000000000..ff735f5239259a8732af01f8a2fa172f7b5e0355 --- /dev/null +++ b/sample_server/12a34b/Othello/page90/fb406b265a779b43afa635bc8da79d81/item.json @@ -0,0 +1,38 @@ +{ + "textapi": "1.0.0", + "title": [ + { + "title": "A Sample Item", + "type": "main" + }, + { + "title": "A Subtitle", + "type": "sub" + } + ], + "type": "section", + "n": "one", + "lang": [ + "fre", "aci" + ], + "langAlt": ["karshuni"], + "content": [ + { + "type": "text/html", + "url": "https://example.com/html-serialization-one.html" + }, + { + "type": "text/xml", + "url": "https://example.com/xml-serialization-two.xml" + } + ], + "description": "This is Section one of the Sample Manifest", + "image": { + "id": "https://example.com/image.png", + "license": { + "id": "CC-BY-4.0" + } + }, + "annotationCollection": "https://example.com/one/annotationCollection.json" + } + \ No newline at end of file diff --git a/sample_server/12a34b/collection.json b/sample_server/12a34b/collection.json new file mode 100644 index 0000000000000000000000000000000000000000..296824cbd7f8df5a8cc4b09994954e31915dcdab --- /dev/null +++ b/sample_server/12a34b/collection.json @@ -0,0 +1,30 @@ +{ + "textapi": "1.0.0", + "title": [ + { + "title": "Shakespeares Works", + "type": "main" + } + ], + "collector": [ + { + "name": "Hans Wurst", + "role": [ + "collector" + ] + } + ], + "description": "This is the sample collection.", + "sequence": [ + { + "id": "https://subugoe.pages.gwdg.de/emo/text-api/sample_server/12a34b/Othello/manifest.json", + "type": "manifest" + }, + { + "id": "https://subugoe.pages.gwdg.de/emo/text-api/sample_server/12a34b/12a34b/manifest.json", + "type": "manifest" + } + ], + "annotationCollection": "https://example.com/annotationCollection.json" + } + \ No newline at end of file diff --git a/sample_server/ShakespearesWorks/12a34b/3x_2/1/item.json b/sample_server/ShakespearesWorks/12a34b/3x_2/1/item.json new file mode 100644 index 0000000000000000000000000000000000000000..ff735f5239259a8732af01f8a2fa172f7b5e0355 --- /dev/null +++ b/sample_server/ShakespearesWorks/12a34b/3x_2/1/item.json @@ -0,0 +1,38 @@ +{ + "textapi": "1.0.0", + "title": [ + { + "title": "A Sample Item", + "type": "main" + }, + { + "title": "A Subtitle", + "type": "sub" + } + ], + "type": "section", + "n": "one", + "lang": [ + "fre", "aci" + ], + "langAlt": ["karshuni"], + "content": [ + { + "type": "text/html", + "url": "https://example.com/html-serialization-one.html" + }, + { + "type": "text/xml", + "url": "https://example.com/xml-serialization-two.xml" + } + ], + "description": "This is Section one of the Sample Manifest", + "image": { + "id": "https://example.com/image.png", + "license": { + "id": "CC-BY-4.0" + } + }, + "annotationCollection": "https://example.com/one/annotationCollection.json" + } + \ No newline at end of file diff --git a/sample_server/ShakespearesWorks/12a34b/3x_2/fb406b265a779b43afa635bc8da79d81/item.json b/sample_server/ShakespearesWorks/12a34b/3x_2/fb406b265a779b43afa635bc8da79d81/item.json new file mode 100644 index 0000000000000000000000000000000000000000..ff735f5239259a8732af01f8a2fa172f7b5e0355 --- /dev/null +++ b/sample_server/ShakespearesWorks/12a34b/3x_2/fb406b265a779b43afa635bc8da79d81/item.json @@ -0,0 +1,38 @@ +{ + "textapi": "1.0.0", + "title": [ + { + "title": "A Sample Item", + "type": "main" + }, + { + "title": "A Subtitle", + "type": "sub" + } + ], + "type": "section", + "n": "one", + "lang": [ + "fre", "aci" + ], + "langAlt": ["karshuni"], + "content": [ + { + "type": "text/html", + "url": "https://example.com/html-serialization-one.html" + }, + { + "type": "text/xml", + "url": "https://example.com/xml-serialization-two.xml" + } + ], + "description": "This is Section one of the Sample Manifest", + "image": { + "id": "https://example.com/image.png", + "license": { + "id": "CC-BY-4.0" + } + }, + "annotationCollection": "https://example.com/one/annotationCollection.json" + } + \ No newline at end of file diff --git a/sample_server/ShakespearesWorks/12a34b/manifest.json b/sample_server/ShakespearesWorks/12a34b/manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..5239d404f2177c0578bc1c8625a706ebeaa691aa --- /dev/null +++ b/sample_server/ShakespearesWorks/12a34b/manifest.json @@ -0,0 +1,87 @@ +{ + "textapi": "1.0.0", + "id": "https://subugoe.pages.gwdg.de/emo/text-api/sample_server/ShakespearesWorks/12a34b/manifest.json", + "label": "Sample Manifest", + "actor": [ + { + "role": ["developer"], + "name": "Jane Doe", + "id": "this_edition$jane_doe", + "idref": { + "base": "https://www.wikidata.org/wiki/", + "id": "Q56314893", + "type": "wikidata" + } + } + ], + "repository": [ + { + "baseUrl": "https://textgridrep.org/", + "id": "textgrid:12345", + "label": "TextGrid Repository", + "url": "https://textgrid.de" + } + ], + "image": { + "id": "https://example.com/myimage.png", + "license": { + "id": "WTFPL", + "notes": "open free libre" + } + }, + + "support": [ + { + "type": "css", + "mime": "text/css", + "url": "https://example.com/resources/mystyle.css" + } + ], + "license": [ + {"id": "CC-BY-SA-4.0"} + ], + "description": "This is a sample manifest. URLs are not meant to be resolved.", + "annotationCollection": "https://example.com/anotherAnnotationCollection.json", + "sequence": [ + { + "id": "https://subugoe.pages.gwdg.de/emo/text-api/sample_server/ShakespearesWorks/12a34b/3x_2/fb406b265a779b43afa635bc8da79d81/item.json", + "type": "item" + }, + { + "id": "https://subugoe.pages.gwdg.de/emo/text-api/sample_server/ShakespearesWorks/12a34b/3x_2/1/item.json", + "type": "item" + }, + { + "id": "https://subugoe.pages.gwdg.de/emo/text-api/sample_server/ShakespearesWorks/12a34b/page90/fb406b265a779b43afa635bc8da79d81/item.json", + "type": "item" + }, + { + "id": "https://subugoe.pages.gwdg.de/emo/text-api/sample_server/ShakespearesWorks/12a34b/page90/1/item.json", + "type": "item" + } + ], + "metadata": [ + { + "key": "my key", + "value": "my value" + }, + { + "key": "a list", + "value": "test", + "metadata": [ + { + "key": "list key one", + "value": "the bullet point" + }, + { + "key": "list key 2", + "value": "another bullet point" + } + ] + } + ], + "x-somekey": 42, + "x-custom-thing": "untyped additional property (xeno data)" + + } + \ No newline at end of file diff --git a/sample_server/ShakespearesWorks/12a34b/page90/1/item.json b/sample_server/ShakespearesWorks/12a34b/page90/1/item.json new file mode 100644 index 0000000000000000000000000000000000000000..ff735f5239259a8732af01f8a2fa172f7b5e0355 --- /dev/null +++ b/sample_server/ShakespearesWorks/12a34b/page90/1/item.json @@ -0,0 +1,38 @@ +{ + "textapi": "1.0.0", + "title": [ + { + "title": "A Sample Item", + "type": "main" + }, + { + "title": "A Subtitle", + "type": "sub" + } + ], + "type": "section", + "n": "one", + "lang": [ + "fre", "aci" + ], + "langAlt": ["karshuni"], + "content": [ + { + "type": "text/html", + "url": "https://example.com/html-serialization-one.html" + }, + { + "type": "text/xml", + "url": "https://example.com/xml-serialization-two.xml" + } + ], + "description": "This is Section one of the Sample Manifest", + "image": { + "id": "https://example.com/image.png", + "license": { + "id": "CC-BY-4.0" + } + }, + "annotationCollection": "https://example.com/one/annotationCollection.json" + } + \ No newline at end of file diff --git a/sample_server/ShakespearesWorks/12a34b/page90/fb406b265a779b43afa635bc8da79d81/item.json b/sample_server/ShakespearesWorks/12a34b/page90/fb406b265a779b43afa635bc8da79d81/item.json new file mode 100644 index 0000000000000000000000000000000000000000..ff735f5239259a8732af01f8a2fa172f7b5e0355 --- /dev/null +++ b/sample_server/ShakespearesWorks/12a34b/page90/fb406b265a779b43afa635bc8da79d81/item.json @@ -0,0 +1,38 @@ +{ + "textapi": "1.0.0", + "title": [ + { + "title": "A Sample Item", + "type": "main" + }, + { + "title": "A Subtitle", + "type": "sub" + } + ], + "type": "section", + "n": "one", + "lang": [ + "fre", "aci" + ], + "langAlt": ["karshuni"], + "content": [ + { + "type": "text/html", + "url": "https://example.com/html-serialization-one.html" + }, + { + "type": "text/xml", + "url": "https://example.com/xml-serialization-two.xml" + } + ], + "description": "This is Section one of the Sample Manifest", + "image": { + "id": "https://example.com/image.png", + "license": { + "id": "CC-BY-4.0" + } + }, + "annotationCollection": "https://example.com/one/annotationCollection.json" + } + \ No newline at end of file diff --git a/sample_server/ShakespearesWorks/Othello/3x_2/1/item.json b/sample_server/ShakespearesWorks/Othello/3x_2/1/item.json new file mode 100644 index 0000000000000000000000000000000000000000..ff735f5239259a8732af01f8a2fa172f7b5e0355 --- /dev/null +++ b/sample_server/ShakespearesWorks/Othello/3x_2/1/item.json @@ -0,0 +1,38 @@ +{ + "textapi": "1.0.0", + "title": [ + { + "title": "A Sample Item", + "type": "main" + }, + { + "title": "A Subtitle", + "type": "sub" + } + ], + "type": "section", + "n": "one", + "lang": [ + "fre", "aci" + ], + "langAlt": ["karshuni"], + "content": [ + { + "type": "text/html", + "url": "https://example.com/html-serialization-one.html" + }, + { + "type": "text/xml", + "url": "https://example.com/xml-serialization-two.xml" + } + ], + "description": "This is Section one of the Sample Manifest", + "image": { + "id": "https://example.com/image.png", + "license": { + "id": "CC-BY-4.0" + } + }, + "annotationCollection": "https://example.com/one/annotationCollection.json" + } + \ No newline at end of file diff --git a/sample_server/ShakespearesWorks/Othello/3x_2/fb406b265a779b43afa635bc8da79d81/item.json b/sample_server/ShakespearesWorks/Othello/3x_2/fb406b265a779b43afa635bc8da79d81/item.json new file mode 100644 index 0000000000000000000000000000000000000000..ff735f5239259a8732af01f8a2fa172f7b5e0355 --- /dev/null +++ b/sample_server/ShakespearesWorks/Othello/3x_2/fb406b265a779b43afa635bc8da79d81/item.json @@ -0,0 +1,38 @@ +{ + "textapi": "1.0.0", + "title": [ + { + "title": "A Sample Item", + "type": "main" + }, + { + "title": "A Subtitle", + "type": "sub" + } + ], + "type": "section", + "n": "one", + "lang": [ + "fre", "aci" + ], + "langAlt": ["karshuni"], + "content": [ + { + "type": "text/html", + "url": "https://example.com/html-serialization-one.html" + }, + { + "type": "text/xml", + "url": "https://example.com/xml-serialization-two.xml" + } + ], + "description": "This is Section one of the Sample Manifest", + "image": { + "id": "https://example.com/image.png", + "license": { + "id": "CC-BY-4.0" + } + }, + "annotationCollection": "https://example.com/one/annotationCollection.json" + } + \ No newline at end of file diff --git a/sample_server/ShakespearesWorks/Othello/manifest.json b/sample_server/ShakespearesWorks/Othello/manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..733b799f87caea91ed0fb2fdd6767b2da8a5791d --- /dev/null +++ b/sample_server/ShakespearesWorks/Othello/manifest.json @@ -0,0 +1,87 @@ +{ + "textapi": "1.0.0", + "id": "https://subugoe.pages.gwdg.de/emo/text-api/sample_server/ShakespearesWorks/Othello/manifest.json", + "label": "Sample Manifest", + "actor": [ + { + "role": ["developer"], + "name": "Jane Doe", + "id": "this_edition$jane_doe", + "idref": { + "base": "https://www.wikidata.org/wiki/", + "id": "Q56314893", + "type": "wikidata" + } + } + ], + "repository": [ + { + "baseUrl": "https://textgridrep.org/", + "id": "textgrid:12345", + "label": "TextGrid Repository", + "url": "https://textgrid.de" + } + ], + "image": { + "id": "https://example.com/myimage.png", + "license": { + "id": "WTFPL", + "notes": "open free libre" + } + }, + + "support": [ + { + "type": "css", + "mime": "text/css", + "url": "https://example.com/resources/mystyle.css" + } + ], + "license": [ + {"id": "CC-BY-SA-4.0"} + ], + "description": "This is a sample manifest. URLs are not meant to be resolved.", + "annotationCollection": "https://example.com/anotherAnnotationCollection.json", + "sequence": [ + { + "id": "https://subugoe.pages.gwdg.de/emo/text-api/sample_server/ShakespearesWorks/Othello/3x_2/fb406b265a779b43afa635bc8da79d81/item.json", + "type": "item" + }, + { + "id": "https://subugoe.pages.gwdg.de/emo/text-api/sample_server/ShakespearesWorks/Othello/3x_2/1/item.json", + "type": "item" + }, + { + "id": "https://subugoe.pages.gwdg.de/emo/text-api/sample_server/ShakespearesWorks/Othello/page90/fb406b265a779b43afa635bc8da79d81/item.json", + "type": "item" + }, + { + "id": "https://subugoe.pages.gwdg.de/emo/text-api/sample_server/ShakespearesWorks/Othello/page90/1/item.json", + "type": "item" + } + ], + "metadata": [ + { + "key": "my key", + "value": "my value" + }, + { + "key": "a list", + "value": "test", + "metadata": [ + { + "key": "list key one", + "value": "the bullet point" + }, + { + "key": "list key 2", + "value": "another bullet point" + } + ] + } + ], + "x-somekey": 42, + "x-custom-thing": "untyped additional property (xeno data)" + + } + \ No newline at end of file diff --git a/sample_server/ShakespearesWorks/Othello/page90/1/item.json b/sample_server/ShakespearesWorks/Othello/page90/1/item.json new file mode 100644 index 0000000000000000000000000000000000000000..ff735f5239259a8732af01f8a2fa172f7b5e0355 --- /dev/null +++ b/sample_server/ShakespearesWorks/Othello/page90/1/item.json @@ -0,0 +1,38 @@ +{ + "textapi": "1.0.0", + "title": [ + { + "title": "A Sample Item", + "type": "main" + }, + { + "title": "A Subtitle", + "type": "sub" + } + ], + "type": "section", + "n": "one", + "lang": [ + "fre", "aci" + ], + "langAlt": ["karshuni"], + "content": [ + { + "type": "text/html", + "url": "https://example.com/html-serialization-one.html" + }, + { + "type": "text/xml", + "url": "https://example.com/xml-serialization-two.xml" + } + ], + "description": "This is Section one of the Sample Manifest", + "image": { + "id": "https://example.com/image.png", + "license": { + "id": "CC-BY-4.0" + } + }, + "annotationCollection": "https://example.com/one/annotationCollection.json" + } + \ No newline at end of file diff --git a/sample_server/ShakespearesWorks/Othello/page90/fb406b265a779b43afa635bc8da79d81/item.json b/sample_server/ShakespearesWorks/Othello/page90/fb406b265a779b43afa635bc8da79d81/item.json new file mode 100644 index 0000000000000000000000000000000000000000..ff735f5239259a8732af01f8a2fa172f7b5e0355 --- /dev/null +++ b/sample_server/ShakespearesWorks/Othello/page90/fb406b265a779b43afa635bc8da79d81/item.json @@ -0,0 +1,38 @@ +{ + "textapi": "1.0.0", + "title": [ + { + "title": "A Sample Item", + "type": "main" + }, + { + "title": "A Subtitle", + "type": "sub" + } + ], + "type": "section", + "n": "one", + "lang": [ + "fre", "aci" + ], + "langAlt": ["karshuni"], + "content": [ + { + "type": "text/html", + "url": "https://example.com/html-serialization-one.html" + }, + { + "type": "text/xml", + "url": "https://example.com/xml-serialization-two.xml" + } + ], + "description": "This is Section one of the Sample Manifest", + "image": { + "id": "https://example.com/image.png", + "license": { + "id": "CC-BY-4.0" + } + }, + "annotationCollection": "https://example.com/one/annotationCollection.json" + } + \ No newline at end of file diff --git a/sample_server/ShakespearesWorks/collection.json b/sample_server/ShakespearesWorks/collection.json new file mode 100644 index 0000000000000000000000000000000000000000..464e2baf377090076c19e960af70499c003cc168 --- /dev/null +++ b/sample_server/ShakespearesWorks/collection.json @@ -0,0 +1,30 @@ +{ + "textapi": "1.0.0", + "title": [ + { + "title": "Shakespeares Works", + "type": "main" + } + ], + "collector": [ + { + "name": "Hans Wurst", + "role": [ + "collector" + ] + } + ], + "description": "This is the sample collection.", + "sequence": [ + { + "id": "https://subugoe.pages.gwdg.de/emo/text-api/sample_server/ShakespearesWorks/Othello/manifest.json", + "type": "manifest" + }, + { + "id": "https://subugoe.pages.gwdg.de/emo/text-api/sample_server/ShakespearesWorks/12a34b/manifest.json", + "type": "manifest" + } + ], + "annotationCollection": "https://example.com/annotationCollection.json" + } + \ No newline at end of file diff --git a/themes/beautifulhugo/i18n/en.yaml b/themes/beautifulhugo/i18n/en.yaml index 64c2f7ba4d44aa35e21990531403bb689a3a4bc3..56f76bc736c81b8ccea27b0548ae444d0076ff56 100644 --- a/themes/beautifulhugo/i18n/en.yaml +++ b/themes/beautifulhugo/i18n/en.yaml @@ -1,8 +1,6 @@ # Content - id: dateFormat translation: "January 2, 2006" -- id: postedOnDate - translation: "Posted on {{ .Count }}" - id: translationsLabel translation: "Other languages: " - id: translationsSeparator @@ -24,7 +22,7 @@ # Footer - id: poweredBy # Accepts HTML - translation: 'Hugo v{{ .Hugo.Version }} powered  •  Theme by Beautiful Jekyll adapted to Beautiful Hugo' + translation: 'Hugo powered  •  Theme by Beautiful Jekyll adapted to Beautiful Hugo' # Navigation - id: toggleNavigation diff --git a/themes/beautifulhugo/layouts/_default/list.html b/themes/beautifulhugo/layouts/_default/list.html index e9f4c65f201601d1e4d8e2fd401925bad860c164..5647d099f12153caf3074b27d493a3e6e975f035 100644 --- a/themes/beautifulhugo/layouts/_default/list.html +++ b/themes/beautifulhugo/layouts/_default/list.html @@ -59,20 +59,6 @@ {{ end }} - {{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }} - - {{ end }} diff --git a/themes/beautifulhugo/layouts/partials/head.html b/themes/beautifulhugo/layouts/partials/head.html index fd0b8a0c28fac7daa6a6daf5c9a971be3032b881..6cde58552c1b9cb3b76f2f95d8af076a5017fc49 100644 --- a/themes/beautifulhugo/layouts/partials/head.html +++ b/themes/beautifulhugo/layouts/partials/head.html @@ -30,13 +30,9 @@ {{- with .Site.Params.fb_app_id }} {{- end }} - - - {{ .Hugo.Generator -}} -