martin-g opened a new pull request #2:
URL: https://github.com/apache/velocity-site/pull/2


   Trying to update the web site with the changes from 
https://github.com/apache/velocity-site/pull/1 but the generated HTML is not 
the expected. A big part of it is lost...
   
   Here is the script I use to generate the site (slightly modified version of 
the one at http://velocity.apache.org/site-building.html)
   
   ```
   #!/usr/bin/env bash
   
   export MARKDOWN_SOCKET=/tmp/markdown
   CMS=/home/martin/svn/apache/cms/
   VELOCITY=/home/martin/git/apache/velocity
   
   if [[ `pidof markdownd.py` == "" ]]; then
      python2 $CMS/build/markdownd.py
   fi
   
   pushd $VELOCITY/velocity-site
   git reset --hard
   git checkout master
   git up
   
   find $VELOCITY/velocity-site/src/content -name "*~" | xargs rm -v
   rm -rf $VELOCITY/velocity-site-target/*
   rm -rf $VELOCITY/velocity-site-target/.htaccess
   
   echo Generating site...
   
   $CMS/build/build_site.pl --source-base $VELOCITY/velocity-site/src 
--target-base $VELOCITY/velocity-site-target
   
   echo Copying to production directory...
   
   git checkout asf-site
   git up
   
   rm -rf $VELOCITY/velocity-site/* $VELOCITY/velocity-site/.htaccess
   cp -r $VELOCITY/velocity-site-target/content/* $VELOCITY/velocity-site/
   cp -r $VELOCITY/velocity-site-target/content/.htaccess 
$VELOCITY/velocity-site/
   
   echo Post processing...
   
   find $VELOCITY/velocity-site/ -name "*.html" | xargs sed -ri -e 
"s'<span></span>''g"
   
   git st
   popd
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@velocity.apache.org
For additional commands, e-mail: dev-h...@velocity.apache.org

Reply via email to