Commit Graph

82 Commits

Author SHA1 Message Date
Robbie Averill e0c20ddf2b FIX getEditLink is now extensible and Lang route handling has a fallback
In some cases the Lang is not available in the route, this fixes that as well as
making the getEditLink() method extensible
2019-02-01 12:19:52 +03:00
Sam Minnee f7377865d4 NEW: Ensure internal URLs are domain-relative
Domain relative URLs (i.e. those starting with “/“) are safer; less
likely to break webcrawlers. Other parts of SilverStripe output URLs
in this form by default.
2018-06-08 11:18:39 +12:00
Robbie Averill fe8b9a37b5 Apply PSR-2 coding conventions 2017-08-28 11:35:02 +12:00
Franco Springveldt a10cdd35f7 Merge pull request #136 from creative-commoners/pulls/2.0/canonical-url
NEW Add ability to handle canonical URLs
2017-08-14 16:33:49 +12:00
Robbie Averill 4aad4e728d NEW Add ability to handle canonical URLs 2017-08-08 15:41:27 +12:00
Robbie Averill 9521e6ab9d Merge pull request #135 from mateusz/fix-head
Fix docs not coming up for HEAD requests.
2017-07-07 10:33:06 +12:00
Mateusz Uzdowski e90ee42f05 Fix docs not coming up for HEAD requests. 2017-07-07 10:29:48 +12:00
Ingo Schommer da441b231d Better syntax highlighting
Specifically, the old highlighter didn't support the "diff" format which was important for changelogs.
Changed the style from dark to light, since it's way too contrasty on a light background - makes it hard to scan both text and code.
And reduced the padding between code and content (mostly using the highlight style defaults)
Added a slight background shadow on code to visually offset the relatively light background color
Changed existing background color for <pre> to a slightly lighter shade, better contrast
Didn't create a custom *.ss style yet, too much work, and XML is good enough for now
2017-06-29 11:13:01 +12:00
Robbie Averill 1a4475af1b
FIX Use the first stable version to list pages in "all"
* Add version to Pages as they are built in the DocumentationManifest
* Add getter for version from request/URL
* Filter Pages in Documentation Index by the requested version
2016-12-12 13:42:58 +13:00
Robbie Averill 909cfd695f Fix some CBF linting issues. Improved a couple of doc blocks. 2016-12-05 08:53:53 +13:00
Damian Mooyman ad40d8fd1e
PSR2 Formatting 2016-12-02 15:31:18 +13:00
Daniel Hensby 9d7a1f6210
Merge pull request #109 from zenmonkey/master 2016-11-07 13:31:41 +00:00
David Alexander 85802d5e7a Updated invalid url for syntax highligter
See https://code.google.com/archive/p/google-code-prettify and https://github.com/google/code-prettify

This affects doc.silverstripe.org so I'll submit a PR there too.
2016-07-21 19:42:32 +12:00
Richard Rudy 50d0bc3774 UPDATE Add Permission Provider
Added VIEW_DEVDOCS permsion code. This shoudl allow room later if module is expanded for User docs "VIEW_USERDOCS"
2016-03-18 14:00:56 -04:00
Cam Findlay 405af6b377 Merge pull request #99 from webbuilders-group/duplicate-home-fix
BUGFIX: Fixed duplicate Home links appearing
2016-03-01 10:35:56 +13:00
UndefinedOffset 6682975a09 BUGFIX: Links in the all pages view missing the documentation base link 2016-02-24 11:41:37 -04:00
UndefinedOffset d0fd100b79 BUGFIX: Fixed duplicate Home links appearing
Added support for a home link in the menu when there is no default entity
2016-02-23 11:37:28 -04:00
UndefinedOffset 5e72a42f13 BUGFIX: Fixed redirecting to strip extensions incorrectly redirecting 2016-02-19 09:34:31 -04:00
Christopher Pitt 13aefa8f48 Added default theme kill switch 2015-12-01 10:14:59 +13:00
helpfulrobot ced8128190 Converted to PSR-2 2015-11-21 19:25:41 +13:00
Damian Mooyman a7094a68af API Use canonical URL for all repositories, and instead redirect from non-versioned page to correct canonical URL for each page. 2015-04-28 17:48:12 +12:00
Cam Findlay 664e3eea91 ENHANCEMENT optional branch property to allow version aliases of development branches inside docsviewer. 2014-12-18 09:41:13 +13:00
Will Rossiter 2257e0fb31 FIX entities not describing state should still show
If an entity does not provide a lang / version, keep showing it across menu. Resolves #53
2014-12-16 23:18:54 +13:00
Cam Findlay 1e2737bc5a Refactored EditLink 2014-11-15 11:46:54 +13:00
Will Rossiter 5cbd9c79cd Restore support for multiple versions in the masthead 2014-11-15 11:41:01 +13:00
Uncle Cheese c71a1aaca2 These changes make a number of improvements, mostly typographical, to improve readability and to render properly on small devices.
Universal increase in font size
Use same font as ss.org for consistency
Remove unnecessary visual noise (borders, box shadows, etc)
Use Google PrettyPrint syntax highlighter for improved readability of code sections
Fully responsive, with hamburger menu
Add "section" linking mode to menu items
Add masthead for breadcrumbs, introduction
Improved styles for notice/info/warning messaging
2014-11-07 12:01:07 +13:00
Will Rossiter f169aa65ac Add support for exclude in children list 2014-10-13 21:55:16 +13:00
Will Rossiter cfa32d56e6 FIX: permission check broken 2014-09-28 17:10:55 +13:00
Will Rossiter 9cf55c57d7 Ensure manifest is cached between calls. 2014-09-27 10:12:54 +12:00
Will Rossiter 2612f221a6 Change DocumentationParser to use GFM for code 2014-09-26 20:15:40 +12:00
Will Rossiter 8057c9257c FIX Language viewer test. 2014-09-21 11:19:17 +12:00
Will Rossiter aed63c9df5 Fix issue with Language parameter not being set
When the user accesses a page more than three levels deep.
2014-09-20 13:43:22 +12:00
Will Rossiter 52733d6ebf Add support for [CHILDREN] shortcode
This allows you to build up dynamic listing pages much better.
2014-09-19 23:29:22 +12:00
Will Rossiter b489d5120a Fixes for unit tests with the latest manifest 2014-09-15 22:12:31 +12:00
Will Rossiter 1e04aaed28 Fix breadcrumbs 2014-09-07 22:14:10 +12:00
Will Rossiter 314e504903 Show nested sidebar menu 2014-09-07 21:28:21 +12:00
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 d68e523e72 Workaround search result matching. 2014-01-14 21:16:39 +13:00
Will Rossiter c8ba3ffd2a Fix 404 page not including requirements. 2014-01-11 16:20:53 +13:00
Ingo Schommer 032a49d929 3.1/3.2 compat 2013-03-26 11:16:46 +01:00
Sean Harvey 0350495d20 Fixing DocumentationViewer::handleAction() to work with SS 3.1 2013-02-20 10:05:05 +13: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
Will Rossiter 73a66da658 Merge pull request #23 from sdiel/patch-1
Update code/controllers/DocumentationViewer.php
2013-01-11 13:53:43 -08:00