Skip to content

Commit

Permalink
chore: refactor scripts. Trying to support multi target docc
Browse files Browse the repository at this point in the history
  • Loading branch information
fummicc1 committed Oct 13, 2024
1 parent 50ed303 commit 5053a17
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 21 deletions.
20 changes: 0 additions & 20 deletions generate_docs.sh

This file was deleted.

2 changes: 1 addition & 1 deletion scripts/format.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash

# Format the code using SwiftFormat
# Format the code using swift-format
swift format . --in-place --recursive
13 changes: 13 additions & 0 deletions scripts/generate_docs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh

swift package --allow-writing-to-directory docs \
generate-documentation \
--target Csv2Img --target Csv2ImgCmd --target CsvBuilder \
--disable-indexing \
--transform-for-static-hosting \
--enable-experimental-combined-documentation \
--hosting-base-path csv2img \
--output-path docs

cp res/app_privacy_policy.html docs/app_privacy_policy.html
cp README.md docs/index.md

0 comments on commit 5053a17

Please sign in to comment.