Skip to content

Commit 5241b43

Browse files
committed
code sample structure
1 parent c03207f commit 5241b43

4 files changed

Lines changed: 11 additions & 17 deletions

File tree

dlcs-docs-client/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Code samples for IIIF-CS
2+
3+
1. Create an .env file with your settings, using the example in [example.env](example.env)
4+
2. Run the code samples for each documentation page. Some are split into multiple steps.

dlcs-docs-client/main.py

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/src/content/docs/api-doc/overview.mdx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,18 @@ sidebar:
55
order: 1
66
---
77

8-
import { Aside } from '@astrojs/starlight/components';
8+
import { Card, Aside } from '@astrojs/starlight/components';
99

1010
This section goes into more detail on the IIIF Cloud Platform API and the resources it operates on.
1111

1212
The API has been designed to support many types of usage, from simple ad hoc creation of IIIF resources to large scale asset delivery with tens of millions of assets. The API allows you to use IIIF Cloud Services as an application development platform - providing all the IIIF and asset delivery features you need to build custom applications and workflows.
1313

14+
<Card title="Sample code" icon="seti:python">
15+
Each page of the API documentation is accompanied by some sample Python code.<br/>
16+
The samples use some deliberately simple IIIF-CS Client helpers.<br/>
17+
The code for this overview page is <a href="https://github.com/dlcs/public-docs/blob/main/dlcs-docs-client/p01_overview/overview.py">here</a>.
18+
</Card>
19+
1420
## API hostname
1521

1622
The API is available on the `api.` subdomain of your platform instance. This documentation assumes the platform is available for public content at `https://dlcs.example` and therefore the root of the API throughout the documentation is at `https://api.dlcs.example`. Your instance of the platform may be on a different domain, e.g., `https://dlc.services` with the API at `https://api.dlc.services`.

0 commit comments

Comments
 (0)