-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from creative-commoners/pulls/2.0/convert-to-ss4
Pulls/2.0/convert to ss4
- Loading branch information
Showing
30 changed files
with
483 additions
and
333 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 |
---|---|---|
|
@@ -4,3 +4,4 @@ | |
/.gitignore export-ignore | ||
/.travis.yml export-ignore | ||
/.scrutinizer.yml export-ignore | ||
/codecov.yml export-ignore |
Empty file.
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,9 +1,15 @@ | ||
inherit: true | ||
|
||
build: | ||
nodes: | ||
analysis: | ||
tests: | ||
override: [php-scrutinizer-run] | ||
|
||
checks: | ||
php: | ||
code_rating: true | ||
duplication: true | ||
|
||
filter: | ||
paths: [code/*, tests/*] | ||
paths: [src/*, tests/*] |
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,31 +1,34 @@ | ||
# See https://github.com/silverstripe/silverstripe-travis-support for setup details | ||
|
||
sudo: false | ||
|
||
language: php | ||
|
||
php: | ||
- 5.4 | ||
- 5.5 | ||
|
||
env: | ||
- DB=MYSQL CORE_RELEASE=3.4 | ||
global: | ||
- COMPOSER_ROOT_VERSION=2.0.x-dev | ||
|
||
matrix: | ||
include: | ||
- php: 5.6 | ||
env: DB=PGSQL CORE_RELEASE=3.5 | ||
env: DB=MYSQL PHPCS_TEST=1 PHPUNIT_TEST=1 | ||
- php: 7.0 | ||
env: DB=PGSQL CORE_RELEASE=3 | ||
env: DB=MYSQL PHPUNIT_TEST=1 | ||
- php: 7.1 | ||
env: DB=MYSQL CORE_RELEASE=3.6 | ||
env: DB=PGSQL PHPUNIT_COVERAGE_TEST=1 | ||
- php: 7.2 | ||
env: DB=MYSQL PHPUNIT_TEST=1 | ||
|
||
before_script: | ||
- composer self-update || true | ||
- git clone git://github.com/silverstripe/silverstripe-travis-support.git ~/travis-support | ||
- php ~/travis-support/travis_setup.php --source `pwd` --target ~/builds/ss | ||
- cd ~/builds/ss | ||
- composer install | ||
# Init PHP | ||
- phpenv rehash | ||
- phpenv config-rm xdebug.ini | ||
|
||
# Install composer dependencies | ||
- composer validate | ||
- if [[ $DB == PGSQL ]]; then composer require --no-update silverstripe/postgresql 2.0.x-dev; fi | ||
- composer install --prefer-dist --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile | ||
|
||
script: | ||
- vendor/bin/phpunit documentconverter/tests | ||
- if [[ $PHPUNIT_TEST ]]; then vendor/bin/phpunit; fi | ||
- if [[ $PHPUNIT_COVERAGE_TEST ]]; then phpdbg -qrr vendor/bin/phpunit --coverage-clover=coverage.xml; fi | ||
- if [[ $PHPCS_TEST ]]; then vendor/bin/phpcs src/ tests/ *.php; fi | ||
|
||
after_success: | ||
- if [[ $PHPUNIT_COVERAGE_TEST ]]; then bash <(curl -s https://codecov.io/bash) -f coverage.xml; fi |
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,6 @@ | ||
mappings: | ||
DocumentConverterDecorator: SilverStripe\DocumentConverter\ConvertsDocumentsExtension | ||
DocumentImportField: SilverStripe\DocumentConverter\DocumentConversionField | ||
DocumentImportIFrameField_Importer: SilverStripe\DocumentConverter\DocumentConverter | ||
DocumentImportInnerField: SilverStripe\DocumentConverter\DocumentImporterField | ||
DocumentConverterTest: SilverStripe\DocumentConverter\Tests\DocumentConverterTest |
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,8 +1,29 @@ | ||
# SilverStripe Document Converter | ||
|
||
[![Build Status](https://travis-ci.org/creative-commoners/silverstripe-documentconverter.svg?branch=master)](https://travis-ci.org/creative-commoners/silverstripe-documentconverter) | ||
[![Build Status](http://img.shields.io/travis/silverstripe/silverstripe-documentconverter.svg?style=flat)](https://travis-ci.org/silverstripe/silverstripe-documentconverter) | ||
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/silverstripe/silverstripe-documentconverter/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/silverstripe/silverstripe-documentconverter/?branch=master) | ||
[![codecov](https://codecov.io/gh/silverstripe/silverstripe-documentconverter/branch/master/graph/badge.svg)](https://codecov.io/gh/silverstripe/silverstripe-documentconverter) | ||
|
||
See [docs/en/index.md](docs/en/index.md). | ||
## Overview | ||
|
||
[Changelog](CHANGELOG.md) | ||
The module creates an RSS feed on each page with their change history, as well as one for the entire site. | ||
|
||
## Requirements | ||
|
||
* SilverStripe CMS ^4 | ||
|
||
**Note:** For a SilverStripe 3.x compatible version, please use [the 1.x release line](https://github.com/silverstripe/silverstripe-documentconverter/tree/1.0). | ||
|
||
## Installation | ||
|
||
Install with [composer](https://getcomposer.org/) by running `composer require silverstripe/documentconverter` in the root of your SilverStripe project. | ||
|
||
## User Guide | ||
|
||
For usage instructions see [user manual](docs/en/index.md). | ||
|
||
### Translations | ||
|
||
Translations of the natural language strings are managed through a third party translation interface, transifex.com. Newly added strings will be periodically uploaded there for translation, and any new translations will be merged back to the project source code. | ||
|
||
Please use [https://www.transifex.com/projects/p/silverstripe-documentconverter](https://www.transifex.com/projects/p/silverstripe-documentconverter) to contribute translations, rather than sending pull requests with YAML files. |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
When having discussions about this module in issues or pull request please adhere to the [SilverStripe Community Code of Conduct](https://docs.silverstripe.org/en/contributing/code_of_conduct). |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
comment: false |
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,19 +1,30 @@ | ||
{ | ||
"name": "silverstripe/documentconverter", | ||
"description": "Imports OpenOffice-compatible files (doc, docx, etc) into SilverStripe pages and content.", | ||
"type": "silverstripe-module", | ||
"name": "silverstripe/documentconverter", | ||
"description": "Imports OpenOffice-compatible files (doc, docx, etc) into SilverStripe pages and content.", | ||
"type": "silverstripe-vendormodule", | ||
"license": "BSD-3-Clause", | ||
"keywords": [ | ||
"silverstripe", | ||
"cwp" | ||
], | ||
"require": { | ||
"silverstripe/cms": "^4", | ||
"silverstripe/framework": "^4" | ||
"keywords": ["silverstripe", "cwp"], | ||
"require": { | ||
"silverstripe/cms": "^4" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "^5.7", | ||
"squizlabs/php_codesniffer": "^3.0" | ||
}, | ||
"extra": { | ||
"branch-alias": { | ||
"dev-master": "2.x-dev" | ||
"autoload": { | ||
"psr-4": { | ||
"SilverStripe\\DocumentConverter\\": "src/", | ||
"SilverStripe\\DocumentConverter\\Tests\\": "tests/" | ||
} | ||
} | ||
}, | ||
"extra": { | ||
"expose": [ | ||
"javascript" | ||
], | ||
"branch-alias": { | ||
"dev-master": "2.x-dev" | ||
} | ||
}, | ||
"minimum-stability": "dev", | ||
"prefer-stable": true | ||
} |
File renamed without changes.
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
Oops, something went wrong.