File: default.html

package info (click to toggle)
php-league-commonmark 2.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 8,260 kB
  • sloc: php: 20,378; xml: 1,988; ruby: 45; makefile: 21; javascript: 15
file content (195 lines) | stat: -rw-r--r-- 9,261 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
{% assign version = page.url | remove_first: "/" | split: "/" | first %}
{% assign upgrading = false %}
{% if version == '' or version == 'releases' %}
    {% assign version = site.data.project.default_version %}
    {% assign upgrading = true %}
{% endif %}
{% capture version_type %}{{ version|get_version_type }}{% endcapture %}
{% capture version_home %}/{{ version }}/{% endcapture %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    {% if page.description %}
        <meta name="description" content="{{ page.description }}">
    {% else if site.data.project.description %}
        <meta name="description" content="{{ site.data.project.description }}">
    {% endif %}
    <meta name="docsearch:version" content="{{ version }}">
    {% if page.url == '/' %}
        <title>{{ site.data.project.site_title }} - {{ site.data.project.tagline }}</title>
    {% else %}
        <title>{{ page.title }} - {{ site.data.project.site_title }}</title>
    {% endif %}
    <link rel="icon" type="image/x-icon" href="//theme.thephpleague.com/img/favicon.ico" />
    <link rel="apple-touch-icon-precomposed" href="//theme.thephpleague.com/img/apple-touch-icon-precomposed.png">
    <meta name="twitter:card" content="summary_large_image" />
    <meta name="twitter:site" content="@thephpleague" />
    <meta name="twitter:creator" content="@colinodell" />
    <meta property="og:url" content="https://commonmark.thephpleague.com{{ page.url }}" />
    {% if page.url == '/' %}
        <meta property="og:title" content="{{ site.data.project.site_title }} - {{ site.data.project.tagline }}" />
    {% else %}
        <meta property="og:title" content="{{ page.title }} - {{ site.data.project.site_title }}" />
    {% endif %}
    {% if page.description %}
        <meta property="og:description" content="{{ page.description }}" />
    {% else %}
        <meta property="og:description" content="{{ site.data.project.description }}" />
    {% endif %}
    <meta property="og:image" content="https://commonmark.thephpleague.com/images/commonmark-social.png" />
    <link rel="stylesheet" href="//theme.thephpleague.com/css/all.css?{{ site.github.build_revision }}">
    <link rel="stylesheet" href="/custom.css?{{ site.github.build_revision }}">
    <link rel="stylesheet" href="/global.css?{{ site.github.build_revision }}">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css">
    <link rel="stylesheet" href="/support.css?{{ site.github.build_revision }}">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.0/css/all.min.css" integrity="sha256-h20CPZ0QyXlBuAw7A+KluUYx/3pK+c7lYEpqLTlxjYQ=" crossorigin="anonymous" />
    <script async src="https://www.googletagmanager.com/gtag/js?id={{ site.data.project.google_analytics_tracking_id }}"></script>
    <script>
        window.dataLayer = window.dataLayer || [];
        function gtag() { dataLayer.push(arguments);}
        gtag('js', new Date());
        gtag('config', '{{  site.data.project.google_analytics_tracking_id }}');
    </script>
</head>
<body>
<header>
    <div class="header-content">
        <h1 class="title">
            <a class="logo" href="/">
            <span class="name">
                <em>League\</em>CommonMark
            </span>
            </a>
        </h1>
        <div class="search"><input type="search" id="doc-search" placeholder="search the docs..."></div>
        <nav class="versions">
            <h2>{% if upgrading == true %}Notes{% else %}v{{ version }}{% endif %} &#9662;</h2>
            <ul>
            {% for v in site.data.menu.version %}
                <li {% if version == v[0] and upgrading == false %}class="selected"{% endif %}><a href="{{ v[0] | get_version_link : page.url }}">v{{ v[0] }}</a></li>
            {% endfor %}
                <li {% if upgrading == true %}class="selected"{% endif %}><a href="/releases/">Notes</a></li>
            </ul>
        </nav>
    </div>
</header>

<input type="checkbox" id="menu">
<label for="menu" onclick>
    <div class="closed">&#9776;</div>
    <div class="open">&#10799;</div>
</label>

<main>
    <menu>
        <div class="versions-small">
        <h2>Versions</h2>
            <ul>
        {% for v in site.data.menu.version %}
                <li {% if version == v[0] and upgrading == false %}class="selected"{% endif %}>
                    <a href="/{{ v[0] }}/">{{ v[0] }}</a>
                </li>
        {% endfor %}
                <li {% if upgrading == true %}class="selected"{% endif %}><a href="/releases/">Releases Notes</a></li>
            </ul>
        </div>

        {% if upgrading == false %}
            {% for section in site.data.menu.version[version] %}
            <div class="menu-section">
                <h2>{{ section[0] }}</h2>
                <ul>
                    {% for link in section[1] %}
                        <li {% if page.url == link[1] %}class="selected"{% endif %}>
                            <a href="{{ link[1] }}">{{ link[0] }}</a>
                        </li>
                    {% endfor %}
                </ul>
            </div>
            {% endfor %}
        {% else %}
            {% for section in site.data.menu.upgrading %}
                <h2>{{ section[0] }}</h2>
                <ul>
                    {% for link in section[1] %}
                        <li {% if page.url == link[1] %}class="selected"{% endif %}>
                            <a href="{{ link[1] }}">{{ link[0] }}</a>
                        </li>
                    {% endfor %}
                </ul>
            {% endfor %}
        {% endif %}
    </menu>
    <article>
    {% if version_type == 'next' %}
        <p class="message-notice">This is the documentation for the upcoming <code>version {{ version }}</code>. This is a work in progress</p>
    {% endif %}

    {% if version_type == 'previous' %}
        <p class="message-notice">This is the documentation for <code>version {{ version }}</code>. Please consider upgrading your code to <a href="{{ site.data.project.default_version|get_documentation_link }}">the latest stable version</a></p>
    {% endif %}

    {% if version_type == 'legacy' %}
        <p class="message-warning">This is the documentation for the unsupported <code>version {{ version }}</code>. Please consider upgrading your code to <a href="{{ site.data.project.default_version|get_documentation_link }}">the latest stable version</a></p>
    {% endif %}

        {{ content }}

        <hr>

        <p>
            <a class="btn btn-sm btn-black" href="{{ page.path | get_edit_link }}" title="Edit this page on GitHub" target="_blank" rel="noopener"><i class="fas fa-edit"></i> Edit this page</a>
        </p>
    </article>

    <aside class="support-banner-wrapper" x-data="{ show: false }" x-show.transition="show" x-init="h = localStorage.getItem('hideBanner'); (h === null || h < (new Date().getTime())) ? (setTimeout(() => show = true, 500)) : (show = false)">
        <div class="support-banner">
            <p class="support-banner-left">
                <strong>Love PHP Commonmark?</strong>
                <span class="hidden sm:inline-block lg:hidden">
                    Show your support!
                </span>

                <span class="hidden lg:inline-block">
                    Support development via monthly sponsorship or a one-time donation!
                </span>
            </p>

            <div class="support-banner-right">
                <a href="https://github.com/sponsors/colinodell" class="btn btn-pink btn-block">
                    <i class="fas fa-heart fa-fw" aria-hidden="true"></i> Sponsor
                </a>

                <a href="https://www.paypal.me/colinpodell/10.00" class="btn btn-green btn-block">
                    <i class="fas fa-donate fa-fw" aria-hidden="true"></i> Donate
                </a>
            </div>

            <button x-on:click="localStorage.setItem('hideBanner', new Date().getTime() + (7*24*60*60*1000)); show = false" class="support-banner-close">
                <i class="fas fa-times" aria-hidden="true"></i>
            </button>
        </div>
    </aside>
</main>

<footer>
    <span>&copy; Copyright <a href="https://www.colinodell.com">Colin O'Dell</a> &amp; <a href="//thephpleague.com">The League of Extraordinary Packages</a>.</span>
    <span>Site design by <a href="//reinink.ca">Jonathan Reinink</a> and <a href="//nyamsprod.com">Ignace Nyamagana Butera</a>.</span>
</footer>
<script src="/custom.js?{{ site.github.build_revision }}"></script>
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/alpinejs/alpine@v2.x.x/dist/alpine.min.js" defer></script>
<script> docsearch({
    apiKey: 'f8a60b0120292f75f23d313f6cebba05',
    appId: '5WPQI5503X',
    indexName: 'commonmark-thephpleague',
    inputSelector: '#doc-search',
    algoliaOptions: { 'facetFilters': ["version:v{{ version }}"] },
    debug: false // Set debug to true if you want to inspect the dropdown
});
</script>
</body>
</html>