Commit Graph

286 Commits

Author SHA1 Message Date
Ingo Schommer
2d7c1499d7 Merge pull request #30 from Martimiz/meta-sort-20130522
MAJOR: enable the use of custom metadata and page sorting
2013-06-10 00:42:32 -07:00
Ingo Schommer
bd186a0a73 BUG Index relative URLs
Avoids clashes between CLI and web modes (e.g. wrongly configured
$_FILE_TO_URL_MAPPING lookups).
2013-05-29 18:17:14 +02:00
martimiz
227289575a MEDIUM: remove metadata from the current page 2013-05-22 21:35:03 +02:00
martimiz
5400ba2afc MAJOR: enable the use of custom metadata and page sorting 2013-05-22 18:35:26 +02:00
Ingo Schommer
cdb55f94f8 Create index location if it doesn't exist 2013-05-17 10:27:21 +02:00
Ingo Schommer
6227e1eb68 Allow symlinks in repo locations (don't resolve on image src) 2013-05-15 15:51:27 +02:00
Ingo Schommer
9a84f674b8 Fixed composer constraints 2013-05-07 15:19:20 +03:00
Ingo Schommer
9ab2dd3889 Travis support 2013-03-29 09:38:02 +01:00
Ingo Schommer
032a49d929 3.1/3.2 compat 2013-03-26 11:16:46 +01:00
Will Rossiter
02c5a38f37 Require 3.1 since 0350495d20. 2013-02-27 22:58:36 +13:00
Sean Harvey
158db9d415 BUG Don't show an empty table of contents 2013-02-20 10:22:18 +13:00
Sean Harvey
0350495d20 Fixing DocumentationViewer::handleAction() to work with SS 3.1 2013-02-20 10:05:05 +13:00
Will Rossiter
3b27cd6b2b NEW: Github style code fence blocks. (Fixes #22) 2013-02-19 22:23:22 +13:00
Ingo Schommer
440a2cbaa5 Moved routing to YML, allow correct priorities between modules 2013-02-15 11:13:40 +01:00
Sean Harvey
9cf85b0c19 If no versions registered for a module, don't show empty versions in template 2013-02-12 13:43:32 +13:00
Will Rossiter
389269936b Merge pull request #21 from Martimiz/search-20130107 2013-02-07 17:53:41 -08:00
Sean Harvey
4a1e5436eb BUG Fixing search not working when no specific versions of docs 2013-01-24 11:16:47 +13:00
Sean Harvey
6eca5af929 Improve default template of DocumentationViewer
class "container" was missing, so a bunch of CSS wasn't being applied.
The layout of the default docsviewer checkout now looks more like the
one on doc.silverstripe.org.
2013-01-24 10:02:18 +13:00
Sean Harvey
927e1b0724 Fixing functions called statically to be declared as such 2013-01-23 16:22:27 +13:00
Will Rossiter
73a66da658 Merge pull request #23 from sdiel/patch-1
Update code/controllers/DocumentationViewer.php
2013-01-11 13:53:43 -08:00
Will Rossiter
e4691e8520 Merge pull request #24 from sdiel/patch-1
Ensure comparison is case insensitive.
2013-01-11 13:51:33 -08:00
Sebastian Diel
5cc766583d Update code/controllers/DocumentationViewer.php
BUGFIX: fixed mechanism to get nested page entities when using upper case chars as the first char of a markdown files name or a folders name
2013-01-11 11:02:49 +01:00
Sebastian Diel
7d5ee2a249 Update code/controllers/DocumentationViewer.php
BUGFIX: fixed false variable name in DocumentationViewer::set_recursive_submenu()
2013-01-11 10:40:59 +01:00
martimiz
5d51c7b446 Revert "Fix: failing unit test (DocumentationViewerTest)"
This reverts commit aacc16c979.
This fix was based  on using docsviewer with framework 3.1-dev and
fails on 3.0.3 stable
2013-01-08 14:51:02 +01:00
martimiz
aacc16c979 Fix: failing unit test (DocumentationViewerTest)
In testGetModulePagesShort() and testGetEntityPages() the pages in the
array are (getEntityPages() doesn't include index nor _images):
0 -> Sort
1 -> Submenu
2 -> Test
2013-01-07 19:53:19 +01:00
martimiz
9f1f70a065 Enhancement: allow for enabling/disabling advanced search
The advanced searchbox only really functions properly for multiple
entities if they all have similar versions. If not, it will let you
search on entity-version combinations that might not even exist, which
can get confusing..

In such cases optionally disabling it could be a solution, waiting for
a better solution (possibly
2013-01-07 17:26:39 +01:00
martimiz
0bd844e139 Fix: no search results found on documentation homepage
On the homepage there are no searchedEntities nor searchedVersions
defined, so the searchForm creates empty hiddenfields. PerformSeach
creates subqueries for thes empty values resulting in the return of an
'Empty' query object.

Solution: do not create these fields when there are no entities/versions
2013-01-07 16:53:33 +01:00
martimiz
5bf5da4c92 Minor: add whitespace after comma in module/entity summary 2013-01-07 16:44:00 +01:00
martimiz
58d4f242b0 Fix: Search returns no results for auto-registered modules
Automatic registration sets the version to '' (empty). This breaks the
search as Lucene Search will return an Empty query object if a subquery
has an empty key.

Fix: register the modules as 'current' instead of ''. Setting the
version title to 'current' in DocumentViewer->getVersions() is now no
longer necessary.
2013-01-07 16:41:07 +01:00
martimiz
5d9feb3fe5 Fix: Search error on autoregistered entities
Error: [Warning] array_combine() [function.array-combine]: Both
parameters should have at least 1 element

HandleRequest for submitted forms returns before the automatic
registration of modules is performed, so no entities can be found.
Fixed by moving  DocumentationService::load_automatic_registration();
to the top of the function
2013-01-07 16:31:12 +01:00
martimiz
88660f12f5 Fix: Mark DocumentationSearch::get_index_location() as static 2013-01-07 15:16:21 +01:00
Simon Welsh
6df20c1f73 Adds missing brace 2012-11-14 23:06:26 +13:00
Will Rossiter
0eadf2d174 Merge pull request #20 from Martimiz/master-update-121112
Styling 404 and selecting toplevel pages without children
2012-11-12 21:05:55 -08:00
martimiz
3dcf210045 changed getSubmenu to getSubmenuLocation
Because it doen't return the submenu itself, it returns the preferred
location
2012-11-13 18:04:05 +13:00
martimiz
0df804f86c Allow for either nested or separate submenu form template. Include recursive option
Default setting: separate submenu, no recursion.

Setting recursion fetches all children, to allow for JavaScript-powered
submenus (script not included). If recursion is enabled, separate menus
are disabled.
2012-11-13 18:04:05 +13:00
martimiz
f2b643871e Fix: provide styling for 404 pages 2012-11-12 16:24:55 +01:00
martimiz
27a4f91d70 Fix: missing 'current' linking mode in top-level menu
If there are no children, the LinkingMode was set to 'link' and never
to 'current'
2012-11-12 16:19:44 +01:00
Sam Minnee
67ff61a756 FIX: Fixed E_STRICT error - static function not marked as such. 2012-11-12 11:26:44 +13:00
Will Rossiter
6a6b168da7 Tighten up spacing 2012-11-10 11:48:46 +13:00
Will Rossiter
a8416221f8 Expanded composer.json 2012-11-10 11:32:42 +13:00
Will Rossiter
9aaeadd7ff Migrated theme from doc.ss back to the module 2012-11-10 11:12:30 +13:00
martimiz
262b035fb5 FIX: IsFolder -> isFolder
commit 9672f2862c introduced an error in
getter/setter
2012-11-10 09:27:28 +13:00
martimiz
933fe4b9ae minor: added missing ; in javascript 2012-11-10 09:27:28 +13:00
martimiz
1f6c5deda7 Minor: coding conventions and javascript, also added submenu title 2012-11-10 09:27:28 +13:00
martimiz
08bfb941d4 restyling color and height of (sub)menu items
Some css settings, adapted from themse/ssorgsite/css/core.css
2012-11-10 09:27:28 +13:00
martimiz
344161be54 Added styles for the table of contents 2012-11-10 09:27:28 +13:00
martimiz
6411d86c09 Add _resources to the list of files to be ignored
using DocumentationService::set_ignored_files() in _config
2012-11-10 09:27:27 +13:00
martimiz
581062b412 Move the nested submenu to a separate block using JavaScript 2012-11-10 09:27:27 +13:00
martimiz
7e7b67548e Mark submenu items with children as folders
Add an arrow to submenuitems that have undelying pages
2012-11-10 09:27:27 +13:00
martimiz
5a29f0c9ba Relocate table of contents
The table of contents is removed from the sidebar and relocated
underneath breadcrumbs and page title (if there is one). It can be
toggled open and closed.
2012-11-10 09:27:27 +13:00