You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by nt...@apache.org on 2018/01/09 13:18:05 UTC

cayenne-website git commit: Replace raw html with shortcode

Repository: cayenne-website
Updated Branches:
  refs/heads/master ff0d9c229 -> ef5745c87


Replace raw html with shortcode


Project: http://git-wip-us.apache.org/repos/asf/cayenne-website/repo
Commit: http://git-wip-us.apache.org/repos/asf/cayenne-website/commit/ef5745c8
Tree: http://git-wip-us.apache.org/repos/asf/cayenne-website/tree/ef5745c8
Diff: http://git-wip-us.apache.org/repos/asf/cayenne-website/diff/ef5745c8

Branch: refs/heads/master
Commit: ef5745c87663508f58da73defed7aaf77ad60187
Parents: ff0d9c2
Author: stariy <st...@gmail.com>
Authored: Tue Jan 9 16:17:58 2018 +0300
Committer: stariy <st...@gmail.com>
Committed: Tue Jan 9 16:17:58 2018 +0300

----------------------------------------------------------------------
 src/main/site/content/about/success-stories.md  | 30 +++++++-------------
 src/main/site/content/about/support.md          |  2 +-
 src/main/site/content/dev/building-cayenne.md   |  6 ++--
 src/main/site/content/dev/cms-guide.md          |  8 +++---
 src/main/site/content/dev/code-repository.md    |  3 +-
 .../site/content/dev/how_development_happens.md |  9 ++----
 src/main/site/content/dev/release-guide.md      | 18 ++++++------
 src/main/site/content/dev/running-unit-tests.md | 13 +++++----
 src/main/site/content/mailing-lists.md          |  6 ++--
 src/main/site/layouts/shortcodes/gap.html       | 11 +++++++
 10 files changed, 50 insertions(+), 56 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cayenne-website/blob/ef5745c8/src/main/site/content/about/success-stories.md
----------------------------------------------------------------------
diff --git a/src/main/site/content/about/success-stories.md b/src/main/site/content/about/success-stories.md
index 7ecf78a..72e28ef 100644
--- a/src/main/site/content/about/success-stories.md
+++ b/src/main/site/content/about/success-stories.md
@@ -14,8 +14,7 @@ sites that use Cayenne. If you want to add your Cayenne site to this page,
 please drop a note to cayenne-user list or directly to "andrus at
 objectstyle.org".</p>
 
-<div class="pb-2"><!-- gap 2rem --></div>
-
+{{% gap 2 %}}
 
 <a name="Successstories-AccessPointInc.(http://www.accesspointinc.com/)"></a>
 #### AccessPoint Inc. (<http://www.accesspointinc.com/>)
@@ -29,8 +28,7 @@ errors. In addition, Cayenne is used in our internal reporting application.
 These applications and thus Cayenne are central to the financial health of
 the company."
 
-<div class="pb-2"><!-- gap 2rem --></div>
-
+{{% gap 2 %}}
 
 <a name="Successstories-GlobalLegalInformationNetwork(GLIN)(http://www.glin.gov/)"></a>
 #### Global Legal Information Network (GLIN) (<http://www.glin.gov/>)
@@ -46,8 +44,7 @@ currently and will support 14 languages in the nearest future, thus
 becoming the most internationalized site in the federal government, after
 the IRS.
 
-<div class="pb-2"><!-- gap 2rem --></div>
-
+{{% gap 2 %}}
 
 <a name="Successstories-ishonCourse(http://www.ish.com.au/oncourse)"></a>
 #### ish onCourse (<http://www.ish.com.au/oncourse>)
@@ -61,8 +58,7 @@ real time data validation, replication to a web site and the use of caching
 and paging in Cayenne for the application to work well across slow WAN
 links."
 
-<div class="pb-2"><!-- gap 2rem --></div>
-
+{{% gap 2 %}}
 
 <a name="Successstories-NationalHockeyLeague(http://www.nhl.com/)"></a>
 #### National Hockey League (<http://www.nhl.com/>)
@@ -74,8 +70,7 @@ millions of hits a day, and are relying on Cayenne for all database access.
 The applications are often upgraded with the bleeding edge builds from
 Cayenne trunk to take advantage of the latest framework features.
 
-<div class="pb-2"><!-- gap 2rem --></div>
-
+{{% gap 2 %}}
 
 <a name="Successstories-ObjectVisualizer"></a>
 #### ObjectVisualizer
@@ -88,8 +83,7 @@ Interactive Data Table, Report Generation, Chart Creation, and Plugin
 Architecture. ObjectVisualizer has a Cayenne plugin to work with Cayenne
 mapping projects.
 
-<div class="pb-2"><!-- gap 2rem --></div>
-
+{{% gap 2 %}}
 
 <a name="Successstories-PixxuresInc.(http://www.pixxures.ca/)"></a>
 #### Pixxures Inc. (<http://www.pixxures.ca/>)
@@ -102,8 +96,7 @@ production system. Now Pixxures plans to revamp their main software to use
 Cayenne instead of the connection pooling system and the other data access
 methods.
 
-<div class="pb-2"><!-- gap 2rem --></div>
-
+{{% gap 2 %}}
 
 <a name="Successstories-Pogodak"></a>
 #### Pogodak
@@ -114,8 +107,7 @@ using Cayenne to store and retrieve indexed data for blog search engine:
 <http://www.pogodak.ba/index.jsp?tab=blog>. There are plans to switch to
 Cayenne similar sites for Slovenia, Serbia and Macedonia.
 
-<div class="pb-2"><!-- gap 2rem --></div>
-
+{{% gap 2 %}}
 
 <a name="Successstories-ProvestaWonen(http://www.provesta.nl/)"></a>
 #### Provesta Wonen (<http://www.provesta.nl/>)
@@ -126,8 +118,7 @@ the image base. The backend reads reports from an ERP-like system and based
 on that information can appoint the images to certain addresses and
 complexes (collection of addresses).
 
-<div class="pb-2"><!-- gap 2rem --></div>
-
+{{% gap 2 %}}
 
 <a name="Successstories-RossoAlice(http://www.rossoalice.it/)"></a>
 #### RossoAlice (<http://www.rossoalice.it/>)
@@ -137,8 +128,7 @@ download music, watch films, download games, watch television news and
 more. The Java database layer for the authentication / authorization
 component is developed with Cayenne.
 
-<div class="pb-2"><!-- gap 2rem --></div>
-
+{{% gap 2 %}}
 
 <a name="Successstories-Unilever(http://www.rossoalice.it/)"></a>
 #### Unilever (<http://www.unilever-bilddatenbank.de/>), Ascensys (<http://www.ascensys.de/>)

http://git-wip-us.apache.org/repos/asf/cayenne-website/blob/ef5745c8/src/main/site/content/about/support.md
----------------------------------------------------------------------
diff --git a/src/main/site/content/about/support.md b/src/main/site/content/about/support.md
index fffce9d..7040ee5 100644
--- a/src/main/site/content/about/support.md
+++ b/src/main/site/content/about/support.md
@@ -14,7 +14,7 @@ aliases:
 * [Cayenne user mailing list](/mailing-lists.html) is a place to get help from the Cayenne community and discuss general Cayenne topics. Subscription is required to post messages and participate in discussion, and of course you can browse past archives anonymously.
 * [Stackoverflow](http://stackoverflow.com/questions/tagged/apache-cayenne) is another place to ask questions and search the existing knowledgebase of answers.
 
-<div class="pb-3"><!-- gap 5rem --></div>
+{{% gap %}}
 
 
 ## Commercial Support And Consulting

http://git-wip-us.apache.org/repos/asf/cayenne-website/blob/ef5745c8/src/main/site/content/dev/building-cayenne.md
----------------------------------------------------------------------
diff --git a/src/main/site/content/dev/building-cayenne.md b/src/main/site/content/dev/building-cayenne.md
index f99c2a9..6be62b4 100644
--- a/src/main/site/content/dev/building-cayenne.md
+++ b/src/main/site/content/dev/building-cayenne.md
@@ -19,7 +19,7 @@ Here are the MAVEN_OPTS that should be used for the build. MAVEN_OPTS variable c
 or placed in *$HOME/.mavenrc*. Optimal values vary from platform to platform and between Cayenne versions, 
 but these should probably work for everyone:
 
-    MAVEN_OPTS="-Djava.net.preferIPv4Stack=true -Xms512m -Xmx512m -XX:MaxPermSize=128m"
+    MAVEN_OPTS="-Djava.net.preferIPv4Stack=true -Xms512m"
 
 
 <div class="pb-3"><!-- gap 3rem --></div>
@@ -36,10 +36,10 @@ common flavor) :
     mvn clean install
     
 In order to skip the unit tests (to speed up the build process or because
-some tests are failing), add *"-Dmaven.test.skip=true"* to any build
+some tests are failing), add *"-DskipTests"* to any build
 flavor:
 
-    mvn clean install -Dmaven.test.skip=true
+    mvn clean install -DskipTests
 
 For the build to produce a release-like assembly, activate "assembly"
 profile. Additionally activate a profile specific for the target platform

http://git-wip-us.apache.org/repos/asf/cayenne-website/blob/ef5745c8/src/main/site/content/dev/cms-guide.md
----------------------------------------------------------------------
diff --git a/src/main/site/content/dev/cms-guide.md b/src/main/site/content/dev/cms-guide.md
index 42c3676..65a93ff 100644
--- a/src/main/site/content/dev/cms-guide.md
+++ b/src/main/site/content/dev/cms-guide.md
@@ -9,7 +9,7 @@ https://git-wip-us.apache.org/repos/asf/cayenne-website.git
 
 Or from GitHub mirror (in read only mode): https://github.com/apache/cayenne-website.git
 
-<div class="pb-3"><!-- gap 3rem --></div>
+{{% gap %}}
 
 ## Dev mode
 
@@ -26,7 +26,7 @@ _You can change host and port by setting `dev.host` and `dev.port` properties:_
    
     mvn -Ddev.host="my.local" -Ddev.port="8080"
 
-<div class="pb-3"><!-- gap 3rem --></div>
+{{% gap %}}
 
 ## Publish
 
@@ -42,7 +42,7 @@ Don't forget to push you source's changes so others won't rewrite them.
 
 *NOTE*: This process can be automated by Jenkins. It can run publish on every commit to `master`. But at first it is better to use manual publishing.
 
-<div class="pb-3"><!-- gap 3rem --></div>
+{{% gap %}}
 
 ## Content modifications
 
@@ -70,7 +70,7 @@ To update site content with information about new Cayenne version you need to pe
 * Update documentation, this can be done with `build-docs.sh` script. 
   You can run it like this: `./build-docs.sh 4.1.M2` 
 
-<div class="pb-3"><!-- gap 3rem --></div>
+{{% gap %}}
 
 ## Advanced 
 

http://git-wip-us.apache.org/repos/asf/cayenne-website/blob/ef5745c8/src/main/site/content/dev/code-repository.md
----------------------------------------------------------------------
diff --git a/src/main/site/content/dev/code-repository.md b/src/main/site/content/dev/code-repository.md
index 33a9e52..da916a3 100644
--- a/src/main/site/content/dev/code-repository.md
+++ b/src/main/site/content/dev/code-repository.md
@@ -19,8 +19,7 @@ It can be cloned by anyone, and that's where committers would ultimately push th
 
 Feel free to fork and/or star Cayenne there.
 
-<div class="pb-3"><!-- gap 3rem --></div> 
-
+{{% gap %}}
 
 ## Legacy Subversion Repository
 

http://git-wip-us.apache.org/repos/asf/cayenne-website/blob/ef5745c8/src/main/site/content/dev/how_development_happens.md
----------------------------------------------------------------------
diff --git a/src/main/site/content/dev/how_development_happens.md b/src/main/site/content/dev/how_development_happens.md
index ebc4f8c..e3b2162 100644
--- a/src/main/site/content/dev/how_development_happens.md
+++ b/src/main/site/content/dev/how_development_happens.md
@@ -22,8 +22,7 @@ For further details consult the official [Apache handbook](http://www.apache.org
 In addition to the general Apache responsibilities, this is what is
 expected of everyone with privileges within the Cayenne project.
 
-<div class="pb-3"><!-- gap 3rem --></div> 
-
+{{% gap %}}
 
 ## Contribution
 Contribution to the project can take many forms. Updating documentation and
@@ -32,8 +31,7 @@ Everyone here is a volunteer, so quantity of effort is not the most
 important factor. Help when you can, but let the rest of the community know
 if you will be out of action for an extended period.
 
-<div class="pb-3"><!-- gap 3rem --></div> 
-
+{{% gap %}} 
 
 ## Mailing lists
 Cayenne takes special pride in the support we give to users of the
@@ -44,8 +42,7 @@ pleasant places to be for all users regardless of their English language
 skills or technical experience. When things might go off the rails, a
 gentle nudge back in the right direction is all that is needed.
 
-<div class="pb-3"><!-- gap 3rem --></div> 
-
+{{% gap %}} 
 
 ## Voting
 Each release should be voted on by the committers and PMC members. Even

http://git-wip-us.apache.org/repos/asf/cayenne-website/blob/ef5745c8/src/main/site/content/dev/release-guide.md
----------------------------------------------------------------------
diff --git a/src/main/site/content/dev/release-guide.md b/src/main/site/content/dev/release-guide.md
index ecd1409..8e5d41f 100644
--- a/src/main/site/content/dev/release-guide.md
+++ b/src/main/site/content/dev/release-guide.md
@@ -10,9 +10,7 @@ that we are publishing both downloadable assemblies and Maven artifacts, so
 we have to build and publish things twice. Both forms of Cayenne release
 are also available for evaluation during the vote.
 
-
-<div class="pb-3"><!-- gap 3rem --></div>
-
+{{% gap %}}
 
 ## Prerequisites
 
@@ -24,7 +22,7 @@ More info can be found at [http://www.apache.org/dev/release-signing.html](http:
  for details.
 * As Cayenne has modules which require Java 1.8, you should use Java 1.8 to perform the release.
 
-<div class="pb-3"><!-- gap 3rem --></div>
+{{% gap %}}
 
 
 ## Preparing Sources
@@ -37,7 +35,7 @@ source. Then read the report and fix any issues.
         cd cayenne
         ./rat.sh ~/Desktop/apache-rat-0.9/apache-rat-0.9.jar  > report.txt
 
-<div class="pb-3"><!-- gap 3rem --></div>
+{{% gap %}}
     
 
 ## Tagging the Repo and Releasing Maven Artifacts 
@@ -57,7 +55,7 @@ repository that was just created during "*mvn release:perform*", click
 be used by the people voting on Cayenne. It may look like this:
 [https://repository.apache.org/content/repositories/orgapachecayenne-052/](https://repository.apache.org/content/repositories/orgapachecayenne-052/) 
 
-<div class="pb-3"><!-- gap 3rem --></div>
+{{% gap %}}
 
 
 ## Releasing Downloadable Assemblies
@@ -100,7 +98,7 @@ work ("-u" option can be omitted if you have only one GPG key):
 * Assemblies, signature and checksum files are committed to the special SVN repo
   used for staging development releases: [https://dist.apache.org/repos/dist/dev/cayenne/](https://dist.apache.org/repos/dist/dev/cayenne/). Use a separate folder for each release. For more info on this repository check [the infrastructure docs](http://apache.org/dev/release.html#upload-ci).
 
-<div class="pb-3"><!-- gap 3rem --></div>
+{{% gap %}}
 
 
 ## Voting
@@ -124,7 +122,7 @@ main jar passes some basic tests.
 running them manually or verifying that Hudson has run those tests against
 the equivalent source). 
 
-<div class="pb-3"><!-- gap 3rem --></div>
+{{% gap %}}
 
 
 ## Publishing the Release
@@ -137,7 +135,7 @@ select the staging repo and click "Release".
         $ svn mv https://dist.apache.org/repos/dist/dev/cayenne/X.X \
              https://dist.apache.org/repos/dist/release/cayenne/
     
-<div class="pb-3"><!-- gap 3rem --></div>
+{{% gap %}}
 
 
 ## After the release
@@ -164,7 +162,7 @@ add any new features
 * Send a notification email to announceATapache.org
 * Update [http://en.wikipedia.org/wiki/Apache_Cayenne](http://en.wikipedia.org/wiki/Apache_Cayenne)
 
-<div class="pb-3"><!-- gap 3rem --></div>
+{{% gap %}}
 
     
 ## Reference:

http://git-wip-us.apache.org/repos/asf/cayenne-website/blob/ef5745c8/src/main/site/content/dev/running-unit-tests.md
----------------------------------------------------------------------
diff --git a/src/main/site/content/dev/running-unit-tests.md b/src/main/site/content/dev/running-unit-tests.md
index 986ddb2..18b879f 100644
--- a/src/main/site/content/dev/running-unit-tests.md
+++ b/src/main/site/content/dev/running-unit-tests.md
@@ -12,6 +12,8 @@ Maven.
 
 Maven [build prerequisites and recommended settings](/dev/building-cayenne.html) apply here.    
     
+{{% gap 2 %}}    
+    
 ## Running Against Embedded HSQLDB
     
 No extra setup is required. Just run Maven:
@@ -24,7 +26,7 @@ or
     $ cd cayenne
     $ mvn clean verify
 
-<div class="pb-3"><!-- gap 3rem --></div>
+{{% gap %}}
 
     
 ## Running Against In-memory Database
@@ -41,7 +43,7 @@ For this databases you can run tests without any additional configuration by onl
  
     $ mvn verify -DcayenneTestConnection=derby    
 
-<div class="pb-3"><!-- gap 3rem --></div>
+{{% gap %}}
 
     
 ## Running Against Database in Docker (only on Linux)
@@ -56,14 +58,14 @@ or
     
     $ mvn verify -DcayenneTestConnection=postgres-docker    
 
-<div class="pb-3"><!-- gap 3rem --></div>
+{{% gap %}}
 
     
 ## Running Against a Specific Database
 
 Final option to run tests against any supported database is with manual configuration. 
 
-<div class="pb-1l2"><!-- gap .5rem --></div>
+{{%gap 1l2 %}}
 
     
 ##### Step 1. Install JDBC Driver Jars in a Local Maven Repo
@@ -98,8 +100,7 @@ the POM or the examples below.
     $ mvn install:install-file -Dfile=jconn3.jar -DgroupId=com.sybase \
            -DartifactId=sybase-driver -Dversion=12 -Dpackaging=jar -DgeneratePom=true
 
-<div class="pb-3l2"><!-- gap 1.5rem --></div>
-
+{{% gap 3l2 %}}
     
 ##### Step 2. Run Tests Against Configured Data Source
     

http://git-wip-us.apache.org/repos/asf/cayenne-website/blob/ef5745c8/src/main/site/content/mailing-lists.md
----------------------------------------------------------------------
diff --git a/src/main/site/content/mailing-lists.md b/src/main/site/content/mailing-lists.md
index f197730..d4ddb34 100644
--- a/src/main/site/content/mailing-lists.md
+++ b/src/main/site/content/mailing-lists.md
@@ -21,8 +21,7 @@ To post a message use the following address: user@cayenne.apache.org
 * [Apache Message Archive - Old Style](http://mail-archives.apache.org/mod_mbox/cayenne-user/)
 * [ObjectStyle.org Archive](http://objectstyle.org/cayenne/lists/cayenne-user/) (legacy, does not store new messages, but has very old messages not available elsewhere)
 
-<div class="pb-3"><!-- gap 3rem --></div>
-
+{{% gap %}}
 
 ## Developer Mailing List
 
@@ -41,8 +40,7 @@ To post a message use the following address: dev@cayenne.apache.org
 * [Apache Message Archive - Old Style](http://mail-archives.apache.org/mod_mbox/cayenne-dev/)
 * [ObjectStyle.org Archive](http://objectstyle.org/cayenne/lists/cayenne-devel/) (legacy, does not store new messages, but has very old messages not available elsewhere)
 
-<div class="pb-2"><!-- gap 2rem --></div>
-
+{{% gap 2 %}}
 
 ## Commits Mailing List
 

http://git-wip-us.apache.org/repos/asf/cayenne-website/blob/ef5745c8/src/main/site/layouts/shortcodes/gap.html
----------------------------------------------------------------------
diff --git a/src/main/site/layouts/shortcodes/gap.html b/src/main/site/layouts/shortcodes/gap.html
new file mode 100644
index 0000000..e0790d6
--- /dev/null
+++ b/src/main/site/layouts/shortcodes/gap.html
@@ -0,0 +1,11 @@
+<!--
+This short code simply insert one of pb-x classes from bootstrap, see bootstrap docs for possible values.
+Default is pb-3, i.e. padding-bottom: 3rem.
+ -->
+{{ if (.Get 0) -}}
+{{- with .Get 0 -}}
+<div class="pb-{{ . }}"><!-- gap user defined rem --></div>
+{{- end -}}
+{{- else -}}
+<div class="pb-3"><!-- gap 3rem --></div>
+{{- end }}
\ No newline at end of file