You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ka...@apache.org on 2016/02/20 17:47:52 UTC
[3/4] mesos git commit: Updated doxygen target for site/Rakefile.
Updated doxygen target for site/Rakefile.
There are three components to generating new doxygen pages:
1. Now that we have a Doxyfile, pass it to `doxygen` command.
2. Genarate doxygen pages in a diretcory named `doxygen` in the current
directory.
3. Once the doxygen pages have been generated, move them into
`publish/api/latest/c++`.
After step 3, one can copy over the publish directory to mesos-site svn
repository.
Review: https://reviews.apache.org/r/43122
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/292ce3de
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/292ce3de
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/292ce3de
Branch: refs/heads/master
Commit: 292ce3de8566a49cf945006dc3c9da7cbae133f6
Parents: 52857ac
Author: Kapil Arya <ka...@mesosphere.io>
Authored: Tue Feb 2 19:08:22 2016 -0500
Committer: Kapil Arya <ka...@mesosphere.io>
Committed: Sat Feb 20 11:46:55 2016 -0500
----------------------------------------------------------------------
site/Rakefile | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/292ce3de/site/Rakefile
----------------------------------------------------------------------
diff --git a/site/Rakefile b/site/Rakefile
index 10817d4..fbf690f 100644
--- a/site/Rakefile
+++ b/site/Rakefile
@@ -77,7 +77,9 @@ end
desc "Generate doxygen from the C++ source files in the codebase"
task :doxygen do
- system("pushd .. && doxygen && popd && rsync -avz ../docs/html/* publish/api/latest/c++")
+ FileUtils.rm_rf(Dir.glob("publish/api/latest/c++"))
+ FileUtils.mkdir_p("publish/api/latest")
+ system("doxygen ../Doxyfile && mv doxygen/html publish/api/latest/c++ && rm -rf doxygen")
end
desc "Run the site in development mode. Preview available at http://localhost:4567/"