add inline viewer for asciidoc manual
authorgggeek <giunta.gaetano@gmail.com>
Thu, 22 Dec 2022 14:50:03 +0000 (14:50 +0000)
committergggeek <giunta.gaetano@gmail.com>
Thu, 22 Dec 2022 14:50:03 +0000 (14:50 +0000)
doc/manual/index.html [new file with mode: 0644]

diff --git a/doc/manual/index.html b/doc/manual/index.html
new file mode 100644 (file)
index 0000000..8abeb3d
--- /dev/null
@@ -0,0 +1,16 @@
+<html lang="en">
+<head>
+    <title>XML-RPC for PHP User Manual</title>
+    <script src="https://cdnjs.cloudflare.com/ajax/libs/asciidoctor.js/1.5.9/asciidoctor.min.js"></script>
+    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/asciidoctor.js/1.5.9/css/asciidoctor.min.css">
+</head>
+<body>
+<div id="target"></div>
+<script>
+    var asciidoctor = Asciidoctor();
+    const content = "include::phpxmlrpc_manual.adoc[]"
+    const html = asciidoctor.convert(content, {safe: 'safe', header_footer: false});
+    document.getElementById('target').innerHTML = html;
+</script>
+</body>
+</html>