Rename GRDB_DOCC_PLUGIN to SPI_BUILDER

This addresses https://github.com/SwiftPackageIndex/SwiftPackageIndex-Server/issues/2122#issuecomment-1305649066
This commit is contained in:
Gwendal Roué committed 2022-11-09 21:56:19 +01:00
1 parent 9d03c1ae61
commit 57b07515c7
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -486,7 +486,7 @@ doc-localhost:
# Generates documentation in ~/Sites/GRDB
# See https://discussions.apple.com/docs/DOC-3083 for Apache setup on the mac
mkdir -p ~/Sites/GRDB
GRDB_DOCC_PLUGIN=1 $(SWIFT) package \
SPI_BUILDER=1 $(SWIFT) package \
--allow-writing-to-directory ~/Sites/GRDB \
generate-documentation \
--output-path ~/Sites/GRDB \
@@ -500,7 +500,7 @@ doc:
# https://apple.github.io/swift-docc-plugin/documentation/swiftdoccplugin/publishing-to-github-pages/
rm -rf $(DOCS_PATH)
mkdir -p $(DOCS_PATH)
GRDB_DOCC_PLUGIN=1 $(SWIFT) package \
SPI_BUILDER=1 $(SWIFT) package \
--allow-writing-to-directory $(DOCS_PATH) \
generate-documentation \
--output-path $(DOCS_PATH) \
+1 -1
View File
@@ -19,7 +19,7 @@ if ProcessInfo.processInfo.environment["SQLITE_ENABLE_PREUPDATE_HOOK"] == "1" {
// Don't rely on this environment variable. It is only a convenience:
// $ make docs-localhost
var dependencies: [PackageDescription.Package.Dependency] = []
if ProcessInfo.processInfo.environment["GRDB_DOCC_PLUGIN"] == "1" {
if ProcessInfo.processInfo.environment["SPI_BUILDER"] == "1" {
dependencies.append(.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"))
}