Compare commits

..

16 Commits

Author SHA1 Message Date
Palash Tyagi
a2622fca58
Merge 2e071a6974897a3136eb5de4a8dfd83042428d69 into 2bc375f95009e600ba8d584a88a2b59da7c0e8ef 2025-05-05 03:44:06 +01:00
2bc375f950
Merge pull request #42 from Magnus167/fix_docs
Update docs-and-testcov workflow
2025-05-05 03:44:02 +01:00
Palash Tyagi
37d10cbc7d Remove 'fix_docs' branch from push trigger in workflow configuration 2025-05-05 03:42:52 +01:00
Palash Tyagi
1c41d387ef Update verification step to check for logo presence in output directory 2025-05-05 03:32:57 +01:00
Palash Tyagi
38baf0c648 Fix logo URL replacement in README.md and adjust documentation copying step 2025-05-05 03:30:58 +01:00
Palash Tyagi
2e6c4bd6bb Add step to replace logo URL in README.md during workflow 2025-05-05 03:26:25 +01:00
Palash Tyagi
6bb1c2a0de testing w .nojekyll 2025-05-05 03:18:22 +01:00
Palash Tyagi
d670ab4a5c Fix .github directory path in documentation output and add verification step 2025-05-05 03:07:47 +01:00
Palash Tyagi
eb09593b0a Update push trigger branches for docs-and-testcov workflow 2025-05-05 03:01:36 +01:00
Palash Tyagi
29c304d512 testing changes 2025-05-05 03:00:51 +01:00
Palash Tyagi
7c96439550 Fix .github directory path in documentation output and add verification step 2025-05-05 02:53:16 +01:00
Palash Tyagi
76b8824ce3 Refactor documentation file copying to include entire .github directory 2025-05-05 02:49:07 +01:00
Palash Tyagi
00befe7ee4 Fix file path for rustframe logo in documentation output 2025-05-05 02:44:17 +01:00
Palash Tyagi
41349e2dba Update push trigger branch for docs-and-testcov workflow 2025-05-05 02:40:27 +01:00
Palash Tyagi
9ab3a7c2c1 Update branch trigger and fix documentation file handling in workflow 2025-05-05 02:39:19 +01:00
Palash Tyagi
88a08e1063 Update push trigger branches in docs-and-testcov workflow 2025-05-05 02:24:48 +01:00

View File

@ -44,6 +44,14 @@ jobs:
toolchain: stable
override: true
- name: Replace logo URL in README.md
env:
LOGO_URL: ${{ secrets.LOGO_URL }}
run: |
# replace with EXAMPLE.COM/LOGO
sed -i 's|.github/rustframe_logo.png|rustframe_logo.png|g' README.md
- name: Build documentation
run: cargo doc --no-deps --release
@ -96,16 +104,25 @@ jobs:
run: |
# mkdir docs
mkdir -p target/doc/docs
cp -r target/doc/rustframe/* target/doc/docs/
mv target/doc/rustframe/* target/doc/docs/
mkdir output
cp tarpaulin-report.html target/doc/docs/
cp tarpaulin-report.json target/doc/docs/
cp tarpaulin-badge.json target/doc/docs/
cp last-commit-date.json target/doc/docs/
mkdir -p target/doc/.github
cp .github/rustframe_logo.png target/doc/.github/rustframe_logo.png
# cp -r .github target/doc/docs
cp .github/rustframe_logo.png target/doc/docs/
echo "<meta http-equiv=\"refresh\" content=\"0; url=docs\">" > target/doc/index.html
touch target/doc/.nojekyll
# verify that logo exists in the output directory
- name: Verify logo directory
run: |
if [ ! -f target/doc/docs/rustframe_logo.png ]; then
echo "Logo not found in output directory!"
exit 1
fi
- name: Upload Pages artifact
# if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'