Skip to content

Commit

Permalink
ci: revert back to using index.css to hide swagger topbar
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredhendrickson13 committed May 19, 2024
1 parent a0be15e commit 0efbe10
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ jobs:
wget -O /tmp/swagger.tar.gz https://github.com/swagger-api/swagger-ui/archive/refs/tags/v${{ env.SWAGGER_UI_VERSION }}.tar.gz
tar -xzf /tmp/swagger.tar.gz -C /tmp/
cp -r /tmp/swagger-ui-${{ env.SWAGGER_UI_VERSION }}/dist/* ./www/api-docs/
cp pfSense-pkg-RESTAPI/files/usr/local/www/api/swagger/index.css ./www/api-docs/index.css
cp openapi.json/openapi.json ./www/api-docs/openapi.json
echo 'window.onload = function() {
window.ui = SwaggerUIBundle({
Expand All @@ -162,12 +163,6 @@ jobs:
layout: "StandaloneLayout",
supportedSubmitMethods: []
});
// Hide the default Swagger topbar
const header = document.querySelector('.topbar');
if (header) {
header.style.display = 'none';
}
};' > ./www/api-docs/swagger-initializer.js
- name: Build PHP reference documentation
Expand Down

0 comments on commit 0efbe10

Please sign in to comment.