Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create new community page #125

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
209 changes: 209 additions & 0 deletions docs/dev/community.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,209 @@
<!DOCTYPE html>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So ... this is a lot of duplication of the index.html. We should use https://github.com/erlydtl/erlydtl instead. LFE Dragon uses erlydtl. Check out the following:

Let's keep this PR open, and we'll just iterate here, as you push your changes for my review.

This is a good start :-)

(more comments below)

Copy link
Contributor Author

@prertik prertik Oct 18, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, i'm kind of confused because of my unfamiliarity with the tool. Can you tell me a correct way to generate new community.html?

should I do: (docs-pages:get-page 'landing '/dev/community.html) ??

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a bit more involved; you'll have to look at how the landing page is done. I can review that, but it will be a week or two (I'm in the middle of a move and don't have the chunks of time needed to instruct on this).

<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">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Language" content="en-us" />
<meta http-equiv="imagetoolbar" content="false" />
<meta name="MSSmartTagsPreventParsing" content="true" />
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="/dev/favicon.ico">

<title></title>

<!-- LFE Bootstrap Theme CSS -->
<link href="/dev/css/bootstrap-min.css" rel="stylesheet">

<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<link href="https://fonts.googleapis.com/css?family=Josefin+Sans|Josefin+Slab" rel="stylesheet">

</head>


<body>


<nav class="navbar navbar-default navbar-fixed-top">

<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/dev/"></a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li class="active"><a href="http://lfe.io/">LFE</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Docs <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="/current/index.html">Current</a></li>
<li><a href="/dev/index.html">Dev</a></li>
<li><a href="/v1.2/index.html">v1.2</a></li>
<li><a href="/v0.10/index.html">v0.10</a></li>
<li><a href="/v0.9/index.html">v0.9</a></li>
<li><a href="/v0.8/index.html">v0.8</a></li>
<li><a href="/v0.7/index.html">v0.7</a></li>
</ul>
</li>
<li><a href="#start">Getting Started</a></li>
<li><a href="#reference">Reference</a></li>
<li><a href="#community">Community</a></li>
<li><a href="http://blog.lfe.io/">Blog</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>

</nav>


<main>

<div class="wrapper">
<section>
<h1>LFE Community Resources</h1>
<h2>Mail List and Social Media</h2>
<p>If you&#39;d like to ask questions or just keep in touch with the project, you can do so via:
</p>
<ul>
<li>Our Project <a href="https://twitter.com/ErlangLisp">Twitter account</a> where we chatter about related topics</li>
<li>Our low-volume <a href="http://groups.google.com/group/lisp-flavoured-erlang">forum/mail list</a>on Google Groups</li>
<li>We have an IRC channel -- come by and say &quot;hi&quot; on <a href="https://kiwiirc.com/client/irc.freenode/net/#erlang-lisp">#erlang-lisp</a> (Freenode.net)</li>
<li>A <a href="https://plus.google.com/u/1/communities/103919485468949397234">Google+ Community</a></li>
</ul>

<h2>Blogs, News, and Wikis</h2>
<ul>

<li>The LFE/LFEX <a href="http://plan.lfe.io/">.plan</a> file</li>
<li>An <a href="http://blog.lfe.io/">LFE news, tutorials, and updates blog</a></li>
<li><a href="http://rvirding.blogspot.com/">Robert Virding&#39;s blog</a></li>
<li><a href="http://oubiwann.blogspot.com/search/label/lfe">Duncan McGreggor&#39;s blog</a></li>
<li><a href="https://en.wikipedia.org/wiki/LFE_(programming_language)">LFE on Wikipedia</a></li>
<li>An <a href="https://erlangcentral.org/wiki/index.php/Lisp_Flavoured_Erlang">LFE intro</a> on Erlang Central</li>
<li><a href="https://paper.li/ErlangLisp/1397422779">LFE Sunday Times</a></li>

</ul>

<h2>Code</h2>

<ul>
<li><a href="https://github.com/rvirding/lfe">LFE master</a> and
<a href="https://github.com/rvirding/lfe/tree/develop">develop</a> branches</li>
<li>The <a href="https://github.com/lfex">LFE Exchange</a> on Github which has a massive collection of LFE projects</li>
<li>The LFE <a href="https://github.com/lfe/docs">docs site repo</a></li>
<li>The LFE <a href="https://github.com/lfe/blog">blog site repo</a></li>
<li>The repo for the LFE <a href="https://github.com/lfe/lfe.github.io">main web site source</a></li>
<li>LFE examples on <a href="http://rosettacode.org/wiki/Category:LFE">Rosetta Code</a></li>
<li>The LFE <a href="https://www.ohloh.net/p/lfe">project page</a> on Ohloh.</li>
</ul>

<h2>Video and Presentations</h2>

<p>Our <a href="/current/presentations.html">presentations page</a> has recorded video of LFE talks, slide decks, and screencasts.</p>

<h2>Additional Resources</h2>

<ul>
<li>On <a href="http://news.ycombinator.com/item?id=286288">Hacker News</a></li>
<li><a href="http://blog.ericbmerritt.com/2011/08/22/enhancing-lisp-flavored-erlang.html">Enhancing LFE</a></li>
<li>A <a href="https://bitbucket.org/birkenfeld/pygments-main/pull-request/25/lisp-flavored-erlang-lexer/diff">pull request</a> for pygments LFE support</li>
<li>A <a href="https://github.com/lfe/vim-lfe">Vim plugin</a> for LFE</li>
<li>A <a href="https://melpa.org/#/lfe-mode">Emacs Mode</a>for LFE</li>
</ul>

<h2>Code from the Wild</h2>

<p>Be sure to check out the <a href="/current/examples.html">Examples page</a>, as we have collected a list of project and code samples that folks have put up in various corners of Github -- all for your convenience!
</p>
</section>
</div>


</main>


<div class="container">

<footer class="footer">

<div class="row">
<div class="col-lg-12 center-block text-center footer-buffer">
</div>
</div>
<div class="row">
<div class="col-lg-12 text-center footer-buffer4x">
<p></p>
</div>
</div>
<div class="row">
<div class="col-lg-5 text-center">
<ul>
<li><a href="/dev/tutorials/">Tutorials</a></li>
<li><a href="/dev/presentations/">Presentations</a></li>
<li><a href="/dev/history/">History</a></li>
<li><a href="http://github.com/lfex">LFEX</a></li>
</ul>
</div>
<div class="col-lg-2 text-center">
<span>
<a href="http://lfe.io/">
<img src="/dev/images/logos/lfe-tiny-grey-square.png"/></a>
</span>
</div>
<div class="col-lg-5 text-center">
<ul>
<li><a href="/dev/contributing">Contributing</a></li>
<li><a href="http://github.com/lfe/docs2/issues">Docs Tickets</a></li>
<li><a href="http://blog.lfe.io/">Blog</a></li>
<li><a href="http://twitter.com/ErlangLisp">Twitter</a></li>
</ul>
</div>
</div>
<div class="row">
<div class="col-lg-2"></div>
<div class="col-lg-8 center-block text-center footer-buffer">
<div class="copyright">
<p>LFE Design and Content &copy; 2013-2017 LFEminati | Alien Alliance
</p>
</div>
<div class="col-lg-2"></div>
</div>
</div>

</footer>

</div>




<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="/dev/js/jquery-1.12.1.min.js"></script>
<script>window.jQuery || document.write('<script src="/dev/js/jquery-1.12.1.min.js"><\/script>')</script>
<script src="/dev/js/bootstrap-3.3.6.min.js"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="/dev/js/lfe.js"></script>




</body>

</html>
64 changes: 64 additions & 0 deletions priv/templates/sub-page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{% extends "base.html" %}

{% block main_content %}
<div class="wrapper">
<section>
<h1>LFE Community Resources</h1>
<h2>Mail List and Social Media</h2>
<p>If you&#39;d like to ask questions or just keep in touch with the project, you can do so via:
</p>
<ul>
<li>Our Project <a href="https://twitter.com/ErlangLisp">Twitter account</a> where we chatter about related topics</li>
<li>Our low-volume <a href="http://groups.google.com/group/lisp-flavoured-erlang">forum/mail list</a>on Google Groups</li>
<li>We have an IRC channel -- come by and say &quot;hi&quot; on <a href="https://kiwiirc.com/client/irc.freenode/net/#erlang-lisp">#erlang-lisp</a> (Freenode.net)</li>
<li>A <a href="https://plus.google.com/u/1/communities/103919485468949397234">Google+ Community</a></li>
</ul>

<h2>Blogs, News, and Wikis</h2>
<ul>

<li>The LFE/LFEX <a href="http://plan.lfe.io/">.plan</a> file</li>
<li>An <a href="http://blog.lfe.io/">LFE news, tutorials, and updates blog</a></li>
<li><a href="http://rvirding.blogspot.com/">Robert Virding&#39;s blog</a></li>
<li><a href="http://oubiwann.blogspot.com/search/label/lfe">Duncan McGreggor&#39;s blog</a></li>
<li><a href="https://en.wikipedia.org/wiki/LFE_(programming_language)">LFE on Wikipedia</a></li>
<li>An <a href="https://erlangcentral.org/wiki/index.php/Lisp_Flavoured_Erlang">LFE intro</a> on Erlang Central</li>
<li><a href="https://paper.li/ErlangLisp/1397422779">LFE Sunday Times</a></li>

</ul>

<h2>Code</h2>

<ul>
<li><a href="https://github.com/rvirding/lfe">LFE master</a> and
<a href="https://github.com/rvirding/lfe/tree/develop">develop</a> branches</li>
<li>The <a href="https://github.com/lfex">LFE Exchange</a> on Github which has a massive collection of LFE projects</li>
<li>The LFE <a href="https://github.com/lfe/docs">docs site repo</a></li>
<li>The LFE <a href="https://github.com/lfe/blog">blog site repo</a></li>
<li>The repo for the LFE <a href="https://github.com/lfe/lfe.github.io">main web site source</a></li>
<li>LFE examples on <a href="http://rosettacode.org/wiki/Category:LFE">Rosetta Code</a></li>
<li>The LFE <a href="https://www.ohloh.net/p/lfe">project page</a> on Ohloh.</li>
</ul>

<h2>Video and Presentations</h2>

<p>Our <a href="/current/presentations.html">presentations page</a> has recorded video of LFE talks, slide decks, and screencasts.</p>

<h2>Additional Resources</h2>

<ul>
<li>On <a href="http://news.ycombinator.com/item?id=286288">Hacker News</a></li>
<li><a href="http://blog.ericbmerritt.com/2011/08/22/enhancing-lisp-flavored-erlang.html">Enhancing LFE</a></li>
<li>A <a href="https://bitbucket.org/birkenfeld/pygments-main/pull-request/25/lisp-flavored-erlang-lexer/diff">pull request</a> for pygments LFE support</li>
<li>A <a href="https://github.com/lfe/vim-lfe">Vim plugin</a> for LFE</li>
<li>A <a href="https://melpa.org/#/lfe-mode">Emacs Mode</a>for LFE</li>
</ul>

<h2>Code from the Wild</h2>

<p>Be sure to check out the <a href="/current/examples.html">Examples page</a>, as we have collected a list of project and code samples that folks have put up in various corners of Github -- all for your convenience!
</p>
</section>
</div>

{% endblock %}
8 changes: 7 additions & 1 deletion src/docs-pages.lfe
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,10 @@
(clj:-> path
(docs-data:base)
(example_two_column-tmpl:render)
(get-content))))
(get-content)))
(('sub-page path)
(clj:-> path
(docs-data:base)
(sub-page-tmpl:render)
(get-content))))

4 changes: 3 additions & 1 deletion src/docs-routes.lfe
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
("design/bootstrap-theme.html"
,(lambda () (docs-pages:get-page 'bootstrap-theme path)))
("design/example-2-column.html"
,(lambda () (docs-pages:get-page 'example-two-column path)))))
,(lambda () (docs-pages:get-page 'example-two-column path)))
("community.html"
,(lambda () (docs-pages:get-page 'sub-page path)))))

(defun get-site (path)
(poise:site
Expand Down