-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduced a separate layout for the homepage and switched the extens…
…ions to rst.
- Loading branch information
Showing
9 changed files
with
135 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{% extends "!layout.html" %} | ||
|
||
{%- block doctype -%}<!DOCTYPE html>{%- endblock -%} | ||
|
||
{% set css_files = css_files + ['_static/scrolls.css', '_static/pygments.css', '_static/main.css', 'http://fonts.googleapis.com/css?family=Lobster', '_static/print.css'] %} | ||
|
||
{%- block header %} | ||
<header> | ||
<ul class="main-menu"> | ||
<li{% if pagename == 'index' %} class="active"{% endif %}><a href="/">main</a></li> | ||
<li{% if pagename != 'index' %} class="active"{% endif %}><a href="{{ pathto('docs/introduction') }}">phpspec manual</a></li> | ||
<li class="right"><a href="http://github.com/phpspec/prophecy">prophecy repo</a></li> | ||
<li class="right"><a href="http://github.com/phpspec/phpspec">phpspec repo</a></li> | ||
</ul> | ||
</header> | ||
{% endblock %} | ||
|
||
{% block content %}{% endblock %} | ||
|
||
{% block footer %} | ||
<footer> | ||
<dl> | ||
<dt>Resources</dt> | ||
<dd><a href="http://behat.org">Behat</a></dd> | ||
</dl> | ||
<dl> | ||
<dt>GitHub</dt> | ||
<dd><a href="https://github.com/phpspec/phpspec">phpspec</a></dd> | ||
</dl> | ||
|
||
<div class="clear"></div> | ||
</footer> | ||
<script type="text/javascript"> | ||
var _gaq = _gaq || []; | ||
_gaq.push(['_setAccount', 'UA-34229660-1']); | ||
_gaq.push(['_trackPageview']); | ||
|
||
(function() { | ||
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; | ||
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | ||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); | ||
})(); | ||
|
||
</script> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block htmltitle %} | ||
<title>phpspec</title> | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<section class="intro"> | ||
<a id="logo" href="/">phpspec</a> | ||
|
||
<div class="intro"> | ||
<h1> | ||
A <span>php</span> toolset to drive emergent<br/> | ||
design by <span>specification</span>. | ||
</h1> | ||
</div> | ||
|
||
<div class="preview"> | ||
<a href="http://github.com/phpspec/phpspec" class="docs repo"> | ||
phpspec<br>repository | ||
</a> | ||
<a href="{{ pathto('docs/introduction') }}" class="docs manual"> | ||
phpspec<br>manual | ||
</a> | ||
<div style="clear:both"></div> | ||
</div> | ||
</section> | ||
|
||
<section class="documentation"> | ||
{% block body %}{% endblock %} | ||
</section> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block content %} | ||
<section class="docs" id="manual"> | ||
<nav class="toc"> | ||
<h3>Chapters</h3> | ||
{{ toc }} | ||
</nav> | ||
|
||
<section class="documentation"> | ||
{% block body %}{% endblock %} | ||
</section> | ||
</section> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,87 +1,5 @@ | ||
{% extends "!layout.html" %} | ||
|
||
{%- block doctype -%} | ||
<!DOCTYPE html> | ||
{%- endblock -%} | ||
|
||
{% set css_files = css_files + ['_static/scrolls.css', '_static/pygments.css', '_static/main.css', 'http://fonts.googleapis.com/css?family=Lobster', '_static/print.css'] %} | ||
|
||
{% block extrahead %} | ||
<script type="text/javascript"> | ||
var _gaq = _gaq || []; | ||
_gaq.push(['_setAccount', 'UA-34229660-1']); | ||
_gaq.push(['_trackPageview']); | ||
|
||
(function() { | ||
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; | ||
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | ||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); | ||
})(); | ||
|
||
</script> | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<section class="intro"> | ||
<a id="logo" href="http://phpspec.net">phpspec</a> | ||
|
||
<div class="intro"> | ||
<h1> | ||
A <span>php</span> toolset to drive emergent<br/> | ||
design by <span>specification</span>. | ||
</h1> | ||
</div> | ||
|
||
<div class="preview"> | ||
<a href="http://github.com/phpspec/phpspec" class="docs repo"> | ||
phpspec<br>repository | ||
</a> | ||
<a href="#manual" class="docs manual"> | ||
phpspec<br>manual | ||
</a> | ||
<div style="clear:both"></div> | ||
</div> | ||
</section> | ||
|
||
<section class="docs" id="manual"> | ||
|
||
<nav class="toc"> | ||
<h3>Chapters</h3> | ||
{{ toc }} | ||
</nav> | ||
|
||
<section class="documentation"> | ||
{% block body %}{% endblock %} | ||
</section> | ||
|
||
{#% if pagename != 'index' %} | ||
<footer> | ||
<nav> | ||
{%- if prev %} | ||
« <a href="{{ prev.link|e }}">{{ prev.title }}</a> | | ||
{%- endif %} | ||
{{ title }} | ||
{%- if next %} | ||
| <a href="{{ next.link|e }}">{{ next.title }}</a> » | ||
{%- endif %} | ||
</nav> | ||
</footer> | ||
{% endif %#} | ||
|
||
</section> | ||
|
||
<footer> | ||
<dl> | ||
<dt>Resources</dt> | ||
<dd><a href="http://behat.org">Behat</a></dd> | ||
</dl> | ||
<dl> | ||
<dt>GitHub</dt> | ||
<dd><a href="https://github.com/phpspec/phpspec">phpspec</a></dd> | ||
</dl> | ||
|
||
<div class="clear"></div> | ||
</footer> | ||
{% endblock %} | ||
|
||
{% block footer %}{% endblock %} | ||
{% if pagename == 'index' %} | ||
{% extends "basehome.html" %} | ||
{% else %} | ||
{% extends "basepage.html" %} | ||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Getting started with **phpspec** | ||
================================ | ||
|
||
Create a ``composer.json`` file: | ||
|
||
.. code-block:: js | ||
{ | ||
"require-dev": { | ||
"phpspec/phpspec": "2.0.*@dev" | ||
}, | ||
"config": { | ||
"bin-dir": "bin" | ||
}, | ||
"autoload": {"psr-0": {"": "src"}} | ||
} | ||
Install **phpspec** with composer: | ||
|
||
.. code-block:: bash | ||
curl http://getcomposer.org/installer | php | ||
php composer.phar install | ||
Start writing specs: | ||
|
||
.. code-block:: bash | ||
bin/phpspec desc Acme/Calculator | ||
Learn more from :doc:`the documentation <docs/introduction>`. |
I think the current release of composer still requires
install --dev
to install dev dependencies.