Permalink
Browse files

Use Mizuho to generate documentation instead of Asciidoc.

  • Loading branch information...
1 parent cf735f0 commit 78f4b213efc57c4ca253e2b0d7b0e0af31490398 @FooBarWidget FooBarWidget committed Apr 15, 2012
View
@@ -33,7 +33,6 @@
require 'phusion_passenger/platform_info/curl'
require 'phusion_passenger/platform_info/zlib'
require 'phusion_passenger/platform_info/compiler'
-require 'phusion_passenger/platform_info/documentation_tools'
include PhusionPassenger
include PhusionPassenger::PlatformInfo
@@ -1,5 +1,5 @@
# Phusion Passenger - http://www.modrails.com/
-# Copyright (c) 2010 Phusion
+# Copyright (c) 2010, 2011, 2012 Phusion
#
# "Phusion Passenger" is a trademark of Hongli Lai & Ninh Bui.
#
@@ -21,25 +21,23 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
-ASCIIDOC_FLAGS = "-b html5 -a toc -a theme=flask -a numbered -a toclevels=3 -a icons"
-
desc "Generate all documentation"
task :doc => Packaging::ASCII_DOCS
Packaging::ASCII_DOCS.each do |target|
source = target.sub(/\.html$/, '.txt')
file target => [source] + Dir["doc/users_guide_snippets/**/*"] do
- if PlatformInfo.asciidoc
+ if PlatformInfo.find_command('mizuho')
if target =~ /apache/i
type = "-a apache"
elsif target =~ /nginx/i
type = "-a nginx"
else
type = nil
end
- sh "#{PlatformInfo.asciidoc} #{ASCIIDOC_FLAGS} #{type} '#{source}'"
+ sh "mizuho -c juvia --juvia-url http://juvia.phusion.nl --juvia-site-key q0ptarhn8o9xanwomq8zkgewbtwffyz #{type} '#{source}'"
else
- sh "echo 'asciidoc required to build docs' > '#{target}'"
+ sh "echo 'Mizuho required to build docs' > '#{target}'"
end
end
@@ -0,0 +1,36 @@
+###### Autogenerated by Mizuho, DO NOT EDIT ######
+# This file maps section names to IDs so that the commenting system knows which
+# comments belong to which section. Section names may be changed at will but
+# IDs always stay the same, allowing one to retain old comments even if you
+# rename a section.
+#
+# This file is autogenerated but is not a cache; you MUST NOT DELETE this
+# file and you must check it into your version control system. If you lose
+# this file you may lose the ability to identity old comments.
+#
+# Entries marked with "fuzzy" indicate that the section title has changed
+# and that Mizuho has found an ID which appears to be associated with that
+# section. You should check whether it is correct, and if not, fix it.
+
+1. About the involved technologies => about-the-involved-technologies-14ot82u
+
+1.1. Typical web applications => typical-web-applications-1yd1iav
+
+1.2. Ruby on Rails => ruby-on-rails-5v776m
+
+1.3. Apache => apache-123bbrn
+
+2. Passenger architecture => passenger-architecture-ehq6p7
+
+2.1. Overview => overview-1ickxaj
+
+2.2. Spawning and caching of code and applications => spawning-and-caching-of-code-and-applications-rtkxsp
+
+2.3. The spawn server => the-spawn-server-ktu9q0
+
+2.3.1. Memory sharing => memory-sharing-30wsnk
+
+2.4. Handling of concurrent requests => handling-of-concurrent-requests-1ud4gns
+
+3. Appendix A: About this document => appendix-a-about-this-document-fo5ufe
+
@@ -0,0 +1,34 @@
+###### Autogenerated by Mizuho, DO NOT EDIT ######
+# This file maps section names to IDs so that the commenting system knows which
+# comments belong to which section. Section names may be changed at will but
+# IDs always stay the same, allowing one to retain old comments even if you
+# rename a section.
+#
+# This file is autogenerated but is not a cache; you MUST NOT DELETE this
+# file and you must check it into your version control system. If you lose
+# this file you may lose the ability to identity old comments.
+#
+# Entries marked with "fuzzy" indicate that the section title has changed
+# and that Mizuho has found an ID which appears to be associated with that
+# section. You should check whether it is correct, and if not, fix it.
+
+1. Problem description => problem-description-lvxgz1
+
+2. Analysis of possible solutions => analysis-of-possible-solutions-1ca8rx2
+
+2.1. Apache must already be running as root => apache-must-already-be-running-as-root-17kidbt
+
+2.2. Using Apache’s suEXEC => using-apache-s-suexec-1smlb2z
+
+2.3. Using a setuid root wrapper application => using-a-setuid-root-wrapper-application-1g15zaq
+
+2.4. Using a setuid $X wrapper application => using-a-setuid-x-wrapper-application-1mycuib
+
+2.5. Using su => using-su-13r1zdf
+
+2.6. Using sudo => using-sudo-ry6q7h
+
+2.7. Common security issues => common-security-issues-25g9co
+
+3. Chosen solution => chosen-solution-1wovtue
+
Oops, something went wrong.

0 comments on commit 78f4b21

Please sign in to comment.