Commit Graph

212 Commits

Author SHA1 Message Date
Will Rossiter
31a3b8a744 Add an alphabetical index (Fixes #5) 2014-09-07 20:35:08 +12:00
Will Rossiter
0b91b91e33 Kill DocumentationService in favour of config API.
This continues on the migration to the Manifest. Instead of using calls to a `Service` now all file related lookups are done through the `DocumentationManifest`
2014-09-07 17:09:28 +12:00
Will Rossiter
43b6d42719 Overhaul of module to use DocumentationManifest
This major update changes the behaviour of the docviewer module to use a cached manifest rather than on demand. This allows us to simplify the URL matching and store 'nice' URL configuration rather than altering handleAction().
2014-09-07 11:26:12 +12:00
Will Rossiter
e80edc445e Move advanced form out to it's own class
Make page title customizable through the Config system (Fixes #44)
2014-09-06 11:22:05 +12:00
Will Rossiter
2c00a3b20f New theme.
Clean up of existing theme, implementation of a new easier to integrate layout.
2014-09-06 11:13:12 +12:00
Will Rossiter
fab0cba8a8 Add bash syntax brush (Fixes #45) 2014-09-06 09:20:05 +12:00
Will Rossiter
afe229d343 Remove outdated dependancy. Fixes #46 2014-08-01 16:45:09 +12:00
Will Rossiter
1b0a5c519d Use erusev/parsedown as the Markdown parser. (Fixes #31) 2014-07-27 12:39:44 +12:00
Will Rossiter
d5d346ace8 Fix incorrect code block generation when previous line contains whitespace (Fixes #39) 2014-07-27 11:26:10 +12:00
Will Rossiter
b95191ea3d Add SilverStripe markdown documentation. 2014-07-27 11:26:10 +12:00
Will Rossiter
17527f63d3 Merge pull request #36 from dangerdan/parse-fix
Regex change to support combo of tab & space in md
2014-07-05 19:43:47 +12:00
Dan Brooks
a6dead1fa2 Regex change to support combo of tab & space in md 2014-03-14 17:05:32 +00:00
Will Rossiter
57546ef657 Merge pull request #35 from sminnee/fix-opensearch-url-encoding
FIX: Fixed encoding of & in OpenSearchDescription URLs.
2014-02-14 09:55:40 +13:00
Sam Minnee
b6b753ee4c FIX: Fixed encoding of & in OpenSearchDescription URLs.
Without this fix, the & was then passed to urlencode(), which escaped the ; and make invalid
XML.  This keeps XML out of the source URL (so the & is just a raw & in the code) and relies on
the template engine to escape XML as needed (the .XML on the end of the variables).
2014-02-14 09:38:37 +13:00
Will Rossiter
e3c417113b Add basic responsive styles 2014-02-02 17:23:55 +13:00
Will Rossiter
d68e523e72 Workaround search result matching. 2014-01-14 21:16:39 +13:00
Will Rossiter
95b982353b NEW: Add static publisher option 2014-01-14 20:41:59 +13:00
Will Rossiter
c8ba3ffd2a Fix 404 page not including requirements. 2014-01-11 16:20:53 +13:00
Will Rossiter
d3b748cd29 Merge pull request #34 from trev/patch-1
Fix/support dash in relative links
2013-11-04 20:52:36 -08:00
Trevor
501d4216c8 Fix/support dash in relative links
Currently if you go had something like this: `[Some Link](../)`
and you were in `http://devsite.dev/dev/docs/my_module/en/server-setup/location-specific/`

The parser will resolve the link as: `http://devsite.dev/dev/docs/my_module/en/server-setup/location-`

This is because the regex is only matching *Any word character (letter, number, underscore)*. I've added the dash.
2013-11-05 15:12:26 +11:00
Ingo Schommer
5a742b8584 Note about requiring github.com login for "edit this page"
See https://github.com/silverstripe/doc.silverstripe.org/issues/6
2013-10-30 23:07:38 +01:00
Ingo Schommer
b3d4e402a5 Allow absolute paths in DocumentationSearch::$index_location 2013-10-04 10:55:44 +02:00
Will Rossiter
49f56888f2 Merge pull request #32 from dangerdan/lineheight1
Added line-height rule for .comments to stop line numbering going out of sync
2013-09-21 14:32:44 -07:00
Dan Brooks
19fe346db9 Added line-height rule for .comments to stop line numbering going out of sync 2013-09-21 21:46:03 +01:00
Ingo Schommer
ff5448aae1 Fixed composer constraint to allow for RC releases (composer fixed its tilde behaviour now) 2013-08-14 11:54:40 +02:00
Ingo Schommer
cb877536b6 Fixed testGetModulePagesShort, no longer listing subfolders first 2013-06-10 09:55:12 +02:00
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