Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zombienet-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
parity
Mirrored projects
zombienet-sdk
Commits
c80a8891
Unverified
Commit
c80a8891
authored
1 year ago
by
Nikos Kontakis
Browse files
Options
Downloads
Patches
Plain Diff
test docs on separate branch
parent
f79816a9
Branches
Branches containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.github/workflows/documentation.yml
+25
-8
25 additions, 8 deletions
.github/workflows/documentation.yml
doc_preparation.sh
+1
-3
1 addition, 3 deletions
doc_preparation.sh
with
26 additions
and
11 deletions
.github/workflows/documentation.yml
+
25
−
8
View file @
c80a8891
...
...
@@ -11,8 +11,8 @@ env:
RUSTFLAGS
:
"
-Dwarnings"
jobs
:
build
:
name
:
Zombienet SDK - Docs
build
-rust-doc
:
name
:
Zombienet SDK -
Rust
Docs
runs-on
:
ubuntu-latest
strategy
:
matrix
:
...
...
@@ -30,9 +30,26 @@ jobs:
-
name
:
Init install
run
:
rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} && rustup component add clippy
-
name
:
Create Docs
run
:
cargo doc --no-deps
-
name
:
Run script for copying docs
run
:
./doc_preparation.sh
\ No newline at end of file
-
name
:
Create docs
run
:
|
cargo doc --no-deps
echo "<meta http-equiv=\"refresh\" content=\"0; url=configuration\">" > target/doc/index.html
-
name
:
Move docs
run
:
|
mkdir -p ./doc
mv ./target/doc/* ./doc
git config user.email "github-action@users.noreply.github.com"
git config user.name "GitHub Action"
git config user.password ${{ secrets.GITHUB_TOKEN }}
git checkout --orphan gh-pages
mkdir to_delete
shopt -s extglob
mv !(to_delete) ./to_delete
mv ./to_delete/doc/* .
rm -rf ./to_delete
git add --all
git commit -m "Documentation"
shell
:
bash
# Necessary for `shopt` to work
-
run
:
git push -f origin gh-pages:gh-pages
# if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
This diff is collapsed.
Click to expand it.
doc_preparation.sh
+
1
−
3
View file @
c80a8891
cargo doc
--no-deps
rm
-rf
./docs
echo
"<meta http-equiv=
\"
refresh
\"
content=
\"
0; url=configuration
\"
>"
>
target/doc/index.html
cp
-r
target/doc ./docs
\ No newline at end of file
echo
"<meta http-equiv=
\"
refresh
\"
content=
\"
0; url=configuration
\"
>"
>
target/doc/index.html
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment