forked from techdivision/DocViewer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
205 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
namespace TechDivision\DocViewer; | ||
|
||
use TYPO3\Flow\Annotations as Flow; | ||
use TYPO3\Neos\Controller\Module\AbstractModuleController; | ||
|
||
/** | ||
* | ||
* @Flow\Scope("singleton") | ||
*/ | ||
class AccessManager extends AbstractModuleController | ||
{ | ||
|
||
/** | ||
* Files which are used as entry files | ||
* @Flow\InjectConfiguration("packages") | ||
* @var array | ||
*/ | ||
protected $packagesConfiguration; | ||
|
||
/** | ||
* Determines if given package key should be accessable | ||
* | ||
* @param string $packageKey | ||
* @return bool | ||
*/ | ||
public function isPackageAccessable($packageKey) { | ||
return !in_array($packageKey, $this->packagesConfiguration['hide']); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
Classes/TechDivision/DocViewer/Exceptions/FileNotInsideDocumentationException.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
namespace TechDivision\DocViewer\Exceptions; | ||
|
||
/** | ||
* Parsing is not allowed exception | ||
*/ | ||
class FileNotInsideDocumentationException extends \TYPO3\Flow\Exception | ||
{ | ||
} |
9 changes: 9 additions & 0 deletions
9
Classes/TechDivision/DocViewer/Exceptions/PackageNotAccessableException.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
namespace TechDivision\DocViewer\Exceptions; | ||
|
||
/** | ||
* Parsing is not allowed exception | ||
*/ | ||
class PackageNotAccessableException extends \TYPO3\Flow\Exception | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,46 @@ | ||
# TechDivision Neos DocViwer | ||
# TechDivision DocViwer | ||
|
||
 | ||
|
||
This packages provides a docviewer module for the neos backend. | ||
|
||
 | ||
Some examples: | ||
|
||
``` | ||
var $some = "code"; | ||
``` | ||
|
||
# Headline 1 | ||
|
||
 | ||
[Internal link](./Ref.md) | ||
|
||
## Headline 2 | ||
[Internal link subdir](subdir/Ref.md) | ||
|
||
- [Ref](./Ref.md) | ||
- [Ref](Ref.md) | ||
- [Subdir ref](./subdir/SubDirRef.md) | ||
- [Subdir ref](subdir/SubDirRef.md) | ||
- [https://test.cherry-mx-com.cherry.cms.tdintern.de/](https://test.cherry-mx-com.cherry.cms.tdintern.de/) | ||
### Headline 3 | ||
[External link](https://google.com/) | ||
|
||
*This text will be italic* | ||
|
||
_This will also be italic_ | ||
|
||
**This text will be bold** | ||
|
||
__This will also be bold__ | ||
|
||
_You **can** combine them_ | ||
|
||
> We're living the future so | ||
> the present is our past. | ||
> An awesome quote | ||
``` | ||
var $some = "code"; | ||
``` | ||
some ```inline``` code | ||
|
||
- an | ||
- unordered | ||
- list | ||
|
||
1. an | ||
2. ordered | ||
3. list | ||
|
||
# Headline 1 | ||
|
||
## Headline 2 | ||
|
||
### Headline 3 | ||
|
||
 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# SubDir ref file | ||
|
||
[Internal link parent dir](../Readme.md) |
Oops, something went wrong.