Skip to content

Commit 928bc1e

Browse files
authored
Merge pull request #212 from philvarner/root-html
#193 add an index to the 4 conformance classes
2 parents 5ab4856 + ec3f76e commit 928bc1e

File tree

3 files changed

+47
-26
lines changed

3 files changed

+47
-26
lines changed

.circleci/build-openapi.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@ for fin in $FNAMES; do
1010
fout=./build/$fin
1111
mkdir -p ${fout%/*}
1212
openapi bundle --ext yaml --output $fout $fin
13-
cp build/index.html ${fout%/*}/
13+
cp build/redoc_index.html ${fout%/*}/index.html
1414
done
1515

16-
cp build/core/openapi.yaml build/openapi.yaml
17-
1816
# use swagger-combine
1917
#swagger-combine build/swagger-config.yaml --continueOnConflictingPaths -o build/openapi.yaml
2018

build/index.html

Lines changed: 14 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,22 @@
22
<html>
33

44
<head>
5-
<title>STAC API</title>
6-
<!-- needed for adaptive design -->
7-
<meta charset="utf-8" />
8-
<meta name="viewport" content="width=device-width, initial-scale=1">
9-
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet">
10-
11-
<!--
12-
ReDoc doesn't change outer page styles
13-
-->
14-
<style>
15-
body {
16-
margin: 0;
17-
padding: 0;
18-
}
19-
</style>
5+
<title>STAC API</title>
6+
<!-- needed for adaptive design -->
7+
<meta charset="utf-8" />
8+
<meta name="viewport" content="width=device-width, initial-scale=1">
9+
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet">
2010
</head>
2111

2212
<body>
23-
<redoc
24-
spec-url='openapi.yaml'
25-
expandResponses='200,201,202,203,204'
26-
pathInMiddlePanel='true'
27-
hideDownloadButton='true'
28-
></redoc>
29-
<script src="https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js"> </script>
13+
<h1>STAC API</h1>
14+
<h2>Conformance Classes</h2>
15+
<ul>
16+
<li><a href="core/">Core</a></li>
17+
<li><a href="item-search/">Item Search</a></li>
18+
<li><a href="ogcapi-features/">STAC Features</a></li>
19+
<li><a href="collections/"></a>Collections</li>
20+
</ul>
3021
</body>
3122

32-
</html>
23+
</html>

build/redoc_index.html

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
<head>
5+
<title>STAC API</title>
6+
<!-- needed for adaptive design -->
7+
<meta charset="utf-8" />
8+
<meta name="viewport" content="width=device-width, initial-scale=1">
9+
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet">
10+
11+
<!--
12+
ReDoc doesn't change outer page styles
13+
-->
14+
<style>
15+
body {
16+
margin: 0;
17+
padding: 0;
18+
}
19+
</style>
20+
</head>
21+
22+
<body>
23+
<redoc
24+
spec-url='openapi.yaml'
25+
expandResponses='200,201,202,203,204'
26+
pathInMiddlePanel='true'
27+
hideDownloadButton='true'
28+
></redoc>
29+
<script src="https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js"> </script>
30+
</body>
31+
32+
</html>

0 commit comments

Comments
 (0)