File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -198,10 +198,36 @@ generate_html_content() {
198198 body {
199199 height: 100%;
200200 overflow: hidden;
201+ display: flex;
202+ flex-direction: column;
203+ }
204+
205+ #download-bar {
206+ background: #003399;
207+ color: #fff;
208+ padding: 6px 16px;
209+ display: flex;
210+ align-items: center;
211+ justify-content: space-between;
212+ flex-shrink: 0;
213+ font-size: 13px;
214+ }
215+
216+ #download-bar a {
217+ color: #fff;
218+ text-decoration: none;
219+ background: rgba(255,255,255,0.15);
220+ padding: 4px 12px;
221+ border-radius: 4px;
222+ font-size: 13px;
223+ }
224+
225+ #download-bar a:hover {
226+ background: rgba(255,255,255,0.25);
201227 }
202228
203229 #redoc-container {
204- height: 100vh ;
230+ flex: 1 ;
205231 overflow: auto;
206232 }
207233
@@ -214,6 +240,10 @@ generate_html_content() {
214240 </style>
215241</head>
216242<body>
243+ <div id="download-bar">
244+ <span>EURES Job Search API — OpenAPI 3.1.0 Specification</span>
245+ <a href="https://raw.githubusercontent.com/rorar/EURES-API-Documentation/main/openapi.yaml" download="openapi.yaml">Download openapi.yaml</a>
246+ </div>
217247 <div id="redoc-container"></div>
218248
219249 <script src="https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js"></script>
@@ -222,7 +252,7 @@ generate_html_content() {
222252 'openapi.yaml',
223253 {
224254 title: 'EURES Job Search API Documentation',
225- scrollYOffset: 0 ,
255+ scrollYOffset: 36 ,
226256 hideDownloadButton: false,
227257 expandResponses: '200',
228258 pathInMiddlePanel: true,
You can’t perform that action at this time.
0 commit comments