Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
spring-cloud-netflix
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openSource
spring-cloud-netflix
Commits
c8c4dfba
Commit
c8c4dfba
authored
Aug 22, 2016
by
Marcin Grzejszczak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updating ghpages for all projects
parent
0bed5441
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
ghpages.sh
docs/src/main/asciidoc/ghpages.sh
+3
-2
No files found.
docs/src/main/asciidoc/ghpages.sh
View file @
c8c4dfba
...
...
@@ -32,7 +32,7 @@ function check_if_anything_to_sync() {
exit
0
fi
if
!
[
-d
docs/target/generated-docs
]
;
then
if
!
[
-d
docs/target/generated-docs
]
&&
!
[
"
${
BUILD
}
"
==
"yes"
]
;
then
echo
"No gh-pages sources in docs/target/generated-docs, so not syncing"
exit
0
fi
...
...
@@ -101,12 +101,13 @@ function add_docs_from_target() {
local
clonedStatic
=
${
ROOT_FOLDER
}
/target/spring-cloud-static
if
[[
!
-e
"
${
clonedStatic
}
/.git"
]]
;
then
echo
"Cloning Spring Cloud Static to target"
git clone
${
SPRING_CLOUD_STATIC_REPO
}
${
clonedStatic
}
git clone
${
SPRING_CLOUD_STATIC_REPO
}
${
clonedStatic
}
&&
git checkout gh-pages
else
echo
"Spring Cloud Static already cloned - will pull changes"
cd
${
clonedStatic
}
&&
git checkout gh-pages
&&
git pull origin gh-pages
fi
DESTINATION_REPO_FOLDER
=
${
clonedStatic
}
/
${
REPO_NAME
}
mkdir
-p
${
DESTINATION_REPO_FOLDER
}
else
if
[[
!
-e
"
${
DESTINATION
}
/.git"
]]
;
then
echo
"[
${
DESTINATION
}
] is not a git repository"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment