Adding new toolbar to documentation viewer

This commit is contained in:
Michael Andrewartha 2014-07-23 11:00:29 +12:00
parent 1db411eca5
commit 9eab1eaa72
5 changed files with 118 additions and 37 deletions

3
.gitignore vendored
View File

@ -6,4 +6,5 @@ vendor/
framework/ framework/
docsviewer/ docsviewer/
cache/ cache/
staticpublisher/ staticpublisher/
toolbar/

View File

@ -4,4 +4,11 @@ StaticExporter:
disable_sitetree_export: true disable_sitetree_export: true
Controller: Controller:
extensions: extensions:
- ControllerExtension - ControllerExtension
GlobalNav:
hostname: 'http://ssorg-another.test.silverstripe.com/'
css_path: '/themes/ssv3/css/toolbar.css'
use_localhost: false
SiteController:
extensions:
- GlobalNavExtension

View File

@ -1,11 +1,18 @@
{ {
"name": "silverstripe/doc.silverstripe.org", "name": "silverstripe/doc.silverstripe.org",
"description": "The source code behind doc.silverstripe.org", "description": "The source code behind doc.silverstripe.org",
"repositories": [
{
"type": "vcs",
"url": "https://github.com/silverstripe/silverstripe-globaltoolbar.git"
}
],
"require": { "require": {
"php": ">=5.3.2", "php": ">=5.3.2",
"silverstripe/docsviewer": "dev-master", "silverstripe/docsviewer": "dev-master",
"silverstripe/staticpublisher": "dev-master", "silverstripe/staticpublisher": "dev-master",
"silverstripe/framework": "3.1.x-dev" "silverstripe/framework": "3.1.x-dev",
"silverstripe/toolbar": "*"
}, },
"config": { "config": {
"process-timeout": 600 "process-timeout": 600

116
composer.lock generated
View File

@ -1,30 +1,32 @@
{ {
"_readme": [ "_readme": [
"This file locks the dependencies of your project to a known state", "This file locks the dependencies of your project to a known state",
"Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file" "Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
], ],
"hash": "0d2dbd6336d098b081f4f846fbd227a0", "hash": "9908c6f7b23a5287bb68374e37ee6e8c",
"packages": [ "packages": [
{ {
"name": "composer/installers", "name": "composer/installers",
"version": "v1.0.8", "version": "dev-master",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/composer/installers.git", "url": "https://github.com/composer/installers.git",
"reference": "c87cfc35882eb50df3eef1734bfa52fbcd6c782c" "reference": "41cf781ed1271e25bf31b715416a349996aa2527"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/composer/installers/zipball/c87cfc35882eb50df3eef1734bfa52fbcd6c782c", "url": "https://api.github.com/repos/composer/installers/zipball/41cf781ed1271e25bf31b715416a349996aa2527",
"reference": "c87cfc35882eb50df3eef1734bfa52fbcd6c782c", "reference": "41cf781ed1271e25bf31b715416a349996aa2527",
"shasum": "" "shasum": ""
}, },
"replace": { "replace": {
"roundcube/plugin-installer": "*",
"shama/baton": "*" "shama/baton": "*"
}, },
"require-dev": { "require-dev": {
"composer/composer": "1.0.*@dev", "composer/composer": "1.0.*@dev",
"phpunit/phpunit": "3.7.*" "phpunit/phpunit": "4.1.*"
}, },
"type": "composer-installer", "type": "composer-installer",
"extra": { "extra": {
@ -46,20 +48,26 @@
{ {
"name": "Kyle Robinson Young", "name": "Kyle Robinson Young",
"email": "kyle@dontkry.com", "email": "kyle@dontkry.com",
"homepage": "http://dontkry.com", "homepage": "https://github.com/shama"
"role": "Developer"
} }
], ],
"description": "A multi-framework Composer library installer", "description": "A multi-framework Composer library installer",
"homepage": "http://composer.github.com/installers/", "homepage": "http://composer.github.com/installers/",
"keywords": [ "keywords": [
"TYPO3 CMS", "Craft",
"TYPO3 Flow", "Dolibarr",
"TYPO3 Neos", "Hurad",
"MODX Evo",
"OXID",
"WolfCMS",
"agl", "agl",
"annotatecms",
"bitrix",
"cakephp", "cakephp",
"chef",
"codeigniter", "codeigniter",
"concrete5", "concrete5",
"croogo",
"drupal", "drupal",
"elgg", "elgg",
"fuelphp", "fuelphp",
@ -67,18 +75,26 @@
"joomla", "joomla",
"kohana", "kohana",
"laravel", "laravel",
"li3",
"lithium", "lithium",
"magento",
"mako", "mako",
"mediawiki",
"modulework", "modulework",
"moodle",
"phpbb", "phpbb",
"piwik",
"ppi", "ppi",
"puppet",
"roundcube",
"shopware",
"silverstripe", "silverstripe",
"symfony", "symfony",
"typo3",
"wordpress", "wordpress",
"zend" "zend",
"zikula"
], ],
"time": "2013-12-24 18:04:46" "time": "2014-07-22 17:04:15"
}, },
{ {
"name": "silverstripe/docsviewer", "name": "silverstripe/docsviewer",
@ -86,12 +102,12 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/silverstripe/silverstripe-docsviewer.git", "url": "https://github.com/silverstripe/silverstripe-docsviewer.git",
"reference": "e3c417113b5150655cb37167c031b4b708b183ab" "reference": "17527f63d3f8ce60972fc0d3d4699c636433db36"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/silverstripe/silverstripe-docsviewer/zipball/e3c417113b5150655cb37167c031b4b708b183ab", "url": "https://api.github.com/repos/silverstripe/silverstripe-docsviewer/zipball/17527f63d3f8ce60972fc0d3d4699c636433db36",
"reference": "e3c417113b5150655cb37167c031b4b708b183ab", "reference": "17527f63d3f8ce60972fc0d3d4699c636433db36",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -117,7 +133,7 @@
"documentation", "documentation",
"silverstripe" "silverstripe"
], ],
"time": "2014-01-14 08:16:39" "time": "2014-07-05 07:43:47"
}, },
{ {
"name": "silverstripe/framework", "name": "silverstripe/framework",
@ -125,18 +141,21 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/silverstripe/silverstripe-framework.git", "url": "https://github.com/silverstripe/silverstripe-framework.git",
"reference": "9b5a9afe2be766e9830c795dc26636a82f59743c" "reference": "350ee4d421d04a075464e84713cf4a5527f3948a"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/silverstripe/silverstripe-framework/zipball/9b5a9afe2be766e9830c795dc26636a82f59743c", "url": "https://api.github.com/repos/silverstripe/silverstripe-framework/zipball/350ee4d421d04a075464e84713cf4a5527f3948a",
"reference": "9b5a9afe2be766e9830c795dc26636a82f59743c", "reference": "350ee4d421d04a075464e84713cf4a5527f3948a",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"composer/installers": "*", "composer/installers": "*",
"php": ">=5.3.2" "php": ">=5.3.2"
}, },
"require-dev": {
"phpunit/phpunit": "~3.7@stable"
},
"type": "silverstripe-module", "type": "silverstripe-module",
"autoload": { "autoload": {
"classmap": [ "classmap": [
@ -163,7 +182,7 @@
"framework", "framework",
"silverstripe" "silverstripe"
], ],
"time": "2014-01-14 05:19:45" "time": "2014-07-22 20:54:18"
}, },
{ {
"name": "silverstripe/staticpublisher", "name": "silverstripe/staticpublisher",
@ -171,12 +190,12 @@
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/silverstripe-labs/silverstripe-staticpublisher.git", "url": "https://github.com/silverstripe-labs/silverstripe-staticpublisher.git",
"reference": "ea1461acd7eb78b25e629b5c6fedf719b37f63e8" "reference": "1a4e07c0360bb67038d752ef62d94f4f1ade9c29"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/silverstripe-labs/silverstripe-staticpublisher/zipball/ea1461acd7eb78b25e629b5c6fedf719b37f63e8", "url": "https://api.github.com/repos/silverstripe-labs/silverstripe-staticpublisher/zipball/1a4e07c0360bb67038d752ef62d94f4f1ade9c29",
"reference": "ea1461acd7eb78b25e629b5c6fedf719b37f63e8", "reference": "1a4e07c0360bb67038d752ef62d94f4f1ade9c29",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -202,7 +221,48 @@
"silverstripe-labs", "silverstripe-labs",
"static" "static"
], ],
"time": "2014-01-14 07:36:46" "time": "2014-03-23 05:09:04"
},
{
"name": "silverstripe/toolbar",
"version": "dev-master",
"source": {
"type": "git",
"url": "https://github.com/silverstripe/silverstripe-globaltoolbar.git",
"reference": "97738010cbc065643423430b1d9d535640a122ba"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/zipball/97738010cbc065643423430b1d9d535640a122ba",
"reference": "97738010cbc065643423430b1d9d535640a122ba",
"shasum": ""
},
"type": "silverstripe-module",
"license": [
"BSD-3-Clause"
],
"authors": [
{
"name": "Ingo Schommer",
"homepage": "http://chillu.com",
"email": "ingo@silverstripe.com"
},
{
"name": "Uncle Cheese",
"homepage": "http://leftandmain.com",
"email": "unclecheese@leftandmain.com"
}
],
"description": "Navigation bar include showing SilverStripe community sites",
"homepage": "https://github.com/silverstripe/silverstripe-globaltoolbar/",
"keywords": [
"silverstripe"
],
"support": {
"source": "https://github.com/silverstripe/silverstripe-globaltoolbar/tree/master",
"issues": "https://github.com/silverstripe/silverstripe-globaltoolbar/issues"
},
"time": "2014-07-22 22:49:26"
} }
], ],
"packages-dev": [ "packages-dev": [
@ -211,7 +271,7 @@
"aliases": [ "aliases": [
], ],
"minimum-stability": "stable", "minimum-stability": "dev",
"stability-flags": { "stability-flags": {
"silverstripe/docsviewer": 20, "silverstripe/docsviewer": 20,
"silverstripe/staticpublisher": 20, "silverstripe/staticpublisher": 20,

View File

@ -6,10 +6,17 @@
<meta charset="utf-8" /> <meta charset="utf-8" />
<title><% if PageTitle %>$PageTitle <% end_if %>SilverStripe Documentation</title> <title><% if PageTitle %>$PageTitle <% end_if %>SilverStripe Documentation</title>
<script type="text/javascript" src="//use.typekit.net/emt4dhq.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
<link type="text/css" rel="stylesheet" href="http://silverstripe.org/toolbar/css/toolbar.css" /> <link type="text/css" rel="stylesheet" href="http://silverstripe.org/toolbar/css/toolbar.css" />
</head> </head>
<body> <body class="theme-theme1">
<header data-0="background-position: 50% 50%;" data-544="background-position: 50% -30%;">
<div class="global-nav header-mask">
$GlobalNav
</div>
</header>
<div id="container" class="container"> <div id="container" class="container">
<div id="header"> <div id="header">
<h1> <h1>
@ -30,9 +37,9 @@
<div id="entities-nav" class="documentation-nav clearfix"> <div id="entities-nav" class="documentation-nav clearfix">
<h2>Modules:</h2> <h2>Modules:</h2>
<ul> <ul>
<% control Entities %> <% loop Entities %>
<li><a href="$Link" class="$LinkingMode">$Title</a></li> <li><a href="$Link" class="$LinkingMode">$Title</a></li>
<% end_control %> <% end_loop %>
</ul> </ul>
<div class="clear"><!-- --></div> <div class="clear"><!-- --></div>
@ -43,9 +50,9 @@
<div id="versions-nav" class="documentation-nav clearfix"> <div id="versions-nav" class="documentation-nav clearfix">
<h2>Versions:</h2> <h2>Versions:</h2>
<ul> <ul>
<% control Versions %> <% loop Versions %>
<li><a href="$Link" class="$LinkingMode">$Title</a></li> <li><a href="$Link" class="$LinkingMode">$Title</a></li>
<% end_control %> <% end_loop %>
</ul> </ul>
</div> </div>
<% end_if %> <% end_if %>
@ -64,7 +71,6 @@
</div> </div>
<script src="framework/thirdparty/jquery/jquery.js"></script> <script src="framework/thirdparty/jquery/jquery.js"></script>
<script src="http://silverstripe.org/toolbar/javascript/toolbar.js?site=doc&amp;searchShow=true"></script>
<% if GoogleAnalyticsCode %> <% if GoogleAnalyticsCode %>
<script type="text/javascript"> <script type="text/javascript">