Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodingdoc1 committed Oct 2, 2019
2 parents 128d37e + f4a3d5f commit bc9ac58
Show file tree
Hide file tree
Showing 19 changed files with 679 additions and 249 deletions.
51 changes: 36 additions & 15 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,51 +7,72 @@ def notifyBranch = [recipients: [brokenTestsSuspects(), requestor()]]
pipeline {
agent {
node {
label 'alpine:mkdocs'
customWorkspace workspace().getUniqueWorkspacePath()
label 'alpine-mkdocs'
}
}
environment {
DEPLOY_URL="https://strongbox.github.io"
DEPLOY_URL = "https://strongbox.github.io"
}
options {
timeout(time: 30, unit: 'MINUTES')
disableConcurrentBuilds()
}
stages {
stage('Node')
{
stage('Node') {
steps {
nodeInfo("python pip mkdocs")
container("mkdocs") {
nodeInfo("python pip mkdocs")
}
}
}
stage('Building')
{
stage('Building') {
steps {
withCredentials([string(credentialsId: '3ea1e18a-b1d1-44e0-a1ff-7b62870913f8', variable: 'GOOGLE_ANALYTICS_KEY')]) {
sh "mkdocs build"
container("mkdocs") {
withCredentials([string(credentialsId: '3ea1e18a-b1d1-44e0-a1ff-7b62870913f8', variable: 'GOOGLE_ANALYTICS_KEY')]) {
sh "mkdocs build"
}
}
}
}
stage('Deploying') {
when {
expression { BRANCH_NAME == 'master' && (currentBuild.result == null || currentBuild.result == 'SUCCESS') }
expression {
BRANCH_NAME == 'master' && (currentBuild.result == null || currentBuild.result == 'SUCCESS')
}
}
steps {
configFileProvider([configFile(fileId: 'e0235d92-c2fc-4f81-ae4b-28943ed7350d', targetLocation: '/tmp/gh-pages.sh')]) {
container("mkdocs") {
withCredentials([sshUserPrivateKey(credentialsId: '011f2a7d-2c94-48f5-92b9-c07fd817b4be', keyFileVariable: 'SSH_KEY', usernameVariable: 'SSH_USER')]) {
withEnv(["GIT_SSH_COMMAND=ssh -o StrictHostKeyChecking=no -o User=${SSH_USER} -i ${SSH_KEY}"]) {
sh "/bin/bash /tmp/gh-pages.sh"
sh 'git checkout --orphan gh-pages'
sh 'find . -maxdepth 1 ! -name "site" ! -name ".git*" ! -name "." -exec git rm -rf {} \\;'
sh 'git add --force site'
sh 'git commit -m "Updating documentation site."'
sh 'git remote add strongbox.github.io [email protected]:strongbox/strongbox.github.io.git'
sh 'git push strongbox.github.io `git subtree split --prefix site gh-pages`:master --force'
}
}
}
}
}
}
post {
cleanup {
failure {
script {
workspace().clean()
if (params.NOTIFY_EMAIL)
{
notifyFailed((BRANCH_NAME == "master") ? notifyMaster : notifyBranch)
}
}
}
fixed {
script {
if (params.NOTIFY_EMAIL)
{
notifyFixed((BRANCH_NAME == "master") ? notifyMaster : notifyBranch)
}
}
}
}
}

2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3'
services:
mkdocs:
image: strongboxci/alpine:mkdocs-4.0
image: strongboxci/alpine:mkdocs-4.4
volumes:
- ./:/docs
ports:
Expand Down
54 changes: 54 additions & 0 deletions docs/assets/resources/maven/settings-local.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<settings>

<localRepository>.m2/repository-strongbox-local</localRepository>

<mirrors>
<mirror>
<id>strongbox</id>
<name>strongbox</name>
<url>http://localhost:48080/storages/public/maven-group/</url>
<mirrorOf>*</mirrorOf>
</mirror>
</mirrors>

<profiles>
<profile>
<id>carlspring-repositories</id>

<activation>
<activeByDefault>true</activeByDefault>
</activation>

<repositories>
<repository>
<id>strongbox</id>
<name>strongbox</name>
<url>http://localhost:48080/storages/public/maven-group/</url>
<layout>default</layout>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>strongbox</id>
<name>strongbox</name>
<url>http://localhost:48080/storages/public/maven-group/</url>
<layout>default</layout>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>

<servers>
<server>
<id>releases</id>
<username>admin</username>
<password>password</password>
</server>
<server>
<id>snapshots</id>
<username>admin</username>
<password>password</password>
</server>
</servers>
</settings>
109 changes: 109 additions & 0 deletions docs/assets/stylesheets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,103 @@ body > .md-container {
color: rgba(255, 255, 255, 0.9);
}

.md-typeset .admonition.hint,
.md-typeset .admonition.important,
.md-typeset .admonition.tip,
.md-typeset details.hint,
.md-typeset details.important,
.md-typeset details.tip {
border-top-color: #00bfa5;
}

.md-typeset .admonition.attention, .md-typeset .admonition.caution, .md-typeset .admonition.warning, .md-typeset details.attention, .md-typeset details.caution, .md-typeset details.warning {
border-top-color: #ff9100;
}

.md-typeset .admonition, .md-typeset details {
border-top: .068rem solid #448aff
}

.md-typeset {
/* break extra long headers */
overflow-wrap: break-word;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-typeset h5,
.md-typeset h6 {
color: white;
font-weight: 300;
}

.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-typeset h5,
.md-typeset h6 {
margin: 2rem 0 0.4rem;
}

.md-typeset h1 {
margin: 0 0 0.4rem;
}

.md-typeset h2:first-child,
.md-typeset h3:first-child,
.md-typeset h4:first-child,
.md-typeset h5:first-child,
.md-typeset h6:first-child {
margin: 0.8rem 0 0.4rem;
}

.md-typeset h1 + h2,
.md-typeset h1 + h3,
.md-typeset h1 + h4,
.md-typeset h1 + h5,
.md-typeset h1 + h6,
.md-typeset h2 + h2,
.md-typeset h2 + h3,
.md-typeset h2 + h4,
.md-typeset h2 + h5,
.md-typeset h2 + h6,
.md-typeset h3 + h3,
.md-typeset h3 + h4,
.md-typeset h3 + h5,
.md-typeset h3 + h6,
.md-typeset h4 + h4,
.md-typeset h4 + h4,
.md-typeset h4 + h5,
.md-typeset h5 + h5,
.md-typeset h5 + h6,
.md-typeset h6 + h6 {
margin: 0.8rem 0 0.4rem !important;
}

.md-typeset h1 {
font-size: 1.8rem;
}

.md-typeset h2 {
font-size: 1.6rem;
}

.md-typeset h3 {
font-size: 1.34rem;
}

.md-typeset h4 {
font-size: 1.22rem;
}

.md-typeset h5 {
font-size: 1.18rem;
}

.md-typeset h6 {
font-size: 1.1rem;
}

[data-md-color-primary=blue-grey] .md-typeset a {
Expand Down Expand Up @@ -101,12 +191,28 @@ body > .md-container {
background-color: hsla(343, 100%, 31%, 0.3)
}

.md-typeset table:not([class]) {
border: 1px solid rgba(0,0,0,0.3);
}

.md-typeset table:not([class]) th {
background-color: rgba(0,0,0,0.3);
vertical-align: middle;
}

.md-typeset table:not([class]) tr:hover {
box-shadow: none;
}

.md-typeset table:not([class]) td {
border-top: 0px !important;
}

.md-typeset .md-typeset__table {
width: 100%;
display: block;
box-shadow: 0 2px 2px 0 rgba(0,0,0,.14), 0 1px 5px 0 rgba(0,0,0,.12), 0 3px 1px -2px rgba(0,0,0,.2);

}

@media only screen and (max-width: 76.1875em)
Expand Down Expand Up @@ -262,3 +368,6 @@ html .md-typeset .env details > :last-child {
object-fit: cover;
}

.hidden {
display: none;
}
2 changes: 1 addition & 1 deletion docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ failing tests. In case of issues (i.e. build failures), please ping us in the ch
Please continue reading our [CONTRIBUTING.md](https://github.com/strongbox/strongbox/blob/master/CONTRIBUTING.md).

!!! warning
For legal reasons we will request you to sign our <a href="/assets/resources/pdfs/ICLA.pdf" target="_blank">ICLA</a> before we can merge your
For legal reasons we will request you to sign our <a href="{{resources}}/pdfs/ICLA.pdf" target="_blank">ICLA</a> before we can merge your
pull request. The collected information is in no way provided to third-party companies nor anybody else.

**Refusing to sign the ICLA will leave us with no other choice but to close any pull request you might have opened.**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Logging
# Add logging to projects or modules

The logging in the application is set up using:

Expand Down
Loading

0 comments on commit bc9ac58

Please sign in to comment.