Yank the docs out of the build framework, moving to online only

distribution of handbooks and guides.

Ticket: #54915
This commit is contained in:
Kris Moore
2018-11-02 11:30:28 -04:00
parent b79e904c3e
commit 10064e4dac
12 changed files with 1 additions and 176 deletions

View File

@@ -56,7 +56,6 @@ GIT_LOCATION != cat ${GIT_REPO_SETTING}
BE_ROOT := ${BUILD_ROOT}/${PROFILE}/_BE
OBJDIR := ${BE_ROOT}/objs
DOC_PATH := ${BE_ROOT}/freenas-docs
API_PATH := ${BE_ROOT}/freenas/docs
.if exists(${BUILD_ROOT}/.git-ref-path)
@@ -83,7 +82,6 @@ GIT_REF_PATH ?= /build/gitrefs
.export BE_ROOT
.export OBJDIR
.export DOC_PATH
.export API_PATH
.export GIT_REF_PATH

View File

@@ -41,7 +41,7 @@ RELEASE_LOGFILE?=${BE_ROOT}/release.build.log
all: check-root build
.PHONY: world build packages checkout update dumpenv clean release ports docs tests
.PHONY: world build packages checkout update dumpenv clean release ports tests
check-root:
@[ `id -u` -eq 0 ] || ( echo "Sorry, you must be running as root to build this."; exit 1 )
@@ -242,14 +242,6 @@ select-profile:
debug:
@${BUILD_TOOLS}/build-debug.py
docs:
@env CHECKOUT_ONLY="freenas-docs" ${BUILD_TOOLS}/checkout.py
.if ${PRODUCT} == "TrueNAS"
(make SPHINXOPTS="-t truenas" -C ${DOC_PATH}/userguide html)
.else
(make -C ${DOC_PATH}/userguide html)
.endif
api-docs:
@env CHECKOUT_ONLY="freenas" ${BUILD_TOOLS}/checkout.py
.if ${PRODUCT} == "TrueNAS"
@@ -259,5 +251,4 @@ api-docs:
.endif
clean-docs:
make -C ${DOC_PATH}/userguide clean
make -C ${API_PATH}/api clean

View File

@@ -30,17 +30,6 @@ link += {
"flags": "ro",
}
if PRODUCT != "TrueNAS":
copy += {
"source": "${BE_ROOT}/freenas-docs",
"dest": "/usr/freenas_docs"
}
copy += {
"source": "${BE_ROOT}/freenas-docs-legacy",
"dest": "/usr/freenas_docs_legacy"
}
copy += {
"source": "${BE_ROOT}/freenas/src",
"dest": "/usr/nas_source"

View File

@@ -28,11 +28,6 @@ packages += {
"template": "${PROFILE_ROOT}/packages/base-os"
}
packages += {
"name": "docs",
"template": "${PROFILE_ROOT}/packages/docs"
}
packages += {
"name": "freebsd-pkgdb",
"template": "${PROFILE_ROOT}/packages/freebsd-pkgdb"

View File

@@ -1,18 +0,0 @@
[Package]
name = docs
comment = "Release documentation"
desc = "Release documentation"
www = http://www.freenas.org/
origin = freenas/os
maintainer = dev@ixsystems.com
prefix = /
arch = freebsd:9:x86:64
licenselogic = or
licenses = [BSD, MIT, GPL]
requires-reboot = False
post-upgrade = true
[Files]
include = /usr/local/www/data/docs

View File

@@ -36,15 +36,6 @@ iocage_git_rev = sh("git -C ${BE_ROOT}/iocage log -1 --pretty=format:%ct") \
if exists("${BE_ROOT}/iocage") \
else "0"
if PRODUCT != "TrueNAS":
docs_git_rev = sh("git -C ${BE_ROOT}/freenas-docs log -1 --pretty=format:%ct") \
if exists("${BE_ROOT}/freenas-docs") \
else "0"
docs_legacy_git_rev = sh("git -C ${BE_ROOT}/freenas-docs-legacy log -1 --pretty=format:%ct") \
if exists("${BE_ROOT}/freenas-docs-legacy") \
else "0"
ports += {
"name": "freenas/freenas-files",
"options": [
@@ -130,28 +121,6 @@ ports += {
]
}
if PRODUCT != "TrueNAS":
ports += {
"name": "freenas/freenas-docs",
"options": [
"PRODUCT=${PRODUCT}",
"PRODUCT_VERSION=${VERSION}",
"BUILD_TIMESTAMP=${BUILD_TIMESTAMP}",
"REVISION=" + docs_git_rev
]
}
ports += {
"name": "freenas/freenas-docs-legacy",
"options": [
"PRODUCT=${PRODUCT}",
"PRODUCT_VERSION=${VERSION}",
"BUILD_TIMESTAMP=${BUILD_TIMESTAMP}",
"REVISION=" + docs_legacy_git_rev
]
}
ports += {
"name": "freenas/pcbsd-warden",
"options": [

View File

@@ -55,23 +55,6 @@ repos += {
}
repos += {
"name": "freenas-docs-legacy",
"path": "freenas-docs-legacy",
"url": "http://github.com/freenas/freenas-docs.git",
"branch": "master"
}
if PRODUCT != "TrueNAS":
repos += {
"name": "freenas-docs",
"path": "freenas-docs",
"url": "http://github.com/freenas/freenas-docs.git",
"branch": "angulargui"
}
repos += {
"name": "ports",
"path": "ports",

View File

@@ -30,18 +30,6 @@ link += {
"flags": "ro",
}
if PRODUCT != "TrueNAS":
copy += {
"source": "${BE_ROOT}/freenas-docs",
"dest": "/usr/freenas_docs"
}
copy += {
"source": "${BE_ROOT}/freenas-docs-legacy",
"dest": "/usr/freenas_docs_legacy"
}
copy += {
"source": "${BE_ROOT}/freenas/src",
"dest": "/usr/nas_source"

View File

@@ -28,11 +28,6 @@ packages += {
"template": "${PROFILE_ROOT}/packages/base-os"
}
packages += {
"name": "docs",
"template": "${PROFILE_ROOT}/packages/docs"
}
packages += {
"name": "freebsd-pkgdb",
"template": "${PROFILE_ROOT}/packages/freebsd-pkgdb"

View File

@@ -1,18 +0,0 @@
[Package]
name = docs
comment = "Release documentation"
desc = "Release documentation"
www = http://www.freenas.org/
origin = freenas/os
maintainer = dev@ixsystems.com
prefix = /
arch = freebsd:9:x86:64
licenselogic = or
licenses = [BSD, MIT, GPL]
requires-reboot = False
post-upgrade = true
[Files]
include = /usr/local/www/data/docs

View File

@@ -36,15 +36,6 @@ iocage_git_rev = sh("git -C ${BE_ROOT}/iocage log -1 --pretty=format:%ct") \
if exists("${BE_ROOT}/iocage") \
else "0"
if PRODUCT != "TrueNAS":
docs_git_rev = sh("git -C ${BE_ROOT}/freenas-docs log -1 --pretty=format:%ct") \
if exists("${BE_ROOT}/freenas-docs") \
else "0"
docs_legacy_git_rev = sh("git -C ${BE_ROOT}/freenas-docs-legacy log -1 --pretty=format:%ct") \
if exists("${BE_ROOT}/freenas-docs-legacy") \
else "0"
ports += {
"name": "freenas/freenas-files",
"options": [
@@ -130,28 +121,6 @@ ports += {
]
}
if PRODUCT != "TrueNAS":
ports += {
"name": "freenas/freenas-docs",
"options": [
"PRODUCT=${PRODUCT}",
"PRODUCT_VERSION=${VERSION}",
"BUILD_TIMESTAMP=${BUILD_TIMESTAMP}",
"REVISION=" + docs_git_rev
]
}
ports += {
"name": "freenas/freenas-docs-legacy",
"options": [
"PRODUCT=${PRODUCT}",
"PRODUCT_VERSION=${VERSION}",
"BUILD_TIMESTAMP=${BUILD_TIMESTAMP}",
"REVISION=" + docs_legacy_git_rev
]
}
ports += {
"name": "freenas/pcbsd-warden",
"options": [

View File

@@ -54,22 +54,6 @@ repos += {
"branch": "master"
}
repos += {
"name": "freenas-docs-legacy",
"path": "freenas-docs-legacy",
"url": "http://github.com/freenas/freenas-docs.git",
"branch": "master"
}
if PRODUCT != "TrueNAS":
repos += {
"name": "freenas-docs",
"path": "freenas-docs",
"url": "http://github.com/freenas/freenas-docs.git",
"branch": "angulargui"
}
repos += {
"name": "ports",
"path": "ports",