pulsar-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] sijie closed pull request #2277: [website] fix swagger file url
Date Wed, 01 Aug 2018 16:08:12 GMT
sijie closed pull request #2277: [website] fix swagger file url
URL: https://github.com/apache/incubator-pulsar/pull/2277
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/site2/website/pages/en/admin-rest-api.js b/site2/website/pages/en/admin-rest-api.js
index dd32e733a3..02672fda97 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 831ff6da9b..353c5cb4a1 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/';
 


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message