Implemented the "build-doc" and "preview-doc" targets in the Makefile file.
This commit is contained in:
parent
edd7aada9f
commit
3db3132433
15
Makefile
15
Makefile
@ -23,6 +23,21 @@ reset: ## Resets the complete SPM cache/build folder from the package.
|
|||||||
update: ## Updates the SPM package dependencies.
|
update: ## Updates the SPM package dependencies.
|
||||||
@swift package update
|
@swift package update
|
||||||
|
|
||||||
|
# DOCUMENTATION
|
||||||
|
|
||||||
|
build-doc: ## Builds the DocC documentation for the library target.
|
||||||
|
@swift package plugin generate-documentation\
|
||||||
|
--target DoxyLibrary\
|
||||||
|
--include-extended-types\
|
||||||
|
--symbol-graph-minimum-access-level internal
|
||||||
|
@cp -rf .build/plugins/Swift-DocC/outputs/DoxyLibrary.doccarchive .
|
||||||
|
|
||||||
|
preview-doc: ## Previews the DocC documentation for the library target.
|
||||||
|
@swift package --disable-sandbox plugin preview-documentation\
|
||||||
|
--target DoxyLibrary\
|
||||||
|
--include-extended-types\
|
||||||
|
--symbol-graph-minimum-access-level internal
|
||||||
|
|
||||||
# DOCKER
|
# DOCKER
|
||||||
|
|
||||||
build-image: ## Builds a docker image out of the current source code
|
build-image: ## Builds a docker image out of the current source code
|
||||||
|
Loading…
x
Reference in New Issue
Block a user