Skip to content

Commit

Permalink
Showing 3 changed files with 33 additions and 8,288 deletions.
7 changes: 6 additions & 1 deletion site/Makefile
Original file line number Diff line number Diff line change
@@ -79,10 +79,15 @@ javadoc:
python_doc_gen:
scripts/python-doc-gen.sh

swagger_definition_gen:
scripts/swagger-definition-gen.sh

swagger_definition_copy:
(cd $(shell git rev-parse --show-toplevel) && \
cp pulsar-broker/target/docs/swagger.json site/_data/admin-rest-api-swagger.json)

swagger_docs_update: swagger_definition_gen swagger_definition_copy

protobuf_doc_gen:
scripts/protobuf-doc-gen.sh

@@ -91,4 +96,4 @@ protobuf_setup:

api_docs: javadoc python_doc_gen cpp_doc_gen

publish: deep_clean setup swagger_definition_copy build
publish: deep_clean setup swagger_docs_update build
8,287 changes: 0 additions & 8,287 deletions site/_data/admin-rest-api-swagger.json

This file was deleted.

27 changes: 27 additions & 0 deletions site/scripts/swagger-definition-gen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/bash
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#


ROOT_DIR=$(git rev-parse --show-toplevel)

(
cd $ROOT_DIR
mvn clean package -DskipTests -Pswagger
)

0 comments on commit 4def373

Please sign in to comment.