Skip to content

Commit

Permalink
Fix markup issues in YAF extension docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mumumu committed Apr 28, 2024
1 parent ff3300b commit 816ed8b
Showing 1 changed file with 22 additions and 37 deletions.
59 changes: 22 additions & 37 deletions reference/yaf/tutorials.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: df549f5248a477d03a8b4ae538d47c8852b12890 Maintainer: takagi Status: ready -->
<!-- EN-Revision: 198f577cb09d61622267f7480b7ec180c7d714da Maintainer: takagi Status: ready -->

<chapter xml:id="yaf.tutorials" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
&reftitle.examples;

<section role="examples">
<example>
<example>
<title>標準的なアプリケーションのディレクトリ構造</title>
<screen>
<screen>
<![CDATA[
- index.php
- .htaccess
Expand All @@ -26,11 +25,9 @@
- models
- plugins
]]>
</screen>
</example>
</section>
</screen>
</example>

<section role="examples">
<example>
<title>エントリ</title>
<para>
Expand All @@ -50,19 +47,17 @@ $app->bootstrap() // Bootstrap.php で定義した bootstrap メソッドを呼
]]>
</programlisting>
</example>
</section>

<section role="examples">
<example>
<title>リライトルール</title>
<screen>
<![CDATA[
# apache (.htaccess)
#for apache (.htaccess)
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* index.php
# nginx
#for nginx
server {
listen ****;
server_name domain.com;
Expand All @@ -74,7 +69,7 @@ server {
}
}
# lighttpd
#for lighttpd
$HTTP["host"] =~ "(www.)?domain.com$" {
url.rewrite = (
"^/(.+)/?$" => "/index.php/$1",
Expand All @@ -83,11 +78,9 @@ $HTTP["host"] =~ "(www.)?domain.com$" {
]]>
</screen>
</example>
</section>

<section role="examples">
<example>
<title>アプリケーションの設定</title>
<title>アプリケーションの設定</title>
<programlisting role="ini">
<![CDATA[
[yaf]
Expand All @@ -100,9 +93,7 @@ foo=bar
]]>
</programlisting>
</example>
</section>

<section role="examples">
<example>
<title>デフォルトのコントローラ</title>
<programlisting role="php">
Expand All @@ -120,9 +111,7 @@ class IndexController extends Yaf_Controller_Abstract {
]]>
</programlisting>
</example>
</section>

<section role="examples">
<example>
<title>デフォルトのビューテンプレート</title>
<programlisting role="php">
Expand All @@ -137,14 +126,12 @@ class IndexController extends Yaf_Controller_Abstract {
</html>
]]>
</programlisting>
</example>
</section>
</example>

<section role="examples">
<example>
<title>アプリケーションの実行結果</title>
&example.outputs.similar;
<screen>
<example>
<title>アプリケーションの実行</title>
&example.outputs.similar;
<screen>
<![CDATA[
<html>
<head>
Expand All @@ -155,18 +142,16 @@ class IndexController extends Yaf_Controller_Abstract {
</body>
</html>
]]>
</screen>
<note>
<para>
このサンプルは Yaf のコードジェネレータで生成できます。コードジェネレータは
yaf@github にあります。
</para>
</note>
</example>
</section>
</screen>
<note>
<para>
このサンプルは Yaf のコードジェネレータで生成できます。コードジェネレータは
yaf@github にあります。
</para>
</note>
</example>

</chapter>

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Expand Down

0 comments on commit 816ed8b

Please sign in to comment.