This is an automated email from the ASF dual-hosted git repository.
sijie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pulsar.git
The following commit(s) were added to refs/heads/master by this push:
new a57057a [website] fix swagger file url (#2277)
a57057a is described below
commit a57057a4c8932fffd155615da9115a50b90f5cf5
Author: Sijie Guo <guosijie@gmail.com>
AuthorDate: Wed Aug 1 09:08:11 2018 -0700
[website] fix swagger file url (#2277)
### Motivation
The urls were hardcoded for local development.
### Changes
Fix the urls
---
site2/website/pages/en/admin-rest-api.js | 2 +-
site2/website/siteConfig.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/site2/website/pages/en/admin-rest-api.js b/site2/website/pages/en/admin-rest-api.js
index dd32e73..02672fd 100644
--- a/site2/website/pages/en/admin-rest-api.js
+++ b/site2/website/pages/en/admin-rest-api.js
@@ -11,7 +11,7 @@ class AdminRestApi extends React.Component {
return (
<div className="pageContainer">
<Container className="mainContainer documentContainer postContainer" >
- <redoc spec-url="//localhost:3000/staging/swagger/swagger.json" lazy-rendering="true"></redoc>
+ <redoc spec-url={`${swaggerUrl}`} lazy-rendering="true"></redoc>
<script src="//cdn.jsdelivr.net/npm/redoc/bundles/redoc.standalone.js"/>
</Container>
</div>
diff --git a/site2/website/siteConfig.js b/site2/website/siteConfig.js
index 831ff6d..353c5cb 100644
--- a/site2/website/siteConfig.js
+++ b/site2/website/siteConfig.js
@@ -64,7 +64,7 @@ const renderEndpoint = (initializedPlugin, baseUrl, keyparts) => {
const url = 'https://pulsar.incubator.apache.org';
const javadocUrl = url + '/api';
-const restApiUrl = 'http://localhost:3000/staging/en' + "/admin-rest-api";
+const restApiUrl = url + '/staging/en' + "/admin-rest-api";
const githubUrl = 'https://github.com/apache/incubator-pulsar';
const baseUrl = '/staging/';
|