This is the most common use case as new docs are published at least with every version release. They are also updated much more frequently as new algorithms and other features are added.
At the terminal:
svn co https://svn.apache.org/repos/asf/mahout asf-mahout
Open mahout/website/docs/_config.yml
Edit the BASE_PATH
variable (near line 59), set this to the version you wish to publish.
cd $MAHOUT_HOME/website/docs
JEKYLL_ENV=production bundle exec jekyll build
From the mahout source top level directory, use maven to build Scala and Java Docs, and copy them to the mahout/website/docs/_site
cd _site
mkdir scaladocs
cd ../../../
cd math-scala
mvn scala:doc
cp target/site/scaladocs ../website/docs/_site/scaladocs/math-scala -r
cd ../spark
mvn scala:doc
cp target/site/scaladocs ../website/docs/_site/scaladocs/spark -r
And so on for the rest of the scala/java docs
If you changed the version number in Step 2, be sure to edit website/docs/_includes/navbar.html
with a new version.
_site
to SubversionFrom Mahout top level directory
cp website/docs/_site ../asf-mahout/site/mahout_cms/trunk/content/docs/<version> -r
Where **
cd /path/to/asf-mahout
svn add site/mahout_cms/trunk/content/docs/<version>
svn commit
This will “publish” to http://mahout.staging.apache.org Now would be a good time to go do some QA (quality assurance) load up the site and check that your links works, esp in the area you were working on.
When you’re ready to publish, go to https://cms.apache.org/mahout/ and click publish.
At the terminal:
svn co https://svn.apache.org/repos/asf/mahout asf-mahout
cd $MAHOUT_HOME/website/front
JEKYLL_ENV=production bundle exec jekyll build
From the mahout source top level directory, use maven to build Scala and Java Docs, and copy them to the mahout/website/docs/_site
cd _site
mkdir scaladocs
cd ../../../
cd math-scala
mvn scala:doc
cp target/site/scaladocs ../website/docs/_site/scaladocs/math-scala -r
cd ../spark
mvn scala:doc
cp target/site/scaladocs ../website/docs/_site/scaladocs/spark -r
And so on for the rest of the scala/java docs
If you changed the version number in Step 2, be sure to edit website/docs/_includes/navbar.html
with a new version.
_site
to SubversionFrom Mahout top level directory
cp website/docs/_site ../asf-mahout/site/mahout_cms/trunk/content/docs/<version> -r
Where **
cd /path/to/asf-mahout
svn add site/mahout_cms/trunk/content/docs/<version>
svn commit
This will “publish” to http://mahout.staging.apache.org Now would be a good time to go do some QA (quality assurance) load up the site and check that your links works, esp in the area you were working on.
When you’re ready to publish, go to https://cms.apache.org/mahout/ and click publish.