Commit Graph

30 Commits

Author SHA1 Message Date
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 d51ece7308 FIX Ensure first processed stable version is treated as canonical 2017-11-10 15:50:03 +13:00
Robbie Averill fe8b9a37b5 Apply PSR-2 coding conventions 2017-08-28 11:35:02 +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
Damian Mooyman babf1580b9
API Add VersionTitle and Archived fields to config
BUG Fix version comparison between `3` and `3.5` (3 is newer)
2016-12-02 15:28:32 +13:00
Damian Mooyman b2ff0f7708
ENHANCEMENT A missing sources dir will simply disable that repo with a warning, rather than fatally erroring 2016-06-21 18:00:30 +12: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 581c7cb53a BUGFIX: Fixed issue next/previous page links missing the documentation base link 2016-02-24 17:56:14 -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 1556c77d27 BUGFIX: Fixed issues related to windows filesystem using backslash instead of forward slash
Fixed issue with automatic registration on windows causing duplicate base paths
2016-02-22 09:40:02 -04:00
helpfulrobot ced8128190 Converted to PSR-2 2015-11-21 19:25:41 +13:00
Cam Findlay 720b35d831 Add a way to check if a version is the current stable
This allows things like styling or highlighting of the currentl stable version when used in a project to make it more obvious that people should be using that documentation.
2015-10-13 10:30:27 +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
Will Rossiter 7b1a37f430 Use symlink path name (Fixes #58) 2015-01-07 22:39:04 +13: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 473b830867 Resolve test failures 2014-12-16 23:07:31 +13:00
Will Rossiter bda0b00b18 Reduce exception. 2014-11-18 19:12:19 +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 db2a94b56c Prevent automatic registration running multiple times
Fix up automatic registration details.
2014-09-27 10:13:40 +12:00
Will Rossiter 5ab53e65f2 FIX: Add tests and correct behaviour for next/prev 2014-09-21 11:18:36 +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 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