Skip to content

Commit da44616

Browse files
authored
Merge pull request #269 from p-x9/revert-268-feature/macho-archive-docc
Revert "Documentation for `MachOArchiveKit`"
2 parents 3093a3f + d7a102d commit da44616

File tree

7 files changed

+7
-27
lines changed

7 files changed

+7
-27
lines changed

Sources/MachOKit/Documentation.docc/MachOKit.md renamed to MachOKit.docc/MachOKit.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
# ``MachOKit``
22

33
🔬 A Swift library for parsing MachO files to obtain various information.
4-
5-
> [!NOTE]
6-
> Unix archive (.a) format is supported by ``MachOArchiveKit``.

Sources/MachOKit/Documentation.docc/MachOKitC.md renamed to MachOKit.docc/MachOKitC.md

File renamed without changes.

Sources/MachOArchiveKit/Util/exported.swift

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,8 @@
33
// MachOKit
44
//
55
// Created by p-x9 on 2026/03/17
6+
//
67
//
7-
//
8-
9-
@_documentation(visibility: internal)
10-
@_exported
11-
import MachOKit
128

13-
@_documentation(visibility: internal)
14-
@_exported
15-
import ObjectArchiveKit
9+
@_exported import MachOKit
10+
@_exported import ObjectArchiveKit

Sources/MachOKitC/include/core_foundation.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@
33
// MachOKit
44
//
55
// Created by p-x9 on 2025/02/01
6-
//
6+
//
77
//
88

99
#ifndef core_foundation_h
1010
#define core_foundation_h
1111

12-
#include <stdint.h>
13-
1412
// ref: https://github.com/apple-oss-distributions/CF/blob/dc54c6bb1c1e5e0b9486c1d26dd5bef110b20bf3/CFRuntime.h#L222-L228
1513
typedef struct __CFRuntimeBase64 {
1614
uint64_t _cfisa;

scripts/docc-preview.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ preview_docc() {
66
mkdir -p docs
77

88
$(xcrun --find docc) preview \
9-
"./Sources/${TARGET}/Documentation.docc" \
9+
"./${TARGET}.docc" \
1010
--additional-symbol-graph-dir symbol-graphs \
1111
--output-path "docs"
1212
}

scripts/docc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ generate_docc() {
77
mkdir -p docs
88

99
$(xcrun --find docc) convert \
10-
"./Sources/${TARGET}/Documentation.docc" \
10+
"./${TARGET}.docc" \
1111
--output-path "docs" \
1212
--hosting-base-path "${REPO_NAME}" \
1313
--additional-symbol-graph-dir ./symbol-graphs

scripts/generate-symbols.sh

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,10 @@ generate_symbol_graphs() {
2828

2929
xcodebuild clean build -scheme "${scheme}"\
3030
-destination "generic/platform=${destination}" \
31-
OTHER_SWIFT_FLAGS="-emit-extension-block-symbols -emit-symbol-graph -emit-symbol-graph-dir $(pwd)/.build/symbol-graphs" \
32-
DOCC_EXTRACT_EXTENSION_SYMBOLS=YES
31+
OTHER_SWIFT_FLAGS="-emit-extension-block-symbols -emit-symbol-graph -emit-symbol-graph-dir $(pwd)/.build/symbol-graphs"
3332

3433
mv "./.build/symbol-graphs/${scheme}.symbols.json" "${SYMBOL_DIR}/${scheme}_${destination}.symbols.json"
3534

36-
# Extension
37-
for file in ./.build/symbol-graphs/${scheme}@*.symbols.json; do
38-
if [ -f "$file" ]; then
39-
mv "$file" "${SYMBOL_DIR}/$(basename "${file%.symbols.json}").symbols.json"
40-
fi
41-
done
42-
4335
if [ -d "./Sources/$scheme/include" ]; then
4436
local HEADERS=$(ls "./Sources/$scheme/include")
4537
while IFS= read -r header; do
@@ -56,10 +48,8 @@ generate_symbol_graphs() {
5648
clean_build
5749
clean_xcbuild ios MachOKitC
5850
clean_xcbuild ios MachOKit
59-
clean_xcbuild ios MachOArchiveKit
6051

6152
clean_symbol
6253

6354
generate_symbol_graphs ios MachOKitC
6455
generate_symbol_graphs ios MachOKit
65-
generate_symbol_graphs ios MachOArchiveKit

0 commit comments

Comments
 (0)