Commit Graph

218 Commits

Author SHA1 Message Date
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
Sean Harvey
484e57e404 Support parsing and removing a YAML metadata block in markdown. 2017-03-22 09:55:31 +13:00
Daniel Hensby
c00570ae55
FIX Allow multi-line headers 2017-02-24 15:45:24 +00: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
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
Garion Herman
1ab48be9ee Added support for variable line endings (fixes parsing of documents with Windows line endings). 2016-06-29 15:48:27 +12:00
Matt Peel
fd9a7da68b Merge pull request #111 from tractorcow/pulls/make-missingdir-warning
ENHANCEMENT A missing sources dir will simply disable that repo with a warning
2016-06-24 13:39:57 +12: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
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
Daniel Hensby
05741b1dcb Merge pull request #106 from webbuilders-group/anchor-links-fix
BUGFIX: Fixed incorrectly formed page specific anchor links (fixes #104)
2016-03-11 17:35:26 +00:00
UndefinedOffset
91a0767d53 BUGFIX: Fixed incorrectly formed page specific anchor links (fixes #104) 2016-03-11 13:15:37 -04:00
UndefinedOffset
10ef060624 BUGFIX: Fixed case where image paths could end up having a backslash on windows 2016-03-11 10:39:26 -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
067c942ecd BUGFIX: Fixed file_get_contents warning when viewing a folder that has no index.md 2016-02-26 10:20:06 -04:00
Daniel Hensby
8af903915a Merge pull request #101 from webbuilders-group/image-paths-fix
BUGFIX: Fixed issue generating image paths on windows
2016-02-24 23:58:31 +00:00
UndefinedOffset
ff78276f93 BUGFIX: Fixed issue generating image paths introduced in 1556c77d27 2016-02-24 18:17:39 -04:00
UndefinedOffset
581c7cb53a BUGFIX: Fixed issue next/previous page links missing the documentation base link 2016-02-24 17:56:14 -04: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
Daniel Hensby
d5f53864d7 Merge pull request #97 from webbuilders-group/windows-path-fix
BUGFIX: Fixed issues related to windows filesystem using backslash instead of forward slash
2016-02-22 14:58:43 +00: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
UndefinedOffset
5e72a42f13 BUGFIX: Fixed redirecting to strip extensions incorrectly redirecting 2016-02-19 09:34:31 -04:00
David Alexander
7e1fc567fa revert to original algorithm 2016-02-05 17:17:26 -07:00
David Alexander
26c66f494b Further tidy up of api link parsing and testing
typo

another typo

ANOTHER typo

update tests

fixed regexs

resolving test failures

resolving test failures

tidy up

test tidy up

refined regexs, output formatting, and tests

further refined regexs

typo in comments

whitespace

comment
2016-01-25 01:16:21 +13:00
David Alexander
f8debf7211 FIXED Api shortcode references and updated tests
temporarily commented out asserts in unrelated tests

typo in comment

pffffft...whitespace

double pffffft.....whitespace

triple pffffft.....whitespace
2016-01-21 15:34:57 +13: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
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
Will Rossiter
653a2c87f4 Merge pull request #54 from camfindlay/curentversionsearch
Pass the current version to the search
2015-01-07 14:11:40 +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
Cam Findlay
410312c641 Pass the current version to the search
From a UX POV, when I'm searching docs I'm likely to be working on a site of a specific version - results of docs from older or newer versions are likely to be less relevant to me. If I want to search wider after my initial search I can use the check boxes on the advanced search.
2014-12-17 11:18:00 +13:00
Will Rossiter
473b830867 Resolve test failures 2014-12-16 23:07:31 +13:00
Cam Findlay
3753c331d4 Bug with Search Entities - removing from form. Removed calls to page entity, there is none when in search controller action 2014-12-16 14:12:40 +13:00
Cam Findlay
272b7ae660 FIX Showing the stable and outdated version number correctly. 2014-12-10 14:35:05 +13:00
Cam Findlay
f74f35234d Upper case first letter 2014-12-08 11:04:27 +13:00
Will Rossiter
bda0b00b18 Reduce exception. 2014-11-18 19:12:19 +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
6edaebab41 Encode &amps; in api links. 2014-09-28 14:35:58 +13:00
Will Rossiter
f706a9d8a2 FIX: API links should be urlencoded() to prevent special characters causing issues 2014-09-27 19:46:39 +12:00
Will Rossiter
508238a7b2 Correct title generation for index files in entity root
Previously would output the language code as the title 'En'. This double checks whether the file is at the root of the entity and if so, it'll use the entity name.
2014-09-27 10:15:52 +12:00