Skip to content

Commit 57b0751

Browse files
committed
Rename GRDB_DOCC_PLUGIN to SPI_BUILDER
This addresses SwiftPackageIndex/SwiftPackageIndex-Server#2122 (comment)
1 parent 9d03c1a commit 57b0751

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ doc-localhost:
486486
# Generates documentation in ~/Sites/GRDB
487487
# See https://discussions.apple.com/docs/DOC-3083 for Apache setup on the mac
488488
mkdir -p ~/Sites/GRDB
489-
GRDB_DOCC_PLUGIN=1 $(SWIFT) package \
489+
SPI_BUILDER=1 $(SWIFT) package \
490490
--allow-writing-to-directory ~/Sites/GRDB \
491491
generate-documentation \
492492
--output-path ~/Sites/GRDB \
@@ -500,7 +500,7 @@ doc:
500500
# https://apple.github.io/swift-docc-plugin/documentation/swiftdoccplugin/publishing-to-github-pages/
501501
rm -rf $(DOCS_PATH)
502502
mkdir -p $(DOCS_PATH)
503-
GRDB_DOCC_PLUGIN=1 $(SWIFT) package \
503+
SPI_BUILDER=1 $(SWIFT) package \
504504
--allow-writing-to-directory $(DOCS_PATH) \
505505
generate-documentation \
506506
--output-path $(DOCS_PATH) \

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if ProcessInfo.processInfo.environment["SQLITE_ENABLE_PREUPDATE_HOOK"] == "1" {
1919
// Don't rely on this environment variable. It is only a convenience:
2020
// $ make docs-localhost
2121
var dependencies: [PackageDescription.Package.Dependency] = []
22-
if ProcessInfo.processInfo.environment["GRDB_DOCC_PLUGIN"] == "1" {
22+
if ProcessInfo.processInfo.environment["SPI_BUILDER"] == "1" {
2323
dependencies.append(.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"))
2424
}
2525

0 commit comments

Comments
 (0)