Skip to content

Commit d603d74

Browse files
authored
Merge pull request #297 from hildjj/discord
Add Discord widget
2 parents 6532a1e + e33cfa6 commit d603d74

File tree

2 files changed

+83
-79
lines changed

2 files changed

+83
-79
lines changed

docs/css/content.css

+4
Original file line numberDiff line numberDiff line change
@@ -157,3 +157,7 @@
157157
#output {
158158
max-width: 50vw;
159159
}
160+
161+
#discord {
162+
margin-top: 3em;
163+
}

docs/index.html

+79-79
Original file line numberDiff line numberDiff line change
@@ -2,101 +2,101 @@
22
<html>
33

44
<head>
5-
<meta charset="utf-8">
6-
<meta name="copyright" content="Copyright &copy; 2022 The Peggy Authors">
7-
<meta name="keywords" content="parser generator, PEG, JavaScript, PEG.js">
8-
<meta name="description" content="Peggy is a parser generator for JavaScript based on the parsing expression grammar formalism.">
9-
<title>Peggy &ndash; Parser Generator for JavaScript</title>
10-
<link rel="stylesheet" href="css/common.css">
11-
<link rel="stylesheet" href="css/layout-default.css">
12-
<link rel="stylesheet" href="css/content.css">
13-
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
14-
<!--[if IE]>
5+
<meta charset="utf-8">
6+
<meta name="copyright" content="Copyright &copy; 2022 The Peggy Authors">
7+
<meta name="keywords" content="parser generator, PEG, JavaScript, PEG.js">
8+
<meta name="description"
9+
content="Peggy is a parser generator for JavaScript based on the parsing expression grammar formalism.">
10+
<title>Peggy &ndash; Parser Generator for JavaScript</title>
11+
<link rel="stylesheet" href="css/common.css">
12+
<link rel="stylesheet" href="css/layout-default.css">
13+
<link rel="stylesheet" href="css/content.css">
14+
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
15+
<!--[if IE]>
1516
<script>
1617
var html5elements = ["aside", "footer", "header", "nav"];
1718
for (var i = 0; i < html5elements.length; i++) {
1819
document.createElement(html5elements[i]);
1920
}
2021
</script>
21-
<![endif]-->
22+
<![endif]-->
2223

2324
</head>
2425

2526
<body>
26-
<div id='main'>
27-
<header id="header">
28-
<h1><a href="#main">Peggy</a></h1>
29-
<h2>Parser Generator for JavaScript</h2>
30-
</header>
31-
32-
<nav id="menu">
33-
<a class="current" href="#main">Home</a>
34-
<a href="online.html">Online Version</a>
35-
<a href="documentation.html">Documentation</a>
36-
<a href="development/index.html">Development</a>
37-
</nav>
38-
39-
<div id="content">
40-
41-
42-
43-
<div id="sidebar">
44-
<a class="try" href="online.html">Try Peggy online</a>
45-
<div class="separator">&mdash; or &mdash;</div>
46-
<pre class="install">npm install peggy</pre>
47-
<div class="separator">&mdash; or &mdash;</div>
48-
<div class="separator">&mdash; or &mdash;</div>
49-
<div class="label">Download browser version</div>
50-
<span id="download">
51-
<a title="Download a minified version of Peggy for the browser"
52-
href="https://unpkg.com/[email protected]/browser/peggy.min.js">minified</a>
53-
</span>
54-
</div>
55-
56-
<div id="left-column">
57-
<p>
58-
Peggy is a simple parser generator for JavaScript that produces fast
59-
parsers with excellent error reporting. You can use it to process complex data
60-
or computer languages and build transformers, interpreters, compilers and
61-
other tools easily.
62-
</p>
27+
<div id='main'>
28+
<header id="header">
29+
<h1><a href="#main">Peggy</a></h1>
30+
<h2>Parser Generator for JavaScript</h2>
31+
</header>
32+
33+
<nav id="menu">
34+
<a class="current" href="#main">Home</a>
35+
<a href="online.html">Online Version</a>
36+
<a href="documentation.html">Documentation</a>
37+
<a href="development/index.html">Development</a>
38+
</nav>
39+
40+
<div id="content">
41+
42+
<div id="sidebar">
43+
<a class="try" href="online.html">Try Peggy online</a>
44+
<div class="separator">&mdash; or &mdash;</div>
45+
<pre class="install">npm install peggy</pre>
46+
<div class="separator">&mdash; or &mdash;</div>
47+
<div class="label">Download browser version</div>
48+
<span id="download">
49+
<a title="Download a minified version of Peggy for the browser"
50+
href="https://unpkg.com/[email protected]/browser/peggy.min.js">minified</a>
51+
</span>
52+
<iframe
53+
id="discord"
54+
src="https://discordapp.com/widget?id=985995982909100082&theme=dark"
55+
width="250"
56+
height="250"
57+
allowtransparency="true"
58+
frameborder="0"
59+
sandbox="allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts">
60+
</iframe>
61+
</div>
62+
63+
<div id="left-column">
64+
<p>
65+
Peggy is a simple parser generator for JavaScript that produces fast
66+
parsers with excellent error reporting. You can use it to process complex data
67+
or computer languages and build transformers, interpreters, compilers and
68+
other tools easily.
69+
</p>
6370

6471
<h2>Features</h2>
6572

6673
<ul>
67-
<li>Simple and expressive grammar syntax</li>
68-
69-
<li>Integrates both lexical and syntactical analysis</li>
70-
71-
<li>Parsers have excellent error reporting out of the box</li>
72-
73-
<li>
74-
Based on <a href="https://en.wikipedia.org/wiki/Parsing_expression_grammar">parsing
75-
expression grammar</a> formalism &mdash; more powerful than traditional LL(<em>k</em>)
76-
and LR(<em>k</em>) parsers
77-
</li>
78-
79-
<li>
80-
Usable <a href="online.html">from your browser</a>, from the command
81-
line, or via JavaScript API
82-
</li>
83-
84-
<li>
85-
<a href="https://developer.mozilla.org/en-US/docs/Tools/Debugger/How_to/Use_a_source_map">Source map</a> support.
86-
</li>
74+
<li>Simple and expressive grammar syntax</li>
75+
<li>Integrates both lexical and syntactical analysis</li>
76+
<li>Parsers have excellent error reporting out of the box</li>
77+
<li>
78+
Based on <a href="https://en.wikipedia.org/wiki/Parsing_expression_grammar">parsing
79+
expression grammar</a> formalism &mdash; more powerful than traditional LL(<em>k</em>)
80+
and LR(<em>k</em>) parsers
81+
</li>
82+
<li>
83+
Usable <a href="online.html">from your browser</a>, from the command
84+
line, or via JavaScript API
85+
</li>
86+
<li>
87+
<a href="https://developer.mozilla.org/en-US/docs/Tools/Debugger/How_to/Use_a_source_map">Source map</a>
88+
support.
89+
</li>
8790
</ul>
88-
</div>
89-
90-
91-
92-
</div>
93-
94-
<footer id="footer">
95-
Copyright &copy; 2022 <a href="https://github.com/peggyjs/peggy/blob/main/AUTHORS">The Peggy Authors</a>
96-
&bull;
97-
<a href="https://github.com/peggyjs/peggy">Source code</a>
98-
</footer>
91+
</div>
9992
</div>
93+
94+
<footer id="footer">
95+
Copyright &copy; 2022 <a href="https://github.com/peggyjs/peggy/blob/main/AUTHORS">The Peggy Authors</a>
96+
&bull;
97+
<a href="https://github.com/peggyjs/peggy">Source code</a>
98+
</footer>
99+
</div>
100100
</body>
101101

102102
</html>

0 commit comments

Comments
 (0)