mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-08-20 04:00:01 +00:00
Refactor documentation output steps by removing logo verification and updating index.html copy process
This commit is contained in:
parent
bca1121004
commit
bb0bffba73
11
.github/workflows/docs-and-testcov.yml
vendored
11
.github/workflows/docs-and-testcov.yml
vendored
@ -147,19 +147,16 @@ jobs:
|
|||||||
cp last-commit-date.json target/doc/docs/
|
cp last-commit-date.json target/doc/docs/
|
||||||
# cp -r .github target/doc/docs
|
# cp -r .github target/doc/docs
|
||||||
cp .github/rustframe_logo.png target/doc/docs/
|
cp .github/rustframe_logo.png target/doc/docs/
|
||||||
echo "<meta http-equiv=\"refresh\" content=\"0; url=docs\">" > target/doc/index.html
|
# echo "<meta http-equiv=\"refresh\" content=\"0; url=docs\">" > target/doc/index.html
|
||||||
touch target/doc/.nojekyll
|
touch target/doc/.nojekyll
|
||||||
|
|
||||||
# copy the benchmark report to the output directory
|
# copy the benchmark report to the output directory
|
||||||
cp -r benchmark-report target/doc/
|
cp -r benchmark-report target/doc/
|
||||||
|
|
||||||
# verify that logo exists in the output directory
|
- name: Add index.html to output directory
|
||||||
- name: Verify logo directory
|
|
||||||
run: |
|
run: |
|
||||||
if [ ! -f target/doc/docs/rustframe_logo.png ]; then
|
cp .github/htmldocs/index.html target/doc/index.html
|
||||||
echo "Logo not found in output directory!"
|
cp .github/rustframe_logo.png target/doc/rustframe_logo.png
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Upload Pages artifact
|
- name: Upload Pages artifact
|
||||||
# if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
|
# if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user