Commit graph

636 commits

Author SHA1 Message Date
Daniel Rudolf
afb55b9cb6 Improve class docs 2015-10-29 18:13:35 +01:00
Daniel Rudolf
e6681ea903 Improve class docs
Also add some ToDos to inline docs
2015-10-29 18:07:45 +01:00
Daniel Rudolf
7a69fdf66d Update CONTRIBUTING.md 2015-10-29 17:16:57 +01:00
Daniel Rudolf
d29e2c1f95 Add CONTRIBUTING.md
The file mostly contains adapted contents @theska wrote for our website and the great CONTRIBUTING.md of phpDocumentor (https://github.com/phpDocumentor/phpDocumentor2/blob/v2.8.5/CONTRIBUTING.md)
2015-10-29 16:57:25 +01:00
Daniel Rudolf
54ce5b9699 Various small improvements
- Improve class docs for phpDocumentor
- Add missing onPagesLoading() event to DummyPlugin
- Add some TODOs to the UPGRADE section of the docs
2015-10-29 02:55:30 +01:00
Daniel Rudolf
f1fc4c979e Revert commit a068850
According to travis-ci/travis-ci#2111 and some own testing, it isn't possible to combine branch whitelists with tag-based auto deployment. Unfortunately it is necessary to whitelist the gh-pages branch, because Travis implicitly blacklists it.
2015-10-29 01:19:43 +01:00
Daniel Rudolf
638638f5a4 Add UPGRADE section to docs
This is still work in progress
2015-10-29 00:57:54 +01:00
Daniel Rudolf
38081b3d52 Sync docs with website 2015-10-29 00:54:01 +01:00
Daniel Rudolf
a068850578 Update .travis.yml
Let Travis build branches master and gh-pages only
2015-10-29 00:37:59 +01:00
Daniel Rudolf
43f9590d5e Update .travis.yml
Use Travis container-based infrastructure
2015-10-28 17:34:10 +01:00
Daniel Rudolf
360e7ab91f Update .travis.yml
Use $TRAVIS_TAG for the "binary" filename
2015-10-28 17:26:43 +01:00
Daniel Rudolf
a068a1f9d7 Update changelog.txt
- Add security section
- Add Travis CI
2015-10-28 15:11:34 +01:00
Daniel Rudolf
efcbbb8ce0 Update .travis.yml
Build on picocms/Pico only
2015-10-28 14:38:02 +01:00
Daniel Rudolf
d3a1308556 Update .travis.yml
Just adding some features inspired by other projects using Travis, e.g. a simple PHP syntax checker with various PHP versions. A short peak into @dav-m85 link leads me to think that running composer and creating the archive should be done with before_deploy rather than script.
2015-10-28 12:53:56 +01:00
David "Paztek" Moreau
3e0161b51a Create .travis.yml 2015-10-28 12:37:46 +01:00
Daniel Rudolf
647a7b5bb7 Trap empty $requestFileParts 2015-10-28 01:41:26 +01:00
Daniel Rudolf
9e2604af85 Prevent content_dir breakouts using malicious request URLs
It's appalling that nobody (including me!) thought about that!
2015-10-28 01:36:28 +01:00
Daniel Rudolf
de6b3a7c28 Fix Markdown %meta.*% replacement
Don't even try to use arrays here...
2015-10-28 01:08:45 +01:00
Daniel Rudolf
a654b1585b phpDocumentor 2.8.5 currently doesn't support the Generic notations
This will likely be implemented as soon as the proposed PSR-5: PHPDoc is accepted
2015-10-27 01:48:58 +01:00
Daniel Rudolf
92af554d14 Improve inline code comments; preparing use of phpDocumentor 2015-10-27 01:39:28 +01:00
Daniel Rudolf
4171f9a031 Move URL Rewriting to Config section 2015-10-10 00:11:56 +02:00
Daniel Rudolf
9cdd34edcc Change content order, add Customization section 2015-10-10 00:08:38 +02:00
Daniel Rudolf
15515ff3fd Fix typo/formatting 2015-10-09 20:51:07 +02:00
theshka
aec024a793 fix spelling 2015-10-09 20:41:00 +02:00
theshka
132399f305 add comments/in-line docs 2015-10-09 20:41:00 +02:00
theshka
8380b54142 fix spelling 2015-10-09 20:41:00 +02:00
theshka
01122f2901 fix spelling 2015-10-09 20:41:00 +02:00
theshka
fe83d1fa7f fix spelling 2015-10-09 20:41:00 +02:00
theshka
3336fb717e fix spelling 2015-10-09 20:40:01 +02:00
Daniel Rudolf
b46ed0535c Let users know about Twigs link filter 2015-10-09 14:27:49 +02:00
Daniel Rudolf
40dbd0ee37 Update Picos inline user docs
Adding a Blogging and URL Rewriting section, splitting the Plugins section into "for users" and "for devs", extend all sections and fix some typos
2015-10-08 21:01:30 +02:00
Daniel Rudolf
7c5f371b9a Use PSR-0 autoload
Makes no big difference... Using PSR-4 breaks BC.
2015-10-08 14:19:59 +02:00
Daniel Rudolf
b09433a37b Allow multiple calls to Pico::setConfig() 2015-10-06 20:38:34 +02:00
Daniel Rudolf
04a1c603d0 Update changelog.txt for 1419cf1 2015-10-06 20:33:31 +02:00
Daniel Rudolf
1419cf1636 Add Pico::setConfig() method
Thanks @dav-m85
2015-10-06 20:23:28 +02:00
Daniel Rudolf
7aa199d77a Update changelog.txt for 7537159 2015-10-05 01:58:11 +02:00
Daniel Rudolf
7537159868 Remove the need to register headers during onMetaHeaders()
Why? I'm currently writing the user docs and I really have no idea how to explain this whole process in a non-technical way... It is very likely that a normal user wants to use custom tags and it would be absurd to tell him,that he should learn a programming language to do so. On the other hand, providing a copy-and-paste template makes the whole idea of explicitly registering headers worthless. The only reasonable solution is to remove the need to register headers.

Anyway, I think @PontusHorn is right to say that registering headers makes the whole system more predictable. So plugin developers are still instructed to register their meta headers during . We actually can't check and ensure this, but that's imho the best solution.
2015-10-05 01:50:55 +02:00
Daniel Rudolf
1cbf48af79 Split PicoDeprecated::onConfigLoaded() into multiple methods 2015-10-04 23:25:32 +02:00
Daniel Rudolf
46ef63186a Support $config['<plugin name>']['enabled'] option
... as a alternative to $config['<plugin name>.enabled']; Thanks @theshka for giving this hint
2015-10-04 22:52:08 +02:00
Daniel Rudolf
9d518fd722 Move sorting of $pages from Pico::getPages() to Pico::sortPages() 2015-10-04 22:39:38 +02:00
Daniel Rudolf
4f1e8667c3 Cast AbstractPicoPlugin::$dependsOn to array
Plugin devs could come up with the idea of setting AbstractPicoPlugin::$dependsOn to a string (single dependency) or null (no dependencies)
2015-10-04 22:30:35 +02:00
Daniel Rudolf
79e2dacdb2 Fix method docs typo 2015-10-04 22:08:04 +02:00
Daniel Rudolf
27d694697f Fix code formatting 2015-10-04 21:34:37 +02:00
Daniel Rudolf
006afa5774 Update changelog.txt
The changelog only provides basic information about the enormous changes introduced with Pico 1.0-beta. Please refer to the (not yet written... 😄) UPGRADE section of the docs for details.
2015-10-04 19:57:20 +02:00
Daniel Rudolf
2e15e112f7 Define deprecated constants before evaluating the config.php in Picos root dir
This prevents E_NOTICEs when using e.g. ROOT_DIR in a old config.php, so upgrading users are usually not bothered with this BC break
2015-10-04 18:50:16 +02:00
Daniel Rudolf
ef1a9e0c33 Improve README.md 2015-10-04 16:59:38 +02:00
Daniel Rudolf
9aa62b4b44 Improve method docs of Pico::load404Content() 2015-10-04 16:57:57 +02:00
Daniel Rudolf
77f939028c Support per-directory 404.md files 2015-10-04 15:24:38 +02:00
Daniel Rudolf
3f7b0998c6 Declare undefined $plugins variable
Thanks @Lomanic
2015-10-04 14:47:54 +02:00
Daniel Rudolf
3a4721a20c SCANDIR_SORT_* constants are available since PHP 5.4
Thanks @Lomanic
2015-10-04 14:15:11 +02:00