mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-24 17:17:51 +00:00
Deploying to readthedocs from @ chillerlan/php-qrcode@22869ae8e2 🚀
This commit is contained in:
@@ -431,7 +431,9 @@
|
||||
<div class="highlight-php notranslate"><div class="highlight"><pre><span></span><span class="nv">$data</span> <span class="o">=</span> <span class="s1">'https://www.youtube.com/watch?v=dQw4w9WgXcQ'</span><span class="p">;</span>
|
||||
<span class="nv">$out</span> <span class="o">=</span> <span class="p">(</span><span class="k">new</span> <span class="nx">QRCode</span><span class="p">(</span><span class="nv">$options</span><span class="p">))</span><span class="o">-></span><span class="na">render</span><span class="p">(</span><span class="nv">$data</span><span class="p">);</span> <span class="c1">// -> XML, rendered as SVG</span>
|
||||
|
||||
<span class="nb">printf</span><span class="p">(</span><span class="s1">'<img alt="%s" src="%s" />'</span><span class="p">,</span> <span class="nv">$alt</span><span class="p">,</span> <span class="nv">$out</span><span class="p">);</span>
|
||||
<span class="nb">header</span><span class="p">(</span><span class="s1">'Content-type: application/xml'</span><span class="p">);</span>
|
||||
|
||||
<span class="k">echo</span> <span class="nv">$out</span><span class="p">;</span>
|
||||
</pre></div>
|
||||
</div>
|
||||
<p>The associated <a class="reference external" href="https://www.w3.org/XML/Schema">XML schema</a> can be found over at GitHub: <a class="reference external" href="https://github.com/chillerlan/php-qrcode/blob/main/src/Output/qrcode.schema.xsd"><code class="docutils literal notranslate"><span class="pre">qrcode.schema.xsd</span></code></a></p>
|
||||
|
||||
+2
-2
@@ -23,7 +23,7 @@
|
||||
<link rel="index" title="Index" href="../genindex.html" />
|
||||
<link rel="search" title="Search" href="../search.html" />
|
||||
<link rel="next" title="Installation" href="Installation.html" />
|
||||
<link rel="prev" title="PHP-QRCode Manual" href="../index.html" />
|
||||
<link rel="prev" title="chillerlan PHP-QRCode Manual" href="../index.html" />
|
||||
</head>
|
||||
|
||||
<body class="wy-body-for-nav">
|
||||
@@ -496,7 +496,7 @@ It also features a QR Code reader based on a <a class="reference external" href=
|
||||
</div>
|
||||
</div>
|
||||
<footer><div class="rst-footer-buttons" role="navigation" aria-label="Footer">
|
||||
<a href="../index.html" class="btn btn-neutral float-left" title="PHP-QRCode Manual" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
||||
<a href="../index.html" class="btn btn-neutral float-left" title="chillerlan PHP-QRCode Manual" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
|
||||
<a href="Installation.html" class="btn btn-neutral float-right" title="Installation" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -80,7 +80,9 @@ Render the output:
|
||||
$data = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ';
|
||||
$out = (new QRCode($options))->render($data); // -> XML, rendered as SVG
|
||||
|
||||
printf('<img alt="%s" src="%s" />', $alt, $out);
|
||||
header('Content-type: application/xml');
|
||||
|
||||
echo $out;
|
||||
```
|
||||
|
||||
The associated [XML schema](https://www.w3.org/XML/Schema) can be found over at GitHub: [`qrcode.schema.xsd`](https://github.com/chillerlan/php-qrcode/blob/main/src/Output/qrcode.schema.xsd)
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
.. php-qrcode documentation master file, created by sphinx-quickstart on Sun Jul 9 21:45:56 2023.
|
||||
markdown-rst converter: https://pandoc.org/try/
|
||||
|
||||
=================
|
||||
PHP-QRCode Manual
|
||||
=================
|
||||
============================
|
||||
chillerlan PHP-QRCode Manual
|
||||
============================
|
||||
|
||||
User manual for `chillerlan/php-qrcode <https://github.com/chillerlan/php-qrcode/>`__ [|version|]. Updated on |today|.
|
||||
|
||||
|
||||
+4
-4
@@ -4,7 +4,7 @@
|
||||
<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>PHP-QRCode Manual — PHP-QRCode main
|
||||
<title>chillerlan PHP-QRCode Manual — PHP-QRCode main
|
||||
Manual</title>
|
||||
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=fa44fd50" />
|
||||
<link rel="stylesheet" type="text/css" href="_static/css/theme.css?v=19f00094" />
|
||||
@@ -349,7 +349,7 @@
|
||||
<div role="navigation" aria-label="Page navigation">
|
||||
<ul class="wy-breadcrumbs">
|
||||
<li><a href="#" class="icon icon-home" aria-label="Home"></a></li>
|
||||
<li class="breadcrumb-item active">PHP-QRCode Manual</li>
|
||||
<li class="breadcrumb-item active">chillerlan PHP-QRCode Manual</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
<a href="https://github.com/chillerlan/php-qrcode/blob/main/docs/index.rst" class="fa fa-github"> Edit on GitHub</a>
|
||||
</li>
|
||||
@@ -359,8 +359,8 @@
|
||||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<section id="php-qrcode-manual">
|
||||
<h1>PHP-QRCode Manual<a class="headerlink" href="#php-qrcode-manual" title="Link to this heading"></a></h1>
|
||||
<section id="chillerlan-php-qrcode-manual">
|
||||
<h1>chillerlan PHP-QRCode Manual<a class="headerlink" href="#chillerlan-php-qrcode-manual" title="Link to this heading"></a></h1>
|
||||
<p>User manual for <a class="reference external" href="https://github.com/chillerlan/php-qrcode/">chillerlan/php-qrcode</a> [main]. Updated on Jun 22, 2024.</p>
|
||||
<p>The phpDocumentor API documentation can be found at <a class="reference external" href="https://chillerlan.github.io/php-qrcode/">chillerlan.github.io/php-qrcode</a>.</p>
|
||||
<p>This work is licensed under the Creative Commons Attribution 4.0 International (CC BY 4.0) License.</p>
|
||||
|
||||
BIN
Binary file not shown.
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user