Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
6b0d8948
Commit
6b0d8948
authored
Sep 02, 2019
by
mdhtr
Committed by
Nick Thomas
Sep 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove reference of external example
as requested by the reviewer
parent
937b2027
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
0 deletions
+34
-0
changelogs/unreleased/swagger-ui-ci-page-template.yml
changelogs/unreleased/swagger-ui-ci-page-template.yml
+5
-0
lib/gitlab/ci/templates/Pages/SwaggerUI.gitlab-ci.yml
lib/gitlab/ci/templates/Pages/SwaggerUI.gitlab-ci.yml
+29
-0
No files found.
changelogs/unreleased/swagger-ui-ci-page-template.yml
0 → 100644
View file @
6b0d8948
---
title
:
"
Add
SwaggerUI
Pages
template
for
.gitlab-ci.yml"
merge_request
:
31183
author
:
mdhtr
type
:
added
lib/gitlab/ci/templates/Pages/SwaggerUI.gitlab-ci.yml
0 → 100644
View file @
6b0d8948
image
:
node:10-alpine
# specify the location of the Open API Specification files within your project
# and the filename of the specification that you would like to display by default
variables
:
DOCS_FOLDER
:
"
api-docs"
SPEC_TO_DISPLAY
:
"
my-project_specification_0.0.1.json"
# These folders are cached between builds
cache
:
paths
:
-
./node_modules
# publishes all files from the $DOCS_FOLDER together with the static version of SwaggerUI
# sets the specification file named in $SPEC_TO_DISPLAY to be displayed by default
pages
:
stage
:
deploy
before_script
:
-
npm install swagger-ui-dist@3.22.1
script
:
-
mkdir public
-
cp -rp node_modules/swagger-ui-dist/* public
-
cp -rp $DOCS_FOLDER/* public
-
sed -i "s#https://petstore\.swagger\.io/v2/swagger\.json#$SPEC_TO_DISPLAY#g" public/index.html
artifacts
:
paths
:
-
public
only
:
-
master
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment