Skip to content

Commit

Permalink
Adapt to Foundation website changes
Browse files Browse the repository at this point in the history
- set baseurl to eclipse.dev
- deploy xtend under /Xtext/xtend

See #2706

Signed-off-by: Christian Dietrich <[email protected]>
  • Loading branch information
cdietrich committed Jun 18, 2023
1 parent a5c7d50 commit 9a4e52b
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 32 deletions.
48 changes: 24 additions & 24 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ spec:
git clone -b master [email protected]:eclipse/xtext-website-publish.git deploy-xtext-git-repo
'''
}
sshagent(['git.eclipse.org-bot-ssh']) { //
sh '''
rm -rf deploy-xtend-git-repo
git clone -b master ssh://[email protected]:29418/www.eclipse.org/xtend deploy-xtend-git-repo
'''
}
// sshagent(['git.eclipse.org-bot-ssh']) { //
// sh '''
// rm -rf deploy-xtend-git-repo
// git clone -b master ssh://[email protected]:29418/www.eclipse.org/xtend deploy-xtend-git-repo
// '''
// }
}
}
stage('Generate site') {
Expand All @@ -71,7 +71,7 @@ spec:
dir ('git-repo/xtend-website') {
sh '''
# generate things in _site
bundle exec jekyll build
bundle exec jekyll build --destination ../xtext-website/_site/xtend
'''
}
}
Expand All @@ -89,16 +89,16 @@ spec:
git status
'''
}
dir ('deploy-xtend-git-repo') {
sh '''
git config user.name "genie-xtext"
git config user.email "[email protected]"
cp -r $WORKSPACE/git-repo/xtend-website/_site/* .
git diff
git add --all :/ && git commit -m "Generated from commit: https://github.com/eclipse/xtext/commit/$GIT_COMMIT"
git status
'''
}
// dir ('deploy-xtend-git-repo') {
// sh '''
// git config user.name "genie-xtext"
// git config user.email "[email protected]"
// cp -r $WORKSPACE/git-repo/xtend-website/_site/* .
// git diff
// git add --all :/ && git commit -m "Generated from commit: https://github.com/eclipse/xtext/commit/$GIT_COMMIT"
// git status
// '''
// }
}
}
stage('Deploy') {
Expand All @@ -111,13 +111,13 @@ spec:
'''
}
}
dir ('deploy-xtend-git-repo') {
sshagent(['git.eclipse.org-bot-ssh']) { //
sh '''
git push origin master
'''
}
}
// dir ('deploy-xtend-git-repo') {
// sshagent(['git.eclipse.org-bot-ssh']) { //
// sh '''
// git push origin master
// '''
// }
// }
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions xtend-website/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ description: > # this means to ignore newlines until "baseurl:"
Java 5 compatible source code. You can use any existing Java library seamlessly.
The compiled output is readable and pretty-printed, and tends to run as fast as
the equivalent handwritten Java code.
baseurl: "/xtend" # the subpath of your site, e.g. /blog/
url: "http://xtend-lang.org" # the base hostname & protocol for your site
baseurl: "/Xtext/xtend" # the subpath of your site, e.g. /blog/
url: "https://eclipse.dev" # the base hostname & protocol for your site
twitter_username: xtendlang
github_username: xtext
encoding: UTF-8
Expand Down Expand Up @@ -39,7 +39,7 @@ src:
xtext: "https://github.com/eclipse/xtext/tree/main"

javadoc:
java: "http://docs.oracle.com/javase/11/docs/api"
java: "https://docs.oracle.com/javase/11/docs/api"
guava: "https://guava.dev/releases/30.1-jre/api/docs/"

edit-repo : "https://github.com/eclipse/xtext-website/tree/main/xtend-website/"
10 changes: 5 additions & 5 deletions xtext-website/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: > # this means to ignore newlines until "baseurl:"
top-notch Eclipse IDE integration. It comes with great defaults for all these aspects which at the same time can
be easily tailored to your individual needs.
baseurl: "/Xtext" # the subpath of your site, e.g. /blog/
url: "http://xtext.org" # the base hostname & protocol for your site
url: "https://eclipse.dev" # the base hostname & protocol for your site
twitter_username: xtext
github_username: xtext-dev
encoding: UTF-8
Expand Down Expand Up @@ -41,11 +41,11 @@ src:
emf: "https://git.eclipse.org/r/plugins/gitiles/emf/org.eclipse.emf/+/refs/tags/R2_20_0"

javadoc:
eclipse-platform: "http://help.eclipse.org/luna/topic/org.eclipse.platform.doc.isv/reference/api"
eclipse-jdt: "http://help.eclipse.org/luna/topic/org.eclipse.jdt.doc.isv/reference/api"
java: "http://docs.oracle.com/javase/8/docs/api"
eclipse-platform: "https://help.eclipse.org/luna/topic/org.eclipse.platform.doc.isv/reference/api"
eclipse-jdt: "https://help.eclipse.org/luna/topic/org.eclipse.jdt.doc.isv/reference/api"
java: "https://docs.oracle.com/javase/8/docs/api"
javaee: "https://docs.oracle.com/javaee/7/api"
junit: "http://junit.sourceforge.net/javadoc"
junit: "https://junit.sourceforge.net/javadoc"
guice: "https://google.github.io/guice/api-docs/latest/javadoc"

edit-repo : "https://github.com/eclipse/xtext-website/edit/published/xtext-website/"

0 comments on commit 9a4e52b

Please sign in to comment.