Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add index.html to update site
  • Loading branch information
ncjones committed Apr 4, 2015
1 parent 6c47cc7 commit b520a73
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 6 deletions.
1 change: 0 additions & 1 deletion .gitignore
Expand Up @@ -3,5 +3,4 @@ bin
.classpath
.project
.settings
site
*.swp
12 changes: 7 additions & 5 deletions publish.sh
@@ -1,15 +1,17 @@
#!/bin/sh
base_dir=$(cd $(dirname $0) && pwd)
site_dir=$base_dir/site
site_src_dir=$base_dir/site/src
site_build_dir=$base_dir/site/target
p2_repo_dir=$base_dir/editorconfig-eclipse-p2/target/repository
rm -rf $site_dir
mkdir $site_dir
rm -rf $site_build_dir
mkdir $site_build_dir
if [ ! -d $p2_repo_dir ]; then
echo ERROR: $p2_repo_dir does not exist. Run '`mvn install`'.
exit 1
fi
cp -r $p2_repo_dir $site_dir
cd $site_dir
cp -r $p2_repo_dir $site_build_dir
cp -r $site_src_dir/* $site_build_dir
cd $site_build_dir
git init
git add .
git commit -m 'add p2 repo'
Expand Down
59 changes: 59 additions & 0 deletions site/src/repository/index.html
@@ -0,0 +1,59 @@
<!DOCTYPE html>
<html>
<head>
<title>EditorConfig Eclipse Update Site</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
color: #777;
font-family: sans-serif;
}
#layout {
position: relative;
padding-left: 0;
}
.content {
margin: 0 auto;
padding: 0 2em;
max-width: 800px;
margin-bottom: 50px;
line-height: 1.6em;
}
.header {
margin: 0;
color: #333;
text-align: center;
padding: 2.5em 2em 0;
}
.header h1 {
margin: 0.2em 0;
font-size: 3em;
font-weight: 300;
}
blockquote { font-family: monospace; }
</style>
</head>
<body>
<div id="layout">
<div id="main">
<div class="header">
<h1>EditorConfig Eclipse Update Site</h1>
</div>
<div class="content">
<p>
This is an Eclipse update site for the EditorConfig Eclipse Plugin. You
can install the plugin via the Eclipse Update Manager by using this
site&apos;s URL as an Eclipse "Software Site":
</p>

<blockquote>https://editorconfig-eclipse.github.io/repository</blockquote>

<p>
See <a href="http://help.eclipse.org/luna/index.jsp?topic=/org.eclipse.platform.doc.user/tasks/tasks-124.htm">Installing
new software</a> from the Eclipse user manual for more details.
</p>
</div>
</div>
</div>
</body>
</html>

0 comments on commit b520a73

Please sign in to comment.