598 lines
17 KiB
HTML
598 lines
17 KiB
HTML
|
<!DOCTYPE html>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<html class="no-js">
|
||
|
|
||
|
<head lang="en-us">
|
||
|
<meta charset="utf-8">
|
||
|
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1">
|
||
|
<meta http-equiv="X-UA-Compatible" content="IE=10" />
|
||
|
<title>Laradock Docs</title>
|
||
|
<meta name="generator" content="Hugo 0.18.1" />
|
||
|
|
||
|
|
||
|
<meta name="description" content="Laradock documentations.">
|
||
|
|
||
|
<link rel="canonical" href="https://laradock.io/">
|
||
|
|
||
|
<meta name="author" content="Mahmoud Zalt">
|
||
|
|
||
|
|
||
|
<meta property="og:url" content="https://laradock.io/">
|
||
|
<meta property="og:title" content="Laradock Docs">
|
||
|
<meta property="og:image" content="https://laradock.io/images/logo.png">
|
||
|
<meta name="apple-mobile-web-app-title" content="Laradock Docs">
|
||
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||
|
|
||
|
<link rel="shortcut icon" type="image/x-icon" href="https://laradock.io/images/favicon.ico">
|
||
|
<link rel="icon" type="image/x-icon" href="https://laradock.io/images/favicon.ico">
|
||
|
|
||
|
<style>
|
||
|
@font-face {
|
||
|
font-family: 'Icon';
|
||
|
src: url('https://laradock.io/fonts/icon.eot');
|
||
|
src: url('https://laradock.io/fonts/icon.eot')
|
||
|
format('embedded-opentype'),
|
||
|
url('https://laradock.io/fonts/icon.woff')
|
||
|
format('woff'),
|
||
|
url('https://laradock.io/fonts/icon.ttf')
|
||
|
format('truetype'),
|
||
|
url('https://laradock.io/fonts/icon.svg')
|
||
|
format('svg');
|
||
|
font-weight: normal;
|
||
|
font-style: normal;
|
||
|
}
|
||
|
</style>
|
||
|
|
||
|
<link rel="stylesheet" href="https://laradock.io/stylesheets/application.css">
|
||
|
<link rel="stylesheet" href="https://laradock.io/stylesheets/temporary.css">
|
||
|
<link rel="stylesheet" href="https://laradock.io/stylesheets/palettes.css">
|
||
|
<link rel="stylesheet" href="https://laradock.io/stylesheets/highlight/highlight.css">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Ubuntu:400,700|Ubuntu+Mono">
|
||
|
<style>
|
||
|
body, input {
|
||
|
font-family: 'Ubuntu', Helvetica, Arial, sans-serif;
|
||
|
}
|
||
|
pre, code {
|
||
|
font-family: 'Ubuntu Mono', 'Courier New', 'Courier', monospace;
|
||
|
}
|
||
|
</style>
|
||
|
|
||
|
|
||
|
<script src="https://laradock.io/javascripts/modernizr.js"></script>
|
||
|
|
||
|
|
||
|
<link href="https://laradock.io/index.xml" rel="alternate" type="application/rss+xml" title="Laradock Docs" />
|
||
|
<link href="https://laradock.io/index.xml" rel="feed" type="application/rss+xml" title="Laradock Docs" />
|
||
|
|
||
|
|
||
|
</head>
|
||
|
<body class="palette-primary-red palette-accent-teal">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="backdrop">
|
||
|
<div class="backdrop-paper"></div>
|
||
|
</div>
|
||
|
|
||
|
<input class="toggle" type="checkbox" id="toggle-drawer">
|
||
|
<input class="toggle" type="checkbox" id="toggle-search">
|
||
|
<label class="toggle-button overlay" for="toggle-drawer"></label>
|
||
|
|
||
|
<header class="header">
|
||
|
<nav aria-label="Header">
|
||
|
<div class="bar default">
|
||
|
<div class="button button-menu" role="button" aria-label="Menu">
|
||
|
<label class="toggle-button icon icon-menu" for="toggle-drawer">
|
||
|
<span></span>
|
||
|
</label>
|
||
|
</div>
|
||
|
<div class="stretch">
|
||
|
<div class="title">
|
||
|
Laradock Docs
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="button button-github" role="button" aria-label="GitHub">
|
||
|
<a href="https://github.com/laradock" title="@laradock on GitHub" target="_blank" class="toggle-button icon icon-github"></a>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
<div class="bar search">
|
||
|
<div class="button button-close" role="button" aria-label="Close">
|
||
|
<label class="toggle-button icon icon-back" for="toggle-search"></label>
|
||
|
</div>
|
||
|
<div class="stretch">
|
||
|
<div class="field">
|
||
|
<input class="query" type="text" placeholder="Search" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="button button-reset" role="button" aria-label="Search">
|
||
|
<button class="toggle-button icon icon-close" id="reset-search"></button>
|
||
|
</div>
|
||
|
</div>
|
||
|
</nav>
|
||
|
</header>
|
||
|
|
||
|
<main class="main">
|
||
|
<div class="drawer">
|
||
|
<nav aria-label="Navigation">
|
||
|
<a href="https://github.com/laradock/laradock" class="project">
|
||
|
<div class="banner">
|
||
|
|
||
|
<div class="logo">
|
||
|
<img src="https://laradock.io/images/logo.png">
|
||
|
</div>
|
||
|
|
||
|
<div class="name">
|
||
|
<strong>Laradock Docs <span class="version">4.18.*</span></strong>
|
||
|
|
||
|
<br>
|
||
|
laradock/laradock
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</a>
|
||
|
|
||
|
<div class="scrollable">
|
||
|
<div class="wrapper">
|
||
|
|
||
|
<ul class="repo">
|
||
|
<li class="repo-download">
|
||
|
<a href="https://github.com/laradock/laradock/archive/master.zip" target="_blank" title="Download" data-action="download">
|
||
|
<i class="icon icon-download"></i> Download
|
||
|
</a>
|
||
|
</li>
|
||
|
<li class="repo-stars">
|
||
|
<a href="https://github.com/laradock/laradock/stargazers" target="_blank" title="Stargazers" data-action="star">
|
||
|
<i class="icon icon-star"></i> Stars
|
||
|
<span class="count">–</span>
|
||
|
</a>
|
||
|
</li>
|
||
|
</ul>
|
||
|
<hr>
|
||
|
|
||
|
|
||
|
<div class="toc">
|
||
|
|
||
|
<ul>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<a class="current" title="Introduction" href="https://laradock.io/">
|
||
|
|
||
|
Introduction
|
||
|
</a>
|
||
|
|
||
|
|
||
|
<ul id="scrollspy">
|
||
|
</ul>
|
||
|
|
||
|
|
||
|
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
<li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<a title="Getting started" href="https://laradock.io/getting-started/">
|
||
|
|
||
|
Getting started
|
||
|
</a>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
<li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<a title="License" href="https://laradock.io/license/">
|
||
|
|
||
|
License
|
||
|
</a>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</li>
|
||
|
|
||
|
|
||
|
</ul>
|
||
|
|
||
|
|
||
|
|
||
|
<hr>
|
||
|
<span class="section">The author</span>
|
||
|
|
||
|
<ul>
|
||
|
|
||
|
|
||
|
|
||
|
<li>
|
||
|
<a href="https://github.com/laradock" target="_blank" title="@laradock on GitHub">
|
||
|
@laradock on GitHub
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
<li>
|
||
|
<a href="mailto:mahmoud@zalt.me" title="Email of mahmoud@zalt.me">
|
||
|
Contact via email
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
</ul>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</nav>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<article class="article">
|
||
|
<div class="wrapper">
|
||
|
|
||
|
<h1>License </h1>
|
||
|
|
||
|
<p><a href="https://github.com/laradock/laradock/blob/master/LICENSE">MIT License</a> (MIT)</p>
|
||
|
|
||
|
|
||
|
<h1>Welcome to Laradock </h1>
|
||
|
|
||
|
|
||
|
|
||
|
<p><a href="http://zalt.me"><img src="http://forthebadge.com/images/badges/built-by-developers.svg" alt="forthebadge" /></a></p>
|
||
|
|
||
|
<p>Laradock is a Docker PHP development environment. It facilitate running <strong>PHP</strong> Apps on <strong>Docker</strong>.</p>
|
||
|
|
||
|
<blockquote>
|
||
|
<p>Use Docker first and learn about it later.</p>
|
||
|
</blockquote>
|
||
|
|
||
|
<p><a name="Intro"></a></p>
|
||
|
|
||
|
<h2 id="intro:d680e8a854a7cbad6d490c445cba2eba">Intro</h2>
|
||
|
|
||
|
<p>Laradock strives to make the PHP development experience easier and faster.</p>
|
||
|
|
||
|
<p>It contains pre-packaged Docker Images that provides you a wonderful <em>development</em> environment without requiring you to install PHP, NGINX, MySQL, REDIS, and any other software on your machines.</p>
|
||
|
|
||
|
<p>Laradock is configured to run Laravel Apps by default, and it can be modified to run all kinds of PHP Apps (Symfony, CodeIgniter, Wordpress, Drupal...).</p>
|
||
|
|
||
|
<h2 id="quick-overview:d680e8a854a7cbad6d490c445cba2eba">Quick Overview:</h2>
|
||
|
|
||
|
<p>Let's see how easy it is to install <code>NGINX</code>, <code>PHP</code>, <code>Composer</code>, <code>MySQL</code>, <code>Redis</code> and <code>Beanstalkd</code>:</p>
|
||
|
|
||
|
<p>1 - Clone Laradock inside your PHP project:</p>
|
||
|
|
||
|
<pre><code class="language-shell">git clone https://github.com/Laradock/laradock.git
|
||
|
</code></pre>
|
||
|
|
||
|
<p>2 - Enter the laradock folder and run this command:</p>
|
||
|
|
||
|
<pre><code class="language-shell">docker-compose up -d nginx mysql redis beanstalkd
|
||
|
</code></pre>
|
||
|
|
||
|
<p>3 - Open your <code>.env</code> file and set the following:</p>
|
||
|
|
||
|
<pre><code class="language-shell">DB_HOST=mysql
|
||
|
REDIS_HOST=redis
|
||
|
QUEUE_HOST=beanstalkd
|
||
|
</code></pre>
|
||
|
|
||
|
<p>4 - Open your browser and visi localhost: <code>http://localhost</code>.</p>
|
||
|
|
||
|
<pre><code class="language-shell">That's it! enjoy :)
|
||
|
</code></pre>
|
||
|
|
||
|
<p><a name="what-is-docker"></a></p>
|
||
|
|
||
|
<h2 id="what-is-docker:d680e8a854a7cbad6d490c445cba2eba">What is Docker?</h2>
|
||
|
|
||
|
<p><a href="https://www.docker.com">Docker</a> is an open-source project that automates the deployment of applications inside software containers, by providing an additional layer of abstraction and automation of <a href="https://en.wikipedia.org/wiki/Operating-system-level_virtualization">operating-system-level virtualization</a> on Linux, Mac OS and Windows.</p>
|
||
|
|
||
|
<p><a name="why-docker-not-vagrant"></a></p>
|
||
|
|
||
|
<h2 id="why-docker-not-vagrant:d680e8a854a7cbad6d490c445cba2eba">Why Docker not Vagrant!?</h2>
|
||
|
|
||
|
<p><a href="https://www.vagrantup.com">Vagrant</a> creates Virtual Machines in minutes while Docker creates Virtual Containers in seconds.</p>
|
||
|
|
||
|
<p>Instead of providing a full Virtual Machines, like you get with Vagrant, Docker provides you <strong>lightweight</strong> Virtual Containers, that share the same kernel and allow to safely execute independent processes.</p>
|
||
|
|
||
|
<p>In addition to the speed, Docker gives tons of features that cannot be achieved with Vagrant.</p>
|
||
|
|
||
|
<p>Most importantly Docker can run on Development and on Production (same environment everywhere). While Vagrant is designed for Development only, (so you have to re-provision your server on Production every time).</p>
|
||
|
|
||
|
<p><a name="laradock-vs-homestead"></a></p>
|
||
|
|
||
|
<h2 id="laradock-vs-homestead-for-laravel-developers:d680e8a854a7cbad6d490c445cba2eba">Laradock VS Homestead (For Laravel Developers)</h2>
|
||
|
|
||
|
<blockquote>
|
||
|
<p>Laradock It's like Laravel Homestead but for Docker instead of Vagrant.</p>
|
||
|
</blockquote>
|
||
|
|
||
|
<p>Laradock and <a href="https://laravel.com/docs/master/homestead">Homestead</a> both give you complete virtual development environments. (Without the need to install and configure every single software on your own Operating System).</p>
|
||
|
|
||
|
<ul>
|
||
|
<li><p>Homestead is a tool that controls Vagrant for you (using Homestead special commands). And Vagrant manages your Virtual Machine.</p></li>
|
||
|
|
||
|
<li><p>LaraDock is a tool that controls Docker for you (using Docker & Docker Compose official commands). And Docker manages your Virtual Containers.</p></li>
|
||
|
</ul>
|
||
|
|
||
|
<p>Running a virtual Container is much faster than running a full virtual Machine. Thus <strong>LaraDock is much faster than Homestead</strong>.</p>
|
||
|
|
||
|
<p><a name="Demo"></a></p>
|
||
|
|
||
|
<h2 id="demo-video:d680e8a854a7cbad6d490c445cba2eba">Demo Video</h2>
|
||
|
|
||
|
<p>What's better than a <strong>Demo Video</strong>:</p>
|
||
|
|
||
|
<ul>
|
||
|
<li>LaraDock <a href="https://www.youtube.com/watch?v=TQii1jDa96Y">v4.*</a></li>
|
||
|
<li>LaraDock <a href="https://www.youtube.com/watch?v=-DamFMczwDA">v2.*</a></li>
|
||
|
<li>LaraDock <a href="https://www.youtube.com/watch?v=jGkyO6Is_aI">v0.3</a></li>
|
||
|
<li>LaraDock <a href="https://www.youtube.com/watch?v=3YQsHe6oF80">v0.1</a></li>
|
||
|
</ul>
|
||
|
|
||
|
<h3 id="laradock-v4-video:d680e8a854a7cbad6d490c445cba2eba">Laradock v4 Video</h3>
|
||
|
|
||
|
|
||
|
<div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; height: 0; overflow: hidden;">
|
||
|
<iframe src="//www.youtube.com/embed/TQii1jDa96Y" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;" allowfullscreen frameborder="0"></iframe>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<p><a name="features"></a></p>
|
||
|
|
||
|
<h2 id="features:d680e8a854a7cbad6d490c445cba2eba">Features</h2>
|
||
|
|
||
|
<ul>
|
||
|
<li>Easy switch between PHP versions: 7.0, 5.6, 5.5...</li>
|
||
|
<li>Choose your favorite database engine: MySQL, Postgres, MariaDB...</li>
|
||
|
<li>Run your own combination of software: Memcached, HHVM, Beanstalkd...</li>
|
||
|
<li>Every software runs on a separate container: PHP-FPM, NGINX, PHP-CLI...</li>
|
||
|
<li>Easy to customize any container, with simple edit to the <code>dockerfile</code>.</li>
|
||
|
<li>All Images extends from an official base Image. (Trusted base Images).</li>
|
||
|
<li>Pre-configured Nginx for Laravel.</li>
|
||
|
<li>Easy to apply configurations inside containers.</li>
|
||
|
<li>Clean and well structured Dockerfiles (<code>dockerfile</code>).</li>
|
||
|
<li>Latest version of the Docker Compose file (<code>docker-compose</code>).</li>
|
||
|
<li>Everything is visible and editable.</li>
|
||
|
<li>Fast Images Builds.</li>
|
||
|
<li>More to come every week..</li>
|
||
|
</ul>
|
||
|
|
||
|
<p><a name="Supported-Containers"></a></p>
|
||
|
|
||
|
<h2 id="supported-software-containers:d680e8a854a7cbad6d490c445cba2eba">Supported Software (Containers)</h2>
|
||
|
|
||
|
<ul>
|
||
|
<li><strong>Database Engines:</strong>
|
||
|
|
||
|
<ul>
|
||
|
<li>MySQL</li>
|
||
|
<li>PostgreSQL</li>
|
||
|
<li>MariaDB</li>
|
||
|
<li>MongoDB</li>
|
||
|
<li>Neo4j</li>
|
||
|
<li>RethinkDB</li>
|
||
|
</ul></li>
|
||
|
<li><strong>Cache Engines:</strong>
|
||
|
|
||
|
<ul>
|
||
|
<li>Redis</li>
|
||
|
<li>Memcached</li>
|
||
|
<li>Aerospike</li>
|
||
|
</ul></li>
|
||
|
<li><strong>PHP Servers:</strong>
|
||
|
|
||
|
<ul>
|
||
|
<li>NGINX</li>
|
||
|
<li>Apache2</li>
|
||
|
<li>Caddy</li>
|
||
|
</ul></li>
|
||
|
<li><strong>PHP Compilers:</strong>
|
||
|
|
||
|
<ul>
|
||
|
<li>PHP-FPM</li>
|
||
|
<li>HHVM</li>
|
||
|
</ul></li>
|
||
|
<li><strong>Message Queueing Systems:</strong>
|
||
|
|
||
|
<ul>
|
||
|
<li>Beanstalkd</li>
|
||
|
<li>Beanstalkd Console</li>
|
||
|
<li>RabbitMQ</li>
|
||
|
<li>RabbitMQ Console</li>
|
||
|
</ul></li>
|
||
|
<li><strong>Tools:</strong>
|
||
|
|
||
|
<ul>
|
||
|
<li>PhpMyAdmin</li>
|
||
|
<li>PgAdmin</li>
|
||
|
<li>ElasticSearch</li>
|
||
|
<li>Selenium</li>
|
||
|
<li>Workspace
|
||
|
|
||
|
<ul>
|
||
|
<li>PHP7-CLI</li>
|
||
|
<li>Composer</li>
|
||
|
<li>Git</li>
|
||
|
<li>Linuxbrew</li>
|
||
|
<li>Node</li>
|
||
|
<li>Gulp</li>
|
||
|
<li>SQLite</li>
|
||
|
<li>xDebug</li>
|
||
|
<li>Envoy</li>
|
||
|
<li>Deployer</li>
|
||
|
<li>Vim</li>
|
||
|
<li>Yarn</li>
|
||
|
<li>... Many other supported tools are not documented. (Will be updated soon)</li>
|
||
|
</ul></li>
|
||
|
</ul></li>
|
||
|
</ul>
|
||
|
|
||
|
<blockquote>
|
||
|
<p>If you can't find your Software, build it yourself and add it to this list. Contributions are welcomed :)</p>
|
||
|
</blockquote>
|
||
|
|
||
|
<p><a name="Chat"></a></p>
|
||
|
|
||
|
<h2 id="chat-with-us:d680e8a854a7cbad6d490c445cba2eba">Chat with us</h2>
|
||
|
|
||
|
<p>You are welcome to join our chat room on Gitter.</p>
|
||
|
|
||
|
<p><a href="https://gitter.im/LaraDock/laradock?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge"><img src="https://badges.gitter.im/LaraDock/laradock.svg" alt="Gitter" /></a></p>
|
||
|
|
||
|
|
||
|
|
||
|
<aside class="copyright" role="note">
|
||
|
|
||
|
© 2017 Released under the MIT license –
|
||
|
|
||
|
Documentation built with
|
||
|
<a href="https://www.gohugo.io" target="_blank">Hugo</a>
|
||
|
using the
|
||
|
<a href="http://github.com/digitalcraftsman/hugo-material-docs" target="_blank">Material</a> theme.
|
||
|
</aside>
|
||
|
|
||
|
<footer class="footer">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<nav class="pagination" aria-label="Footer">
|
||
|
<div class="previous">
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
<div class="next">
|
||
|
<a href="https://laradock.io/license/" title="License">
|
||
|
<span class="direction">
|
||
|
Next
|
||
|
</span>
|
||
|
<div class="page">
|
||
|
<div class="stretch">
|
||
|
<div class="title">
|
||
|
License
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="button button-next" role="button" aria-label="Next">
|
||
|
<i class="icon icon-forward"></i>
|
||
|
</div>
|
||
|
</div>
|
||
|
</a>
|
||
|
</div>
|
||
|
</nav>
|
||
|
|
||
|
|
||
|
|
||
|
</footer>
|
||
|
</div>
|
||
|
</article>
|
||
|
|
||
|
<div class="results" role="status" aria-live="polite">
|
||
|
<div class="scrollable">
|
||
|
<div class="wrapper">
|
||
|
<div class="meta"></div>
|
||
|
<div class="list"></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</main>
|
||
|
|
||
|
<script>
|
||
|
|
||
|
var base_url = 'https:\/\/laradock.io\/';
|
||
|
var repo_id = 'laradock\/laradock';
|
||
|
|
||
|
</script>
|
||
|
|
||
|
<script src="https://laradock.io/javascripts/application.js"></script>
|
||
|
|
||
|
|
||
|
<script>
|
||
|
/* Add headers to scrollspy */
|
||
|
var headers = document.getElementsByTagName("h2");
|
||
|
var scrollspy = document.getElementById('scrollspy');
|
||
|
|
||
|
if(scrollspy) {
|
||
|
if(headers.length > 0) {
|
||
|
for(var i = 0; i < headers.length; i++) {
|
||
|
var li = document.createElement("li");
|
||
|
li.setAttribute("class", "anchor");
|
||
|
|
||
|
var a = document.createElement("a");
|
||
|
a.setAttribute("href", "#" + headers[i].id);
|
||
|
a.setAttribute("title", headers[i].innerHTML);
|
||
|
a.innerHTML = headers[i].innerHTML;
|
||
|
|
||
|
li.appendChild(a)
|
||
|
scrollspy.appendChild(li);
|
||
|
}
|
||
|
} else {
|
||
|
scrollspy.parentElement.removeChild(scrollspy)
|
||
|
}
|
||
|
|
||
|
|
||
|
/* Add permanent link next to the headers */
|
||
|
var headers = document.querySelectorAll("h1, h2, h3, h4, h5, h6");
|
||
|
|
||
|
for(var i = 0; i < headers.length; i++) {
|
||
|
var a = document.createElement("a");
|
||
|
a.setAttribute("class", "headerlink");
|
||
|
a.setAttribute("href", "#" + headers[i].id);
|
||
|
a.setAttribute("title", "Permanent link")
|
||
|
a.innerHTML = "#";
|
||
|
headers[i].appendChild(a);
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
|
||
|
|
||
|
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.8.0/highlight.min.js"></script>
|
||
|
<script>hljs.initHighlightingOnLoad();</script>
|
||
|
</body>
|
||
|
</html>
|
||
|
|