Skip to content

Commit 46f5e0a

Browse files
committed
Moved documention from ReadTheDocs to MkDocs & Github Pages
1 parent 8ab8d29 commit 46f5e0a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+2805
-3293
lines changed

.github/workflows/deploy.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
pull_request:
8+
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
### MkDocs
16+
- name: Setup Python
17+
uses: actions/setup-python@v2
18+
with:
19+
python-version: 3.x
20+
- name: Install Python Dependencies
21+
run: pip install mkdocs-material autolink-references-mkdocs-plugin
22+
- name: Build documentation
23+
run: mkdocs build --site-dir public
24+
### PHPUnit
25+
- name: Setup PHP
26+
uses: shivammathur/setup-php@v2
27+
with:
28+
php-version: 8.1
29+
extensions: ctype, dom, gd, iconv, fileinfo, libxml, mbstring, simplexml, xml, xmlreader, xmlwriter, zip, zlib
30+
coverage: xdebug
31+
- name: Create directory public/coverage
32+
run: mkdir ./public/coverage
33+
- name: Create directory public/coverage
34+
run: mkdir ./public/docs
35+
- name: Install PHP Dependencies
36+
run: composer install --ansi --prefer-dist --no-interaction --no-progress
37+
- name: Install PhpDocumentor
38+
run: wget https://phpdoc.org/phpDocumentor.phar && chmod +x phpDocumentor.phar
39+
- name: Build Coverage Report
40+
run: XDEBUG_MODE=coverage ./vendor/bin/phpunit -c ./ --coverage-text --coverage-html ./public/coverage
41+
- name: Build Documentation
42+
run: ./phpDocumentor.phar -d ./src -t ./public/docs
43+
44+
### Deploy
45+
- name: Deploy
46+
uses: peaceiris/actions-gh-pages@v3
47+
if: github.ref == 'refs/heads/develop'
48+
with:
49+
github_token: ${{ secrets.GITHUB_TOKEN }}
50+
publish_dir: ./public

.github/workflows/github-pages.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.
File renamed without changes.

.scrutinizer.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 0 additions & 796 deletions
This file was deleted.

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
PHPWord is a library written in pure PHP that provides a set of classes to write to and read from different document file formats. The current version of PHPWord supports Microsoft [Office Open XML](http://en.wikipedia.org/wiki/Office_Open_XML) (OOXML or OpenXML), OASIS [Open Document Format for Office Applications](http://en.wikipedia.org/wiki/OpenDocument) (OpenDocument or ODF), [Rich Text Format](http://en.wikipedia.org/wiki/Rich_Text_Format) (RTF), HTML, and PDF.
1111

12-
PHPWord is an open source project licensed under the terms of [LGPL version 3](COPYING.LESSER). PHPWord is aimed to be a high quality software product by incorporating [continuous integration](https://github.com/PHPOffice/PHPWord/actions) and unit testing. You can learn more about PHPWord by reading the [Developers' Documentation](http://phpword.readthedocs.org/).
12+
PHPWord is an open source project licensed under the terms of [LGPL version 3](COPYING.LESSER). PHPWord is aimed to be a high quality software product by incorporating [continuous integration](https://github.com/PHPOffice/PHPWord/actions) and unit testing. You can learn more about PHPWord by reading the [Developers' Documentation](https://phpoffice.github.io/PHPWord/).
1313

1414
If you have any questions, please ask on [StackOverFlow](https://stackoverflow.com/questions/tagged/phpword)
1515

@@ -20,7 +20,7 @@ Read more about PHPWord:
2020
- [Installation](#installation)
2121
- [Getting started](#getting-started)
2222
- [Contributing](#contributing)
23-
- [Developers' Documentation](http://phpword.readthedocs.org/)
23+
- [Developers' Documentation](https://phpoffice.github.io/PHPWord/)
2424

2525
## Features
2626

@@ -150,7 +150,7 @@ $objWriter->save('helloWorld.html');
150150
```
151151

152152
More examples are provided in the [samples folder](samples/). For an easy access to those samples launch `php -S localhost:8000` in the samples directory then browse to [http://localhost:8000](http://localhost:8000) to view the samples.
153-
You can also read the [Developers' Documentation](http://phpword.readthedocs.org/) for more detail.
153+
You can also read the [Developers' Documentation](https://phpoffice.github.io/PHPWord/) for more detail.
154154

155155
## Contributing
156156

@@ -159,4 +159,4 @@ We welcome everyone to contribute to PHPWord. Below are some of the things that
159159
- Read [our contributing guide](CONTRIBUTING.md).
160160
- [Fork us](https://github.com/PHPOffice/PHPWord/fork) and [request a pull](https://github.com/PHPOffice/PHPWord/pulls) to the [master](https://github.com/PHPOffice/PHPWord/tree/master) branch.
161161
- Submit [bug reports or feature requests](https://github.com/PHPOffice/PHPWord/issues) to GitHub.
162-
- Follow [@PHPWord](https://twitter.com/PHPWord) and [@PHPOffice](https://twitter.com/PHPOffice) on Twitter.
162+
- Follow [@PHPOffice](https://twitter.com/PHPOffice) on Twitter.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"docx", "OOXML", "OpenXML", "Office Open XML", "ISO IEC 29500", "WordprocessingML",
77
"RTF", "Rich Text Format", "doc", "odt", "ODF", "OpenDocument", "PDF", "HTML"
88
],
9-
"homepage": "https://phpword.readthedocs.io/",
9+
"homepage": "https://phpoffice.github.io/PHPWord/",
1010
"type": "library",
1111
"license": "LGPL-3.0",
1212
"authors": [

docs/Makefile

Lines changed: 0 additions & 153 deletions
This file was deleted.

docs/changes/0.x/0.10.0.md

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
2+
# 0.10.0 (4 May 2014)
3+
4+
This release marked heavy refactorings on internal code structure with the creation of some abstract classes to reduce code duplication. `Element` subnamespace is introduced in this release to replace `Section`. Word2007 reader capability is greatly enhanced. Endnote is introduced. List numbering is now customizable. Basic HTML and PDF writing support is enabled. Basic ODText reader is introduced.
5+
6+
### Features
7+
- Image: Get image dimensions without EXIF extension - @andrew-kzoo #184
8+
- Table: Add `tblGrid` element for Libre/Open Office table sizing - @gianis6 #183
9+
- Footnote: Ability to insert textbreak in footnote `$footnote->addTextBreak()` - @ivanlanin
10+
- Footnote: Ability to style footnote reference mark by using `FootnoteReference` style - @ivanlanin
11+
- Font: Add `bgColor` to font style to define background using HEX color - @jcarignan #168
12+
- Table: Add `exactHeight` to row style to define whether row height should be exact or atLeast - @jcarignan #168
13+
- Element: New `CheckBox` element for sections and table cells - @ozilion #156
14+
- Settings: Ability to use PCLZip as alternative to ZipArchive - @bskrtich @ivanlanin #106, #140, #185
15+
- Template: Ability to find & replace variables in headers & footers - @dgudgeon #190
16+
- Template: Ability to clone & delete block of text using `cloneBlock` and `deleteBlock` - @diego-vieira #191
17+
- TOC: Ability to have two or more TOC in one document and to set min and max depth for TOC - @Pyreweb #189
18+
- Table: Ability to add footnote in table cell - @ivanlanin #187
19+
- Footnote: Ability to add image in footnote - @ivanlanin #187
20+
- ListItem: Ability to add list item in header/footer - @ivanlanin #187
21+
- CheckBox: Ability to add checkbox in header/footer - @ivanlanin #187
22+
- Link: Ability to add link in header/footer - @ivanlanin #187
23+
- Object: Ability to add object in header, footer, textrun, and footnote - @ivanlanin #187
24+
- Media: Add `Media::resetElements()` to reset all media data - @juzi #19
25+
- General: Add `Style::resetStyles()` - @ivanlanin #187
26+
- DOCX Reader: Ability to read header, footer, footnotes, link, preservetext, textbreak, pagebreak, table, list, image, and title - @ivanlanin
27+
- Endnote: Ability to add endnotes - @ivanlanin
28+
- ListItem: Ability to create custom list and reset list number - @ivanlanin #10, #198
29+
- ODT Writer: Basic table writing support - @ivanlanin
30+
- Image: Keep image aspect ratio if only 1 dimension styled - @japonicus #194
31+
- HTML Writer: Basic HTML writer: text, textrun, link, title, textbreak, table, image (as Base64), footnote, endnote - @ivanlanin #203, #67, #147
32+
- PDF Writer: Basic PDF writer using DomPDF: All HTML element except image - @ivanlanin #68
33+
- DOCX Writer: Change `docProps/app.xml` `Application` to `PHPWord` - @ivanlanin
34+
- DOCX Writer: Create `word/settings.xml` and `word/webSettings.xml` dynamically - @ivanlanin
35+
- ODT Writer: Basic image writing - @ivanlanin
36+
- ODT Writer: Link writing - @ivanlanin
37+
- ODT Reader: Basic ODText Reader - @ivanlanin #71
38+
- Section: Ability to define gutter and line numbering - @ivanlanin
39+
- Font: Small caps, all caps, and double strikethrough - @ivanlanin #151
40+
- Settings: Ability to use measurement unit other than twips with `setMeasurementUnit` - @ivanlanin #199
41+
- Style: Remove `bgColor` from `Font`, `Table`, and `Cell` and put it into the new `Shading` style - @ivanlanin
42+
- Style: New `Indentation` and `Spacing` style - @ivanlanin
43+
- Paragraph: Ability to define first line and right indentation - @ivanlanin
44+
45+
### Bugfixes
46+
- Footnote: Footnote content doesn't show footnote reference number - @ivanlanin #170
47+
- Documentation: Error in a function - @theBeerNut #195
48+
49+
### Deprecated
50+
- `createTextRun` replaced by `addTextRun`
51+
- `createFootnote` replaced by `addFootnote`
52+
- `createHeader` replaced by `addHeader`
53+
- `createFooter` replaced by `addFooter`
54+
- `createSection` replaced by `addSection`
55+
- `Element\Footnote::getReferenceId` replaced by `Element\AbstractElement::getRelationId`
56+
- `Element\Footnote::setReferenceId` replaced by `Element\AbstractElement::setRelationId`
57+
- `Footnote::addFootnoteLinkElement` replaced by `Media::addElement`
58+
- `Footnote::getFootnoteLinkElements` replaced by `Media::getElements`
59+
- All current methods on `Media`
60+
- `Element\Link::getLinkSrc` replaced by `Element\Link::getTarget`
61+
- `Element\Link::getLinkName` replaced by `Element\Link::getText`
62+
- `Style\Cell::getDefaultBorderColor`
63+
64+
### Miscellaneous
65+
- Documentation: Simplify page level docblock - @ivanlanin #179
66+
- Writer: Refactor writer classes and create a new `Write\AbstractWriter` abstract class - @ivanlanin #160
67+
- General: Refactor folders: `Element` and `Exception` - @ivanlanin #187
68+
- General: Remove legacy `HashTable` and `Shared\ZipStreamWrapper` and all related properties/methods - @ivanlanin #187
69+
- Element: New `AbstractElement` abstract class - @ivanlanin #187
70+
- Media: Refactor media class to use one method for all docPart (section, header, footer, footnote) - @ivanlanin #187
71+
- General: Remove underscore prefix from all private properties name - @ivanlanin #187
72+
- General: Move Section `Settings` to `Style\Section` - @ivanlanin #187
73+
- General: Give `Abstract` prefix and `Interface` suffix for all abstract classes and interfaces as per [PHP-FIG recommendation](https://github.com/php-fig/fig-standards/blob/master/bylaws/002-psr-naming-conventions.md) - @ivanlanin #187
74+
- Style: New `Style\AbstractStyle` abstract class - @ivanlanin #187
75+
- Writer: New 'ODText\Base` class - @ivanlanin #187
76+
- General: Rename `Footnote` to `Footnotes` to reflect the nature of collection - @ivanlanin
77+
- General: Add some unit tests for Shared & Element (100%!) - @Progi1984
78+
- Test: Add some samples and tests for image wrapping style - @brunocasado #59
79+
- Refactor: Remove Style\Tabs - @ivanlanin
80+
- Refactor: Apply composite pattern for writers - @ivanlanin
81+
- Refactor: Split `AbstractContainer` from `AbstractElement` - @ivanlanin
82+
- Refactor: Apply composite pattern for Word2007 reader - @ivanlanin
83+
84+

0 commit comments

Comments
 (0)