Skip to content

Commit 45dee5e

Browse files
authored
Merge pull request #33 from RWS/hideTryIt
Hide TryIt section
2 parents 0fea638 + 4c9cf1e commit 45dee5e

File tree

7 files changed

+96
-65
lines changed

7 files changed

+96
-65
lines changed
Lines changed: 68 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,77 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8" />
5-
<title>Extensibility API Documentation</title>
6-
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
73

8-
<link rel="stylesheet" href="https://unpkg.com/@stoplight/elements/styles.min.css" />
9-
<script src="https://unpkg.com/@stoplight/elements/web-components.min.js"></script>
4+
<head>
5+
<meta charset="UTF-8" />
6+
<title>Extensibility API Documentation</title>
7+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
108

11-
<style>
12-
body {
13-
display: flex;
14-
flex-direction: column;
15-
height: 100vh;
16-
margin: 0;
17-
padding-top: 55px; /* ensures content below fixed header */
18-
}
19-
.api-container {
20-
flex: 1 0 0;
21-
overflow: visible;
22-
}
23-
elements-api {
24-
height: calc(100vh - 55px);
25-
}
9+
<link rel="stylesheet" href="https://unpkg.com/@stoplight/elements/styles.min.css" />
10+
<script src="https://unpkg.com/@stoplight/elements/web-components.min.js"></script>
2611

27-
.header-bar {
28-
position: fixed;
29-
top: 0;
30-
left: 0;
31-
right: 0;
32-
background-color: #006666;
33-
color: white;
34-
font-family: Arial, sans-serif;
35-
padding: 10px 15px;
36-
display: flex;
37-
align-items: center;
38-
box-shadow: 0 2px 3px rgba(0,0,0,.15);
39-
z-index: 999;
40-
}
12+
<style>
13+
body {
14+
display: flex;
15+
flex-direction: column;
16+
height: 100vh;
17+
margin: 0;
18+
padding-top: 55px;
19+
/* ensures content below fixed header */
20+
}
4121

42-
.header-bar a {
43-
color: white;
44-
text-decoration: none;
45-
font-size: 12px;
46-
padding: 6px 12px;
47-
border-radius: 5px;
48-
background-color: rgba(255,255,255,0.15);
49-
transition: background-color 0.2s;
50-
}
22+
.api-container {
23+
flex: 1 0 0;
24+
overflow: visible;
25+
}
5126

52-
.header-bar a:hover {
53-
background-color: rgba(255,255,255,0.3);
54-
}
55-
</style>
56-
</head>
57-
<body>
58-
<div class="header-bar">
59-
<a href="Extensibility-API.v1.html">← Back to Documentation</a>
60-
</div>
27+
elements-api {
28+
height: calc(100vh - 55px);
29+
}
30+
31+
.header-bar {
32+
position: fixed;
33+
top: 0;
34+
left: 0;
35+
right: 0;
36+
background-color: white;
37+
color: white;
38+
font-family: Arial, sans-serif;
39+
padding: 10px 15px;
40+
display: flex;
41+
align-items: center;
42+
box-shadow: 0 2px 3px rgba(0, 0, 0, .15);
43+
z-index: 999;
44+
}
45+
46+
.header-bar a {
47+
color: white;
48+
background-color: #6f45d9;
49+
text-decoration: none;
50+
font-size: 12px;
51+
padding: 6px 12px;
52+
border-radius: 5px;
53+
transition: background-color 0.2s;
54+
}
55+
56+
.header-bar a:hover {
57+
background-color: #6f45d9;
58+
}
59+
</style>
60+
</head>
61+
62+
<body>
63+
<div class="header-bar">
64+
<a href="Extensibility-API.v1.html">← Back to Documentation</a>
65+
</div>
66+
67+
<elements-api id="docs" router="hash" layout="sidebar" hideTryIt="true"></elements-api>
68+
<script>
69+
(async () => {
70+
const docs = document.getElementById('docs');
71+
const text = await fetch('Extensibility-API.v1.json').then(res => res.text())
72+
docs.apiDescriptionDocument = text;
73+
})();
74+
</script>
75+
</body>
6176

62-
<elements-api id="docs" router="hash" layout="sidebar" hideTryIt="true"></elements-api>
63-
<script>
64-
(async () => {
65-
const docs = document.getElementById('docs');
66-
const text = await fetch('Extensibility-API.v1.json').then(res => res.text())
67-
docs.apiDescriptionDocument = text;
68-
})();
69-
</script>
70-
</body>
7177
</html>

articles/Extensibility/api/Extensibility-API.v1.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@ _disableToc: false
77
---
88

99
<div style="margin-bottom:15px;padding:10px;border-bottom:1px dashed #ccc;">
10-
<a href="Extensibility-API.v1-fv.html" style="display:inline-block;padding: 8px 15px; background-color: #006666; color: white; text-decoration: none; border-radius: 5px;margin-bottom:10px;">
10+
<a href="Extensibility-API.v1-fv.html" style="display:inline-block;padding: 8px 15px; background-color: #6f45d9; color: white; text-decoration: none; border-radius: 5px;margin-bottom:10px;">
1111
⤢ View Documentation Fullscreen
1212
</a>
13+
<div style="font-size: 12px; color: #666; margin-top: 5px;">
14+
<em>API examples are only available when viewing in full-screen mode.</em>
15+
</div>
1316
</div>
1417

1518
<div id="stoplight-api-container" style="margin-top:20px;"></div>
@@ -20,4 +23,6 @@ _disableToc: false
2023
apiDescriptionUrl="Extensibility-API.v1.json"
2124
router="memory"
2225
layout="stacked"
26+
hideTryIt="true"
27+
hideTryItPanel="true"
2328
></elements-api>

articles/Extensibility/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,4 @@
103103
- name: APIs
104104
items:
105105
- name: Extensibility API
106-
href: api/Extensibility-API.v1-fv.html
106+
href: api/Extensibility-API.v1.md

articles/LCPublicAPI/api/Data-Bridge-API.v1.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ _disableToc: false
1010
<a href="Data-Bridge-API.v1-fv.html" style="display:inline-block;padding: 8px 15px; background-color: #6f45d9; color: white; text-decoration: none; border-radius: 5px;margin-bottom:10px;">
1111
⤢ View Documentation Fullscreen
1212
</a>
13+
<div style="font-size: 12px; color: #666; margin-top: 5px;">
14+
<em>API examples are only available when viewing in full-screen mode.</em>
15+
</div>
1316
</div>
1417

1518
<div id="stoplight-api-container" style="margin-top:20px;"></div>
@@ -20,4 +23,6 @@ _disableToc: false
2023
apiDescriptionUrl="Data-Bridge-API.v1.json"
2124
router="memory"
2225
layout="stacked"
26+
hideTryIt="true"
27+
hideTryItPanel="true"
2328
></elements-api>

articles/LCPublicAPI/api/Global-Public-API.v1.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ _disableToc: false
1010
<a href="Global-Public-API.v1-fv.html" style="display:inline-block;padding: 8px 15px; background-color: #6f45d9; color: white; text-decoration: none; border-radius: 5px;margin-bottom:10px;">
1111
⤢ View Documentation Fullscreen
1212
</a>
13+
<div style="font-size: 12px; color: #666; margin-top: 5px;">
14+
<em>API examples are only available when viewing in full-screen mode.</em>
15+
</div>
1316
</div>
1417

1518
<div id="stoplight-api-container" style="margin-top:20px;"></div>
@@ -20,4 +23,6 @@ _disableToc: false
2023
apiDescriptionUrl="Global-Public-API.v1.json"
2124
router="memory"
2225
layout="stacked"
26+
hideTryIt="true"
27+
hideTryItPanel="true"
2328
></elements-api>

articles/LCPublicAPI/api/Public-API.v1.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ _disableToc: false
1010
<a href="Public-API.v1-fv.html" style="display:inline-block;padding: 8px 15px; background-color: #6f45d9; color: white; text-decoration: none; border-radius: 5px;margin-bottom:10px;">
1111
⤢ View Documentation Fullscreen
1212
</a>
13+
<div style="font-size: 12px; color: #666; margin-top: 5px;">
14+
<em>API examples are only available when viewing in full-screen mode.</em>
15+
</div>
1316
</div>
1417

1518
<div id="stoplight-api-container" style="margin-top:20px;"></div>
@@ -20,4 +23,6 @@ _disableToc: false
2023
apiDescriptionUrl="Public-API.v1.json"
2124
router="memory"
2225
layout="stacked"
26+
hideTryIt="true"
27+
hideTryItPanel="true"
2328
></elements-api>

articles/LCPublicAPI/api/Webhooks.v1.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ _disableToc: false
99
<div style="margin-bottom:15px;padding:10px;border-bottom:1px dashed #ccc;">
1010
<a href="Webhooks.v1-fv.html" style="display:inline-block;padding: 8px 15px; background-color: #6f45d9; color: white; text-decoration: none; border-radius: 5px;margin-bottom:10px;">
1111
⤢ View Documentation Fullscreen
12-
</a>
12+
</a>
13+
<div style="font-size: 12px; color: #666; margin-top: 5px;">
14+
<em>API examples are only available when viewing in full-screen mode.</em>
15+
</div>
1316
</div>
1417

1518
<div id="stoplight-api-container" style="margin-top:20px;"></div>
@@ -20,4 +23,6 @@ _disableToc: false
2023
apiDescriptionUrl="Webhooks.v1.json"
2124
router="memory"
2225
layout="stacked"
26+
hideTryIt="true"
27+
hideTryItPanel="true"
2328
></elements-api>

0 commit comments

Comments
 (0)