Add support for `docc` documentation in ProjectDescriptionHelpers (#5198)
This commit is contained in:
parent
a78fa23a97
commit
8f45914756
|
@ -139,7 +139,10 @@ final class ProjectEditor: ProjectEditing {
|
|||
let dependenciesPath = manifestFilesLocator.locateDependencies(at: editingPath)
|
||||
|
||||
let helpers = helpersDirectoryLocator.locate(at: editingPath).map {
|
||||
FileHandler.shared.glob($0, glob: "**/*.swift")
|
||||
[
|
||||
FileHandler.shared.glob($0, glob: "**/*.swift"),
|
||||
FileHandler.shared.glob($0, glob: "**/*.docc"),
|
||||
].flatMap { $0 }
|
||||
} ?? []
|
||||
|
||||
let templates = templatesDirectoryLocator.locateUserTemplates(at: editingPath).map {
|
||||
|
|
|
@ -85,7 +85,7 @@ final class ProjectEditorTests: TuistUnitTestCase {
|
|||
let graph = Graph.test(name: "Edit")
|
||||
let helpersDirectory = directory.appending(component: "ProjectDescriptionHelpers")
|
||||
try FileHandler.shared.createFolder(helpersDirectory)
|
||||
let helpers = ["A.swift", "B.swift"].map { helpersDirectory.appending(component: $0) }
|
||||
let helpers = ["A.swift", "B.swift", "Documentation.docc"].map { helpersDirectory.appending(component: $0) }
|
||||
try helpers.forEach { try FileHandler.shared.touch($0) }
|
||||
let manifests = [
|
||||
ManifestFilesLocator.ProjectManifest(
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
# ``ProjectDescriptionHelpers``
|
||||
|
||||
<!--@START_MENU_TOKEN@-->Summary<!--@END_MENU_TOKEN@-->
|
||||
|
||||
## Overview
|
||||
|
||||
<!--@START_MENU_TOKEN@-->Text<!--@END_MENU_TOKEN@-->
|
||||
|
||||
## Topics
|
||||
|
||||
### <!--@START_MENU_TOKEN@-->Group<!--@END_MENU_TOKEN@-->
|
||||
|
||||
- <!--@START_MENU_TOKEN@-->``Symbol``<!--@END_MENU_TOKEN@-->
|
Loading…
Reference in New Issue