Skip to content

Commit 5c48f11

Browse files
authored
Merge pull request #140 from remigourdon/docs-pages
Add Travis configuration to publish doc to GitHub pages
2 parents 8d8acd6 + 8d8ca1d commit 5c48f11

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

Diff for: β€Ž.travis.yml

+11
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,14 @@ after_failure:
5454
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
5555
- chmod +x send.sh
5656
- ./send.sh failure $WEBHOOK_URL
57+
58+
after_success: |
59+
if [ -n "${GITHUB_TOKEN}" ]; then
60+
[ "${TRAVIS_BRANCH} " = master ] &&
61+
[ "${TRAVIS_PULL_REQUEST}" = false ] &&
62+
cargo doc &&
63+
echo "<meta http-equiv=refresh content=0;url=rustscan/index.html>" > target/doc/index.html &&
64+
sudo pip install ghp-import &&
65+
ghp-import -n target/doc &&
66+
git push -fq https://${GITHUB_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
67+
fi

Diff for: β€ŽREADME.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ RustScans **only** job is to reduce the friction between finding open ports and
6767

6868
| Installation Guide | Documentation | Discord |
6969
| ------------------ | ------------- | ------- |
70-
| πŸ“– [Installation Guide](https://github.com/RustScan/RustScan#-full-installation-guide) | πŸ“š [Documentation](https://github.com/RustScan/RustScan/issues/89) | 🦜 [Discord](https://discord.gg/GFrQsGy)
70+
| πŸ“– [Installation Guide](https://github.com/RustScan/RustScan#-full-installation-guide) | πŸ“š [Documentation](https://rustscan.github.io/RustScan/) | 🦜 [Discord](https://discord.gg/GFrQsGy)
7171

7272
## πŸ™‹ Table of Contents
7373
* πŸ“– [Installation Guide](https://github.com/RustScan/RustScan#-full-installation-guide)

0 commit comments

Comments
Β (0)