代码拉取完成,页面将自动刷新
同步操作将从 Gitee 极速下载/opennms 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
##
# Makefile to build OpenNMS docs
##
.PHONY: help docs docs-docker docs-deps docs-deps-docker docs-serve docs-serve-stop docs-clean docs-clean-cache clean-all
.DEFAULT_GOAL := docs
SHELL := /bin/bash -o nounset -o pipefail -o errexit
WORKING_DIRECTORY := $(shell pwd)
DOCKER_ANTORA_IMAGE := opennms/antora:2.3.4-b6293
SITE_FILE := antora-playbook-local.yml
help:
@echo ""
@echo "Makefile to build artifacts for OpenNMS"
@echo ""
@echo "Requirements to build the docs:"
@echo " * Native: Antora installed globally with antora binary in the search path"
@echo " * Docker: Docker installed with access to the official antora/antora image on DockerHub"
@echo ""
@echo "Targets:"
@echo " help: Show this help"
@echo " docs-deps: Test requirements to run Antora from the local system"
@echo " docs-deps-docker: Test requirements to run Antora with Docker"
@echo " docs: Build Antora docs with a local install Antora, default target"
@echo " docs-docker: Build Antora docs with from Docker"
@echo " docs-clean: Clean all build artifacts in build and public directory"
@echo " docs-clean-cache: Clear git repository cache and UI components from .cache directory"
@echo " clean-all: Clean build artifacts and Antora cache"
@echo " docs-serve: Run a local web server with Docker and Nginx to serve the docs locally"
@echo " docs-serve-stop: Stop the local web server for serving the docs"
@echo ""
@echo "Arguments: "
@echo " DOCKER_ANTORA_IMAGE: Antora Docker image to build the documentation, default: $(DOCKER_ANTORA_IMAGE)"
@echo " SITE_FILE: Antora site.yml file to build the site"
@echo ""
@echo "Example: "
@echo " make DOCKER_ANTORA_IMAGE=antora/antora:latest with-docker"
@echo ""
deps-docs:
@command -v antora
deps-docs-docker:
@command -v docker
docs: deps-docs
@echo "Build Antora docs..."
antora --stacktrace $(SITE_FILE)
docs-docker: deps-docs-docker
@echo "Build Antora docs with docker ..."
docker run --rm -v $(WORKING_DIRECTORY):/antora $(DOCKER_ANTORA_IMAGE) --stacktrace generate $(SITE_FILE)
docs-clean:
@echo "Delete build and public artifacts ..."
@rm -rf build public
docs-clean-cache:
@echo "Clean Antora cache for git repositories and UI components ..."
@rm -rf .cache
clean-all: docs-clean docs-clean-cache
docs-serve:
@echo "Start Nginx with public folder as html root ..."
docker run --rm -v $(WORKING_DIRECTORY)/public:/usr/share/nginx/html --name opennms-docs -p 8080:80 -d nginx
docs-serve-stop:
@echo "Stopping Nginx docs server ..."
docker stop opennms-docs
clean-all: docs-clean docs-clean-cache
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。