Skip to content

Commit

Permalink
Update the basemaps-mkdocs container using swagger ui plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Wentao-Kuang committed Nov 22, 2023
1 parent c191e4b commit 1c757b3
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Build docs
run: |
cp packages/landing/node_modules/@linzjs/lui/dist/assets/images/linz-motif.svg docs/
docker run --rm -v ${PWD}:/docs squidfunk/mkdocs-material:9.4 build
docker run --rm -v ${PWD}:/docs ghcr.io/linz/basemaps-mkdocs:v1 build
- name: Store docs artifact
uses: actions/upload-artifact@v3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ The LINZ Basemaps API lets you build your own New Zealand-centric maps for mobil

We've made getting started with LINZ Basemaps APIs easy.

1. Pick a [LINZ Basemaps product](https://basemaps.linz.govt.nz/@-41.8899962,174.0492437,z5).
1. Pick a [LINZ Basemaps product](https://basemaps.linz.govt.nz/).
2. Grab a map tile API url from the menu bar.
3. If you're a developer, email <[email protected]> for developer access
4. Find the [Technical documentation](./technical-documentation.md), legals and how to's that will help you get mapping successfully.
4. Find the [Technical documentation](./technical-documentation.md) and [API documentation](./api-documentation.md), legals and how to's that will help you get mapping successfully.

## Basics of our APIs

Expand Down
5 changes: 5 additions & 0 deletions docs/user-guide/api-documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# API documentation

This page provide examples of Basemaps APIs that allow you to programmatically access LINZ map tile services to integrate into your mobile, web.

<swagger-ui src="./swagger-api.json"/>
18 changes: 0 additions & 18 deletions docs/user-guide/guide-api.md

This file was deleted.

12 changes: 0 additions & 12 deletions docs/user-guide/api.json → docs/user-guide/swagger-api.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
{
"openapi": "3.0.3",
"info": {
"title": "LINZ BASEMAPS APIs",
"description": "LINZ Basemaps APIs allow you to programmatically access LINZ map tile services to integrate into your mobile, web",
"contact": {
"email": "[email protected]"
},
"license": {
"name": "MIT License",
"url": "https://github.com/linz/basemaps/blob/master/LICENSE"
},
"version": "1.0.11"
},
"servers": [
{
"url": "https://basemaps.linz.govt.nz/v1"
Expand Down
4 changes: 2 additions & 2 deletions docs/user-guide/technical-documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ At a platform level, the LINZ Basemaps APIs supports:
| **Protocols** | WMTS and XYZ |
| **Output tiling scheme** | NZTM2000 and Web Mercator |
| **Zoom levels** | NZTM 0 - 17 and Web Mercator 0 - 22 |
| **Output formats** | WebP, Jpeg or PNG |
| **Output formats** | WebP, Jpeg, PNG, or Avif |
| **Applications** | GIS (e.g QGIS, ArcGIS), CAD and Javascript web or mobile apps |

### LINZ Topographic Basemap
Expand Down Expand Up @@ -108,7 +108,7 @@ Authentication is managed via API key for Developer level access. Developers do

## Aerial Imagery output format

You can request raster tiles in WebP, PNG or JPEG format.
You can request raster tiles in WebP, PNG, JPEG, or Avif format.

Our recommended output format is WebP as it allows the quality of images to be maintained with relatively small file sizes and supports an alpha channel for transparency. This is also the default format in the XYZ URL you can copy from https://basemaps.linz.govt.nz

Expand Down
5 changes: 4 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,7 @@ markdown_extensions:
extra:
analytics:
provider: google
property: !ENV [GOOGLE_ANALYTICS]
property: !ENV [GOOGLE_ANALYTICS]

plugins:
- swagger-ui-tag

0 comments on commit 1c757b3

Please sign in to comment.