mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel L├ęcharny <elecha...@gmail.com>
Subject Web site & Javadoc
Date Fri, 07 Nov 2014 14:10:59 GMT
Hi guys,

this mail is just a quick expalantion about how we should proceed to
export the Javadoc & XRef pages on the MINA website.

First of all, let's talk about the general mechanisms.

- The web site is not updated live. In fact, when you are changing some
content, it's done in three passes
  1) you locally apply your changes
  2) you commit those changes
  3) if you see that the change is correct, you publish it.

Ok, fine, but what does it mean ?

The content is stored into a SVN based repository
(http://svn.apache.org/repos/asf//mina/site/trunk/), so that everyone
can check it out, and change it locally. When you ae done, you commit
your change, and a hook will process them and push the resulting HTML
generated pages onto a staging site.

The staging site is available on http://mina.staging.apache.org. It's
almost immediate (a matter of one or two seconds, usually), so you can
immediately control your changes.

Ok, now let's say you are good to go : you have to publish the site
using a CMS (see http://www.apache.org/dev/cmsref.html#publishing for
more information). What happens then is that *every single pages and
content* from teh staging site is copied to the production site. More
than that, if a directory/file is present on the production site, and
not on the staging site, it will be REMOVED.

Again : a directory/content present on production but not on staging
WILL BE REMOVED from production.

Ok ?

Back to the javadoc and xref. They are generated locally, using mvn
site, usually (assuming the maven config is correct, of course). The
result can be quite big (megabytes of data, hundreds of pages and
images). No, think : what if we push those data into the staging site ?
Well, bingo : they will be duplicated on the production site. All of
them. And it will take a hell lot of time.

The solution : those pages are going to be pushed right away on the
production site ! Yes, it's faster (despite the 10 minutes+ you might
have to wait for everything to be committed there...).

Does it fly ? Not that much, unless you complete one more step...

Rememeber what I said about absent directories on the staging site and
what's going to happen on the production site ? Yes, you do remember...
"Holly F*CK??? Where are my javadoc/xeref pages gone ?" (it happend to
me a couple of times...)

So we have to tell the publish process to NOT do that, at all ! Easy :
you have a dedicated text file that does the trick :


It contains the list of directories *ON THE PRODUCTION SITE* that must
not be deleted nor overwritten while copying the pages from the staging

Here, we can see that it lists :



On the production site, the following directories will not get deleted :


Btw, this is where you are going to commit the generated javadoc pages...

Quite simple ?

One more trick : if you add a link on this extpaths.txt file, be sure the directoy exists
on the production site, otherwise you won't be allowed to publish...

Hope it helps.

Any question ?

View raw message