Skip to content

Commit 5d00682

Browse files
committed
1 parent 3673ec3 commit 5d00682

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,12 +227,12 @@ Input: ~/Developer/swift-docc/Sources/SwiftDocC/SwiftDocC.docc
227227
Template: ~/Developer/swift-docc-render-artifact/dist
228228
========================================
229229
Starting Local Preview Server
230-
Address: http://localhost:8000/documentation/swiftdocc
230+
Address: http://localhost:8080/documentation/swiftdocc
231231
========================================
232232
Monitoring ~/Developer/swift-docc/Sources/SwiftDocC/SwiftDocC.docc for changes...
233233
```
234234
235-
And if you navigate to <http://localhost:8000/documentation/swiftdocc> you'll see
235+
And if you navigate to <http://localhost:8080/documentation/swiftdocc> you'll see
236236
the rendered documentation for `SwiftDocC`.
237237

238238
## Versioning

Sources/SwiftDocCUtilities/ArgumentParsing/Options/PreviewOptions.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ public struct PreviewOptions: ParsableArguments {
2727

2828
/// The port number to use for the preview web server.
2929
///
30-
/// Defaults to `8000`.
30+
/// Defaults to `8080`.
3131
@Option(
3232
name: .shortAndLong,
3333
help: ArgumentHelp(
3434
"Port number to use for the preview web server.",
3535
valueName: "port-number"))
36-
public var port: Int = 8000
36+
public var port: Int = 8080
3737

3838
/// The options used when configuring the preview server for external connections.
3939
///

Tests/SwiftDocCUtilitiesTests/PreviewActionIntegrationTests.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class PreviewActionIntegrationTests: XCTestCase {
102102
// tlsCertificateChain: nil,
103103
// serverUsername: nil,
104104
// serverPassword: nil,
105-
// port: 8000, // We ignore this value when we set the `bindServerToSocketPath` property below.
105+
// port: 8080, // We ignore this value when we set the `bindServerToSocketPath` property below.
106106
// createConvertAction: createConvertAction) else {
107107
// XCTFail("Could not create preview action from parameters")
108108
// return
@@ -158,8 +158,8 @@ class PreviewActionIntegrationTests: XCTestCase {
158158
// let previewInfoEnd = logOutput[previewInfoStart...].range(of: "\n=====")?.lowerBound {
159159
// XCTAssertEqual(logOutput[previewInfoStart..<previewInfoEnd], """
160160
// Starting Local Preview Server
161-
// \t Address: http://localhost:8000/documentation/mykit
162-
// \t http://localhost:8000/tutorials/overview
161+
// \t Address: http://localhost:8080/documentation/mykit
162+
// \t http://localhost:8080/tutorials/overview
163163
// """)
164164
// } else {
165165
// XCTFail("Missing preview information in log/print output")
@@ -456,7 +456,7 @@ class PreviewActionIntegrationTests: XCTestCase {
456456
tlsCertificateChain: nil,
457457
serverUsername: nil,
458458
serverPassword: nil,
459-
port: 8000, // We ignore this value when we set the `bindServerToSocketPath` property below.
459+
port: 8080, // We ignore this value when we set the `bindServerToSocketPath` property below.
460460
createConvertAction: createConvertAction) else {
461461
XCTFail("Could not create preview action from parameters")
462462
return

Tests/SwiftDocCUtilitiesTests/Utility/LogHandleTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class LogHandleTests: XCTestCase {
3131
handle.write("""
3232
========================================
3333
Starting Local Preview Server
34-
Address: http://localhost:8000/documentation/my-framework
34+
Address: http://localhost:8080/documentation/my-framework
3535
========================================
3636
"""
3737
)
@@ -46,7 +46,7 @@ class LogHandleTests: XCTestCase {
4646
XCTAssertEqual(text, """
4747
========================================
4848
Starting Local Preview Server
49-
Address: http://localhost:8000/documentation/my-framework
49+
Address: http://localhost:8080/documentation/my-framework
5050
========================================
5151
"""
5252
)

0 commit comments

Comments
 (0)