Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrotsos authored Apr 19, 2024
1 parent cea5504 commit 1972b5d
Show file tree
Hide file tree
Showing 45 changed files with 2,120 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pebble-docs/WEB-INF/web.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
</web-app>
37 changes: 37 additions & 0 deletions pebble-docs/build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<project name="pebble-website" default="build" basedir=".">

<property name="src.dir" value="${basedir}/content"/>
<property name="build.dir" value="${basedir}/build"/>

<property environment="env"/>

<target name="init">
<mkdir dir="${build.dir}"/>
</target>

<target name="build" depends="init">
<loadfile property="header" srcFile="${src.dir}/header.html"/>
<loadfile property="footer" srcFile="${src.dir}/footer.html"/>

<copy todir="${build.dir}">
<fileset dir="${src.dir}" />
</copy>

<replace dir="${build.dir}" token="@header@" value="${header}">
<include name="**/*.html"/>
</replace>
<replace dir="${build.dir}" token="@footer@" value="${footer}">
<include name="**/*.html"/>
</replace>

<delete file="${build.dir}/header.html" />
<delete file="${build.dir}/footer.html" />

<copy file="../changelog.txt" todir="${build.dir}" />
</target>

<target name="clean">
<delete dir="${build.dir}"/>
</target>

</project>
5 changes: 5 additions & 0 deletions pebble-docs/content/WEB-INF/web.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
</web-app>
27 changes: 27 additions & 0 deletions pebble-docs/content/antblog/blogger-newpost.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
@header@

<table width="100%" cellspacing="0" cellpadding="8" class="item">
<tr class="itemHeader">
<td colspan="2">
blogger.newPost
</td>
</tr>
<tr class="itemBody">
<td>
Antblog includes a task that can post a new blog entry to any Blogger API compatible blog. The task definition is as follows.
<pre> &lt;taskdef name="blogger.newPost" classname="pebble.ant.blogger.NewPostTask"/&gt;</pre>
The following example shows how to use it in a target. The Blogger API doesn't explicitly support titles and categories but, if specified,
they are wrapped up inside <code>&lt;title&gt;</code> and <code>&lt;category&gt;</code> tags respectively and prepended to the content.
<pre> &lt;blogger.newPost
url="http://localhost:8080/blog/xmlrpc"
blogid="test"
username="simon"
password="password"
title="Posting with Blogger API"
content="${content}"
category="java" /&gt;</pre>
</td>
</tr>
</table>

@footer@
35 changes: 35 additions & 0 deletions pebble-docs/content/antblog/getting-started.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
@header@

<table width="100%" cellspacing="0" cellpadding="8" class="item">
<tr class="itemHeader">
<td>
Getting Started
</td>
</tr>

<tr class="itemBody">
<td>
<p>
This section explains how to get started with Pebble antblog.
</p>

<p>
<b>Minimum Requirements</b>
<ol>
<li><a href="http://java.sun.com/j2se/downloads.html">Java 2 Platform, Standard Edition (J2SE) 1.4</a>
<li><a href="http://ant.apache.org">Apache Ant 1.6</a>
</ol>
</p>

<p>
<b>Installation</b>
<br /><br />
Copy the <code>pebble-antblog.jar</code> and <code>xmlrpc-1.2-b1.jar</code> files from the <code>pebble-antblog</code> directory of the distribution to a location on your local disk. To use
the tasks with Ant, make sure that the two JAR files are on your classpath, either by adding them explicitly or by dropping them into <code>$ANT_HOME/lib</code>. The
Ant tasks can then be used in the usual way.
</p>
</td>
</tr>
</table>

@footer@
36 changes: 36 additions & 0 deletions pebble-docs/content/antblog/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
@header@

<table width="100%" cellspacing="0" cellpadding="8" class="item">
<tr class="itemHeader">
<td colspan="2">
Pebble antblog
</td>
</tr>
<tr class="itemBody">
<td width="50%" valign="top">
<p>
<ol>
<li><a href="introduction.html">Introduction</a></li>
<li><a href="getting-started.html">Getting Started</a></li>
<li><a href="blogger-newpost.html">blogger.newPost</a></li>
<li><a href="metaweblog-newpost.html">metaWeblog.newPost</a></li>
<li><a href="metaweblog-newmediaobject.html">metaWeblog.newMediaObject</a></li>
</ol>
</p>
</td>
<td width="50%" align="center" valign="middle">
<div align="left">
<pre>
&lt;blogger.newPost
url="http://localhost:8080/blog/xmlrpc"
blogid="test"
username="simon"
password="password"
title="Build status"
content="${content}"
category="build" /&gt;</pre></div>
</td>
</tr>
</table>

@footer@
56 changes: 56 additions & 0 deletions pebble-docs/content/antblog/introduction.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
@header@

<table width="100%" cellspacing="0" cellpadding="8" class="item">
<tr class="itemHeader">
<td>
What is Pebble antblog?
</td>
</tr>
<tr class="itemBody">
<td>
<p>
Pebble antblog is a set of custom Ant tasks that allow you to update a blog from within your Ant build script. For example, you might want to update a blog
with the build status as a part of a continuous integration environment. A nice side-effect of posting such information to a blog
is that you get an RSS feed from your blog (that developers can subscribe to) and the build status is archived in the same way blog entries are. Some blogs also provide a way to
search over your blog entries, making it easy to find out how often the build failed! Antblog also includes a task that lets you upload
build artifacts to your blog, via the MetaWeblog API.
</p>

<p>
<table width="100%">
<tr>
<td valign="top">
<b>Features</b>
</td>
<td>
<ul>
<li>Post new blog entry via the Blogger API.</li>
<li>Post new blog entry via the MetaWeblog API.</li>
<li>Upload a file/image via the MetaWeblog API.</li>
</ul>
</td>
</tr>
</table>
</p>
</td>
</tr>
</table>

<table width="100%" cellspacing="0" cellpadding="8" class="item">
<tr class="itemHeader">
<td>
Minimum requirements
</td>
</tr>

<tr class="itemBody">
<td>
<ol>
<li><a href="http://java.sun.com/j2se/downloads.html">Java 2 Platform, Standard Edition (J2SE) 1.4</a>
<li><a href="http://ant.apache.org">Apache Ant 1.6</a>
</ol>
</td>
</tr>
</table>

@footer@
25 changes: 25 additions & 0 deletions pebble-docs/content/antblog/metaweblog-newmediaobject.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
@header@

<table width="100%" cellspacing="0" cellpadding="8" class="item">
<tr class="itemHeader">
<td colspan="2">
metaWeblog.newMediaObject
</td>
</tr>
<tr class="itemBody">
<td>
Antblog includes a task that can upload a file to any MetaWeblog API compatible blog. The task definition is as follows.
<pre> &lt;taskdef name="metaWeblog.newMediaObject" classname="pebble.ant.metaweblog.NewMediaObjectTask"/&gt;</pre>
The following example shows how to use it in a target.
<pre> &lt;metaWeblog.newMediaObject
url="http://localhost:8080/blog/xmlrpc"
blogid="test"
username="simon"
password="password"
src="${build.dir}/${some.file}"
dest="files/${some.file}" /&gt;</pre>
</td>
</tr>
</table>

@footer@
26 changes: 26 additions & 0 deletions pebble-docs/content/antblog/metaweblog-newpost.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
@header@

<table width="100%" cellspacing="0" cellpadding="8" class="item">
<tr class="itemHeader">
<td colspan="2">
blogger.newPost
</td>
</tr>
<tr class="itemBody">
<td>
Antblog includes a task that can post a new blog entry to any MetaWeblog API compatible blog. The task definition is as follows.
<pre> &lt;taskdef name="metaWeblog.newPost" classname="pebble.ant.metaweblog.NewPostTask"/&gt;</pre>
The following example shows how to use it in a target.
<pre> &lt;metaWeblog.newPost
url="http://localhost:8080/blog/xmlrpc"
blogid="test"
username="simon"
password="password"
title="Posting with MetaWeblog API"
content="${content}"
category="java" /&gt;</pre>
</td>
</tr>
</table>

@footer@
41 changes: 41 additions & 0 deletions pebble-docs/content/deskblog/blog-entries.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
@header@

<table width="100%" cellspacing="0" cellpadding="8" class="item">
<tr class="itemHeader">
<td>
Blog Entries
</td>
</tr>
<tr class="itemBody">
<td>
<p>
A blog entry is typically something like a short article, piece of news, insight, abstract, opinion and so on. From a technical perspective, blog entries in Pebble are just short pieces of HTML that represent the content that you wish to display. This can be anything from a simple piece of text to an elaborate collection of text, images, tables, etc. In addition to this, Pebble stores other pieces of information alongside your blog entries such as a title, the date/time of publication and author.
</p>

<p>
<h5>Adding a Blog Entry</h5>
<img src="./images/blog-entries-1.jpg" align="right" hspace="8" />To add a new blog entry, choose <b>New Blog Entry...</b> from the <b>File</b> menu. In this popup window, just fill in the title and main body of the entry. When you've finished writing the entry, clicking the <b>Preview</b> tab will show you what your new entry will look like. If necessary, you can make further changes and preview them.
</p>

<p>
When you're happy with the entry, click the <b>OK</b> button.

The body of a blog entry is just a XHTML/HTML fragment, meaning that you can use any XHTML/HTML tags you like for markup and formatting. Common examples include using bold and italics. Also, you can include other elements such as hyperlinks and <a href="images.html">images</a>.

For convenience when posting code and HTML fragments you can enclose these within &lt;escape&gt; and &lt;/escape&gt; tags. In doing so, any < or > characters will be automatically escaped to &amp;lt; and &amp;gt; respectively.
</p>

<p>
<h5>Editing a Blog Entry</h5>
Blog entries can be edited at any time after they have been posted. To edit an entry, double-click the appropriate blog entry in the main table. This opens the same window used to add a new entry, and you can again edit, preview and click <b>OK</b> when finished.
</p>

<p>
<h5>Removing a Blog Entry</h5>
Existing blog entries can also be removed at any time. To remove an entry, choose <b>Delete</b> from the <b>File</b> menu after highlighting the entry that you would like to delete. This will open a popup window asking you to confirm your action.
</p>
</td>
</tr>
</table>

@footer@
45 changes: 45 additions & 0 deletions pebble-docs/content/deskblog/getting-started.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
@header@

<table width="100%" cellspacing="0" cellpadding="8" class="item">
<tr class="itemHeader">
<td>
Getting Started
</td>
</tr>

<tr class="itemBody">
<td>
<p>
This section explains how to get started with Pebble deskblog.
</p>

<p>
<b>Minimum Requirements</b>
<ol>
<li><a href="http://java.sun.com/j2se/downloads.html">Java 2 Platform, Standard Edition (J2SE) 1.4</a>
</ol>
</p>

<p>
<b>Installation</b>
<br /><br />
Pebble deskblog doesn't need to be installed, just copy the <code>pebble-deskblog</code> directory from the Pebble distribution to a directory on your disk. For Mac OS X users, there is a specific Mac package that provides greater integration with the Dock.
</p>

<p>
<b>Starting deskblog</b>
<br /><br />
To start deskblog, navigate to the directory on your disk containing deskblog and double-click on the <code>pebble-deskblog.jar</code> file. Alternatively, from the command line, type <code>java -jar pebble-deskblog.jar</code>. Mac OS X users can run the Mac OS X specific package.
</p>

<p>
By default, deskblog stores all of the blog data in the <code>${user.home}/blog</code> directory. To change this, just provide an alternative path as an argument when starting deskblog. After the splash screen you will
be presented with the main window as follows.
<br /><br /><img src="./images/getting-started-1.jpg" />
<br /><br />That's it - you've now installed Pebble and are ready to start adding <a href="blog-entries.html">blog entries</a>.
</p>
</td>
</tr>
</table>

@footer@
33 changes: 33 additions & 0 deletions pebble-docs/content/deskblog/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
@header@

<table width="100%" cellspacing="0" cellpadding="8" class="item">
<tr class="itemHeader">
<td colspan="2">
Pebble deskblog
</td>
</tr>
<tr class="itemBody">
<td width="50%" valign="top">
<p>
Pebble deskblog is still under development - the version referenced here and included in the distribution is an alpha version.
<ol>
<li><a href="introduction.html">Introduction</a></li>
<li><a href="getting-started.html">Getting Started</a></li>
<li><a href="blog-entries.html">Blog Entries</a></li>
<li>Images</li>
<li>Files</li>
<li><a href="migration.html">Migrating to Pebble weblog</a></li>
</ol>
</p>

<p>
Start deskblog from <a href="http://pebble.sourceforge.net/deskblog/pebble-deskblog.jnlp">here</a> using Java Web Start.
</p>
</td>
<td width="50%" align="center" valign="middle">
<img src="../images/pebble-deskblog.jpg" border="0" />
</td>
</tr>
</table>

@footer@
Loading

0 comments on commit 1972b5d

Please sign in to comment.