Implemented the "build-doc" and "preview-doc" targets in the Makefile file.

This commit is contained in:
Javier Cicchelli 2025-03-13 02:10:23 +01:00
parent edd7aada9f
commit 3db3132433

View File

@ -23,6 +23,21 @@ reset: ## Resets the complete SPM cache/build folder from the package.
update: ## Updates the SPM package dependencies.
@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
build-image: ## Builds a docker image out of the current source code