Skip to content
This repository has been archived by the owner on May 4, 2020. It is now read-only.

Add support for current version documentation #30

Merged
merged 37 commits into from
Jan 13, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
33c1f8d
Shorten feature names to make them less noisy
everzet Jan 7, 2015
bb51584
Describe current documentation feature
everzet Jan 7, 2015
be271f1
Write missing step definition for current documentation
everzet Jan 7, 2015
762d645
Introduce DocumentationRepository interface
everzet Jan 7, 2015
83a8636
Shorten DocumentationRepository to Repository
everzet Jan 7, 2015
95efabc
Move fakes into tests namespace
everzet Jan 11, 2015
8031a31
Move Package\Documentation to PackageDocumentation
everzet Jan 11, 2015
9c506ce
Remove needless tests for integration objects
everzet Jan 11, 2015
d0f6f1c
Rename Documentation to RawDocumentation
everzet Jan 11, 2015
efda114
Rename DocumentationManager::build() to DocumentationManager::process()
everzet Jan 11, 2015
409684a
Introduce Repository into DocumentationManager
everzet Jan 11, 2015
83c8f22
Switch DocumentationManager to use repository
everzet Jan 11, 2015
96dd07c
Introduce documentation Processor
everzet Jan 11, 2015
223a011
Introduce PageFinder and move page finding repos to it
everzet Jan 11, 2015
4283312
Update domain acceptance tests to pass again
everzet Jan 11, 2015
de1997d
Simplify domain context initialization
everzet Jan 11, 2015
6273f3f
Fix integration tests
everzet Jan 11, 2015
aa01ece
Make smoke tests green again by introducing FilesystemRepository
everzet Jan 11, 2015
b7aacd0
Rename DocumentationManager::getAllDocumentation() to findProjectDocu…
everzet Jan 11, 2015
f983e9e
Rename DocumentationManager to Documenter
everzet Jan 11, 2015
4e943ed
Switch FakeRepository to use InMemoryRepository
everzet Jan 11, 2015
90d8930
Merge PageFinder logic back into Documenter
everzet Jan 11, 2015
7cd13bd
Make current documentation scenarios green
everzet Jan 11, 2015
42e345a
Wrap FilesystemRepository into CurrentDocumentationRepository
everzet Jan 11, 2015
e42f3dc
Move sorting responsibility back to repositories
everzet Jan 11, 2015
2a65dd1
Rewire routes to use `current` instead of hardcoded `v3.0.x`
everzet Jan 11, 2015
7c1116d
Move Fake back to features/bootstrap for now
everzet Jan 12, 2015
ac3c98e
Merge both Fake and Filesystem repositories into one
everzet Jan 12, 2015
967c81d
Move CurrentDocumentationRepository behaviour to the interface
everzet Jan 12, 2015
bde630f
Cleanup DocumentationContributorContext
everzet Jan 12, 2015
bb407d4
Fix field name in the PackagedDocumentationBuilder
everzet Jan 13, 2015
ab193ae
Fix wrong scenario expectation (Thanks Stof)
everzet Jan 13, 2015
23adcbd
Fix the way `master` & `develop` documentation compared
everzet Jan 13, 2015
695b296
Remove documentation Processor
everzet Jan 13, 2015
eb66a81
Add a smoke test for one of the `current` scenarios
everzet Jan 13, 2015
7834fe2
Move `current` documentation handling to a repository
everzet Jan 13, 2015
5a64d43
Rename RawDocumentation::getId() to getDocumentationId()
everzet Jan 13, 2015
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
4 changes: 2 additions & 2 deletions app/Resources/views/homepage.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
</span>

<nav class="gates clearfix">
<a class="introduction" href="{{ path('behat_documentation_page', {'version': 'v3.0.x', 'path': 'quick_intro_pt1.html'}) }}">
<a class="introduction" href="{{ path('behat_documentation_page', {'version': 'current', 'path': 'quick_intro_pt1.html'}) }}">
Read quick introduction
</a>
<a class="documentation" href="{{ path('behat_documentation_page', {'version': 'v3.0.x', 'path': 'index.html'}) }}">
<a class="documentation" href="{{ path('behat_documentation_page', {'version': 'current', 'path': 'index.html'}) }}">
Read the documentation
</a>
<a class="training" href="http://inviqa.com/services/get-trained/bdd-immersion-days/">
Expand Down
2 changes: 1 addition & 1 deletion app/Resources/views/layout.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<a class="section {% if app.request.attributes.get('section') == 'homepage' %}active{% endif %}" href="{{ path('homepage') }}">
About
</a>
<a class="section {% if app.request.attributes.get('section') == 'documentation' %}active{% endif %}" href="{{ path('behat_documentation_page', {'version': 'v3.0.x', 'path': 'index.html'}) }}">
<a class="section {% if app.request.attributes.get('section') == 'documentation' %}active{% endif %}" href="{{ path('behat_documentation_page', {'version': 'current', 'path': 'index.html'}) }}">
Documentation
</a>
<a class="fork-us" href="https://github.com/Behat/Behat">Fork us</a>
Expand Down
2 changes: 1 addition & 1 deletion app/config/routing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ documentation:
section: 'documentation'
requirements:
project: '[\w\-]++\/[\w\-]++'
version: 'master|develop|v\d++\.\d++(?:\.x)?'
version: 'current|master|develop|v\d++\.\d++(?:\.x)?'
path: '.*\.html'
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"sensio/distribution-bundle": "~3.0",
"sensio/framework-extra-bundle": "~3.0",
"incenteev/composer-parameter-handler": "~2.0",
"knplabs/github-api": "~1.4.1"
"knplabs/github-api": "~1.4.1",
"everzet/persisted-objects": "~1.0.0"
},

"require-dev": {
Expand Down
131 changes: 93 additions & 38 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Feature: Documentation is published on repository release
Feature: Behat documentation is published
In order to help newcomers start using behat quicker
As a documentation contributor
I want behat documentation to be published after we release a new version of it
Expand Down
Loading