From c21c3b0befeb46a51b6bf3758ffa30813bea0ff0 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 9 Mar 2024 14:19:22 +0100 Subject: Adding upstream version 1.44.3. Signed-off-by: Daniel Baumann --- web/server/h2o/libh2o/srcdoc/snippets/directive.mt | 28 ++++++ .../h2o/libh2o/srcdoc/snippets/mruby_method.mt | 33 +++++++ web/server/h2o/libh2o/srcdoc/snippets/wrapper.mt | 108 +++++++++++++++++++++ 3 files changed, 169 insertions(+) create mode 100644 web/server/h2o/libh2o/srcdoc/snippets/directive.mt create mode 100644 web/server/h2o/libh2o/srcdoc/snippets/mruby_method.mt create mode 100644 web/server/h2o/libh2o/srcdoc/snippets/wrapper.mt (limited to 'web/server/h2o/libh2o/srcdoc/snippets') diff --git a/web/server/h2o/libh2o/srcdoc/snippets/directive.mt b/web/server/h2o/libh2o/srcdoc/snippets/directive.mt new file mode 100644 index 000000000..4b880f311 --- /dev/null +++ b/web/server/h2o/libh2o/srcdoc/snippets/directive.mt @@ -0,0 +1,28 @@ +? my $ctx = $main::context; +? my ($content, $args) = @_; +
+? if ($args->{since}) { +
since v{since} ?>
+? } +

"{name} ?>"

+
+ +
+
Description:
+
+

+{desc}) ?> +

+ +
+
Level:
+
{levels}}) ?>
+? if ($args->{default}) { +
Default:
+
{default} ?>
+? } +? if ($args->{see_also}) { +
See also:
+
{see_also} ?>
+? } +
diff --git a/web/server/h2o/libh2o/srcdoc/snippets/mruby_method.mt b/web/server/h2o/libh2o/srcdoc/snippets/mruby_method.mt new file mode 100644 index 000000000..c5005899a --- /dev/null +++ b/web/server/h2o/libh2o/srcdoc/snippets/mruby_method.mt @@ -0,0 +1,33 @@ +? my $ctx = $main::context; +? my ($content, $args) = @_; +
+? if ($args->{since}) { +
since v{since} ?>
+? } +

"{name} ?>"

+
+ +
+
Description:
+
+

+{desc}) ?> +

+ +
+? if (@{$args->{params} || []}) { +
Parameters:
+
+
+? for my $param (@{ $args->{params} }) { +
{label} ?>
+
{desc} ?>
+? } +
+
+? } +? if ($args->{see_also}) { +
See also:
+
{see_also} ?>
+? } +
diff --git a/web/server/h2o/libh2o/srcdoc/snippets/wrapper.mt b/web/server/h2o/libh2o/srcdoc/snippets/wrapper.mt new file mode 100644 index 000000000..86f551d58 --- /dev/null +++ b/web/server/h2o/libh2o/srcdoc/snippets/wrapper.mt @@ -0,0 +1,108 @@ +@{[Text::MicroTemplate::escape_html($tab_topic)]}}; + } else { + $html = qq{@{[Text::MicroTemplate::escape_html($tab_topic)]}}; + } + Text::MicroTemplate::encoded_string($html); +}; + +?> + + + + +? my $base = "../" x (scalar(split '/', $main::context->{filename}) - 1); +? if ($base ne '') { + +? } + + + + + + + + + + +<?= join " - ", ($ctx->{filename} ne 'index.html' ? reverse @title : ()), "H2O - the optimized HTTP/2 server" ?> + + +
+
+ +

+H2O +

+

the optimized HTTP/1.x, HTTP/2 server

+ + +
+ +
+ +
+
+
+Powered by Oktavia +
+
+ + +
+ + + +("index.html", "Top") ?> +("install.html", "Install") ?> +("configure.html", "Configure") ?> +("faq.html", "FAQ") ?> + + + + + +
+ +? if (@title) { +

+? if (@title > 1) { +? for (my $i = 0; $i < @title - 1; $i++) { + > +? } +? } + +

+? } + +?= $content + +? if (my @notes = @{$ctx->{notes}}) { +
+

Notes:

+
    +? for (my $index = 0; $index < @notes; ++$index) { +
  1. +? } +
+
+? } + +
+ + + -- cgit v1.2.3