Add notes on the wiki implementation and deployment

This commit is contained in:
R. Tyler Croy 2016-07-25 17:12:52 -07:00 committed by GitHub
parent 200c1c772c
commit 5c38967b3f
1 changed files with 18 additions and 1 deletions

View File

@ -16,4 +16,21 @@ to be uploaded into the production server.
Wiki implementation
-------------------
[Jenkins Wiki](https://wiki.jenkins-ci.org/) shows patron messages through [confluence-static-cache](https://github.com/kohsuke/confluence-static-cache/tree/jenkins) layer.
[Jenkins Wiki](https://wiki.jenkins-ci.org/) shows patron messages through the "Page Templates" where the following code block is inserted:
```html
<script>
if (Math.random()*7<1) {
document.write("<div align='center'><div style='width: 568px; color: #888; text-align:right; font-size:10px'>Message from a Patron of Jenkins</div><iframe src='https://jenkins-infra.github.io/patron/message.html' width=568 height=75 style='border: 1px solid #ccc; overflow:hidden'></iframe></div>");
}
</script>
```
Deployment
----------
1. `./build.groovy`
1. `git checkout gh-pages`
1. `cp output/* .`
1. `git commit -a`
1. `git push`