|
@@ -0,0 +1,520 @@
|
|
1
|
+Pico Changelog
|
|
2
|
+==============
|
|
3
|
+
|
|
4
|
+**Note:** This changelog only provides technical information about the changes
|
|
5
|
+ introduced with a particular Pico version, and is meant to supplement
|
|
6
|
+ the actual code changes. The information in this changelog are often
|
|
7
|
+ insufficient to understand the implications of larger changes. Please
|
|
8
|
+ refer to both the UPGRADE and NEWS sections of the docs for more
|
|
9
|
+ details.
|
|
10
|
+
|
|
11
|
+**Note:** Changes breaking backwards compatibility (BC) are marked with an `!`
|
|
12
|
+ (exclamation mark). This doesn't include changes for which BC is
|
|
13
|
+ preserved by Pico's official `PicoDeprecated` plugin. If a previously
|
|
14
|
+ deprecated feature is later removed in `PicoDeprecated`, this change
|
|
15
|
+ is going to be marked as BC-breaking change in both Pico's and
|
|
16
|
+ `PicoDeprecated`'s changelog. Please note that BC-breaking changes
|
|
17
|
+ are only possible with a new major version.
|
|
18
|
+
|
|
19
|
+### Version 2.0.2
|
|
20
|
+Released: 2018-08-12
|
|
21
|
+
|
|
22
|
+```
|
|
23
|
+* [Fixed] Support Windows paths (`\` instead of `/`) in `Pico::evaluateRequestUrl()`
|
|
24
|
+```
|
|
25
|
+
|
|
26
|
+### Version 2.0.1
|
|
27
|
+Released: 2018-07-29
|
|
28
|
+
|
|
29
|
+```
|
|
30
|
+* [Changed] Improve documentation
|
|
31
|
+* [Changed] Add missing "Formatted Date", "Time" and "Hidden" meta headers; use
|
|
32
|
+ the "Hidden" meta header to manually hide a page in the pages list
|
|
33
|
+```
|
|
34
|
+
|
|
35
|
+### Version 2.0.0
|
|
36
|
+Released: 2018-07-01
|
|
37
|
+
|
|
38
|
+```
|
|
39
|
+* [New] Add Bountysource
|
|
40
|
+* [Changed] Improve documentation
|
|
41
|
+* [Changed] Improve release & build process
|
|
42
|
+* [Changed] Add `Pico::setConfig()` example to `index.php.dist`
|
|
43
|
+* [Fixed] Don't load `config/config.yml` multiple times
|
|
44
|
+```
|
|
45
|
+
|
|
46
|
+### Version 2.0.0-beta.3
|
|
47
|
+Released: 2018-04-07
|
|
48
|
+
|
|
49
|
+```
|
|
50
|
+* [Changed] Add `README.md`, `CONTRIBUTING.md` and `CHANGELOG.md` of main repo
|
|
51
|
+ to pre-bundled releases, keep `.gitignore`
|
|
52
|
+* [Changed] Deny access to a possibly existing `composer.phar` in `.htaccess`
|
|
53
|
+* [Changed] Disallow the use of the `callback` filter for the `url_param` and
|
|
54
|
+ `form_param` Twig functions
|
|
55
|
+* [Changed] Improve documentation
|
|
56
|
+* [Fixed] Fix page tree when sorting pages by arbitrary values
|
|
57
|
+* [Fixed] Fix sorting of `Pico::$nativePlugins`
|
|
58
|
+```
|
|
59
|
+
|
|
60
|
+### Version 2.0.0-beta.2
|
|
61
|
+Released: 2018-01-21
|
|
62
|
+
|
|
63
|
+```
|
|
64
|
+* [New] Improve release & build process and move most build tools to the new
|
|
65
|
+ `picocms/ci-tools` repo, allowing them to be used by other projects
|
|
66
|
+* [New] Add page tree; refer to the `Pico::buildPageTree()` method for more
|
|
67
|
+ details; also see the `onPageTreeBuilt` event
|
|
68
|
+* [Changed] Update dependencies: Twig 1.35
|
|
69
|
+* [Changed] ! Improve `.htaccess` and deny access to all dot files by default
|
|
70
|
+* [Changed] ! Throw a `RuntimeException` when non-native plugins are loaded,
|
|
71
|
+ but Pico's `PicoDeprecated` plugin is not loaded
|
|
72
|
+* [Changed] ! Change `AbstractPicoPlugin::$enabled`'s behavior: setting it to
|
|
73
|
+ TRUE now leads to throwing a `RuntimeException` when the plugin's
|
|
74
|
+ dependencies aren't fulfilled; use NULL to maintain old behavior
|
|
75
|
+* [Changed] ! Force themes to use `.twig` as file extension for Twig templates
|
|
76
|
+* [Changed] Improve PHP class docs
|
|
77
|
+* [Changed] Various small improvements
|
|
78
|
+```
|
|
79
|
+
|
|
80
|
+### Version 2.0.0-beta.1
|
|
81
|
+Released: 2017-11-05
|
|
82
|
+
|
|
83
|
+```
|
|
84
|
+* [New] Pico is on its way to its second major release!
|
|
85
|
+* [New] Improve Pico's release & build process
|
|
86
|
+* [New] Add "Developer Certificate of Origin" to `CONTRIBUTING.md`
|
|
87
|
+* [New] Add license & copyright header to all relevant files
|
|
88
|
+* [New] Add Pico version constants (`Pico::VERSION` and `Pico::VERSION_ID`),
|
|
89
|
+ and add a `version` Twig variable and `%version%` Markdown placeholder
|
|
90
|
+* [New] Add Pico API versioning for plugins (see `Pico::API_VERSION` constant);
|
|
91
|
+ Pico now triggers events on plugins using the latest API version only
|
|
92
|
+ ("native" plugins), `PicoDeprecated` takes care of all other plugins;
|
|
93
|
+ as a result, old plugin's always depend on `PicoDeprecated` now
|
|
94
|
+* [New] Add a theme and plugin installer for composer; Pico now additionally
|
|
95
|
+ uses the new `vendor/pico-plugin.php` file to discover plugins
|
|
96
|
+ installed by composer and loads them using composer's autoloader;
|
|
97
|
+ see the `picocms/composer-installer` repo for more details; Pico
|
|
98
|
+ loads plugins installed by composer first and ignores conflicting
|
|
99
|
+ plugins in Pico's `plugins/` dir
|
|
100
|
+* [New] Add `$enableLocalPlugins` parameter to `Pico::__construct()` to allow
|
|
101
|
+ website developers to disable local plugin discovery by scanning the
|
|
102
|
+ `plugins/` dir (i.e. load plugins from `vendor/pico-plugin.php` only)
|
|
103
|
+* [New] Add public `AbstractPicoPlugin::getPluginConfig()` method
|
|
104
|
+* [New] Add public `Pico::loadPlugin()` method and the corresponding
|
|
105
|
+ `onPluginManuallyLoaded` event
|
|
106
|
+* [New] Add public `Pico::resolveFilePath()` method (replaces the protected
|
|
107
|
+ `Pico::discoverRequestFile()` method)
|
|
108
|
+* [New] Add public `Pico::is404Content()` method
|
|
109
|
+* [New] Add public `Pico::getYamlParser()` method and the corresponding
|
|
110
|
+ `onYamlParserRegistered` event
|
|
111
|
+* [New] Add public `Pico::substituteFileContent()` method
|
|
112
|
+* [New] Add public `Pico::getPageId()` method
|
|
113
|
+* [New] Add public `Pico::getFilesGlob()` method
|
|
114
|
+* [New] Add public `Pico::getVendorDir()` method, returning Pico's installation
|
|
115
|
+ directory (i.e. `/var/www/pico/vendor/picocms/pico`); don't confuse
|
|
116
|
+ this with composer's `vendor/` dir!
|
|
117
|
+* [New] Add `$default` parameter to `Pico::getConfig()` method
|
|
118
|
+* [New] Add empty `assets/` and `content/` dirs
|
|
119
|
+* [New] #305: Add `url_param` and `form_param` Twig functions, and the public
|
|
120
|
+ `Pico::getUrlParameter()` and `Pico::getFormParameter()` methods,
|
|
121
|
+ allowing theme developers to access URL GET and HTTP POST parameters
|
|
122
|
+* [New] Add `$meta` parameter to `markdown` Twig filter
|
|
123
|
+* [New] Add `remove` fallback to `sort_by` Twig filter
|
|
124
|
+* [New] Add `theme_url` config parameter
|
|
125
|
+* [New] Add public `Pico::getBaseThemeUrl()` method
|
|
126
|
+* [New] Add `REQUEST_URI` routing method, allowing one to simply rewrite all
|
|
127
|
+ requests to `index.php` (e.g. use `FallbackResource` or `mod_rewrite`
|
|
128
|
+ in your `.htaccess` for Apache, or use `try_files` for nginx)
|
|
129
|
+* [New] #299: Add built-in 404 page as fallback when no `404.md` is found
|
|
130
|
+* [New] Allow sorting pages by arbitrary meta values
|
|
131
|
+* [New] Add `onSinglePageLoading` event, allowing one to skip a page
|
|
132
|
+* [New] Add `onSinglePageContent` event
|
|
133
|
+* [New] Add some config parameters to change Parsedown's behavior
|
|
134
|
+* [Changed] ! Disallow running the same Pico instance multiple times by
|
|
135
|
+ throwing a `RuntimeException` when calling `Pico::run()`
|
|
136
|
+* [Changed] ! #203: Load plugins from `plugins/<plugin name>/<plugin name>.php`
|
|
137
|
+ and `plugins/<plugin name>.php` only (directory and file name must
|
|
138
|
+ match case-sensitive), and throw a `RuntimeException` when Pico is
|
|
139
|
+ unable to load a plugin; also throw a `RuntimeException` when
|
|
140
|
+ superfluous files or directories in `plugins/` are found; use a
|
|
141
|
+ scope-isolated `require()` to include plugin files
|
|
142
|
+* [Changed] ! Use a plugin dependency topology to sort `Pico::$plugins`,
|
|
143
|
+ changing the execution order of plugins so that plugins, on which
|
|
144
|
+ other plugins depend, are always executed before their dependants
|
|
145
|
+* [Changed] ! Don't pass `$plugins` parameter to `onPluginsLoaded` event by
|
|
146
|
+ reference anymore; use `Pico::loadPlugin()` instead
|
|
147
|
+* [Changed] ! Leave `Pico::$pages` unsorted when a unknown sort method was
|
|
148
|
+ configured; this usually means that a plugin wants to sort it
|
|
149
|
+* [Changed] Overhaul page discovery events: add `onPagesDiscovered` event which
|
|
150
|
+ is triggered right before `Pico::$pages` is sorted and move the
|
|
151
|
+ `$currentPage`, `$previousPage` and `$nextPage` parameters of the
|
|
152
|
+ `onPagesLoaded` event to the new `onCurrentPageDiscovered` event
|
|
153
|
+* [Changed] Move the `$twig` parameter of the `onPageRendering` event to the
|
|
154
|
+ `onTwigRegistered` event, replacing the `onTwigRegistration` event
|
|
155
|
+* [Changed] Unify the `onParsedownRegistration` event by renaming it to
|
|
156
|
+ `onParsedownRegistered` and add the `$parsedown` parameter
|
|
157
|
+* [Changed] #330: Replace `config/config.php` by a modular YAML-based approach;
|
|
158
|
+ you can now use a arbitrary number of `config/*.yml` files to
|
|
159
|
+ configure Pico
|
|
160
|
+* [Changed] ! When trying to auto-detect Pico's `content` dir, Pico no longer
|
|
161
|
+ searches just for a (possibly empty) directory, but rather checks
|
|
162
|
+ whether a `index.md` exists in this directory
|
|
163
|
+* [Changed] ! Use the relative path between `index.php` and `Pico::$themesDir`
|
|
164
|
+ for Pico's theme URL (also refer to the new `theme_url` config and
|
|
165
|
+ the public `Pico::getBaseThemeUrl()` method for more details)
|
|
166
|
+* [Changed] #347: Drop the superfluous trailing "/index" from Pico's URLs
|
|
167
|
+* [Changed] Flip registered meta headers array, so that the array key is used
|
|
168
|
+ to search for a meta value and the array value is used to store the
|
|
169
|
+ found meta value (previously it was the other way round)
|
|
170
|
+* [Changed] ! Add lazy loading for `Pico::$yamlParser`, `Pico::$parsedown` and
|
|
171
|
+ `Pico::$twig`; the corresponding events are no longer part of
|
|
172
|
+ Pico's event flow and are triggered on demand
|
|
173
|
+* [Changed] ! Trigger the `onMetaHeaders` event just once; the event is no
|
|
174
|
+ longer part of Pico's event flow and is triggered on demand
|
|
175
|
+* [Changed] Don't lower meta headers on the first level of a page's meta data
|
|
176
|
+ (i.e. `SomeKey: value` is accessible using `$meta['SomeKey']`)
|
|
177
|
+* [Changed] Don't compare registered meta headers case-insensitive, require
|
|
178
|
+ matching case
|
|
179
|
+* [Changed] Allow users to explicitly set values for the `date_formatted` and
|
|
180
|
+ `time` meta headers in a page's YAML front matter
|
|
181
|
+* [Changed] Add page siblings for all pages
|
|
182
|
+* [Changed] ! Treat pages or directories that are prefixed by `_` as hidden;
|
|
183
|
+ when requesting a hidden page, Pico responds with a 404 page;
|
|
184
|
+ hidden pages are still in `Pico::$pages`, but are moved to the end
|
|
185
|
+ of the pages array when sorted alphabetically or by date
|
|
186
|
+* [Changed] ! Don't treat explicit requests to a 404 page as successful request
|
|
187
|
+* [Changed] Change method visibility of `Pico::getFiles()` to public
|
|
188
|
+* [Changed] Change method visibility of `Pico::triggerEvent()` to public;
|
|
189
|
+ at first glance this method triggers events on native plugins only,
|
|
190
|
+ however, `PicoDeprecated` takes care of triggering events for other
|
|
191
|
+ plugins, thus you can use this method to trigger (custom) events on
|
|
192
|
+ all plugins; never use it to trigger Pico core events!
|
|
193
|
+* [Changed] Move Pico's default theme to the new `picocms/pico-theme` repo; the
|
|
194
|
+ theme was completely rewritten from scratch and is a much better
|
|
195
|
+ starting point for creating your own theme; refer to the theme's
|
|
196
|
+ `CHANGELOG.md` for more details
|
|
197
|
+* [Changed] Move `PicoDeprecated` plugin to the new `picocms/pico-deprecated`
|
|
198
|
+ repo; refer to the plugin's `CHANGELOG.md` for more details
|
|
199
|
+* [Changed] Update dependencies: Twig 1.34, Symfony YAML 2.8, Parsedown 1.6
|
|
200
|
+* [Changed] Improve Pico docs and PHP class docs
|
|
201
|
+* [Changed] A vast number of small improvements and changes...
|
|
202
|
+* [Removed] ! Remove `PicoParsePagesContent` plugin
|
|
203
|
+* [Removed] ! Remove `PicoExcerpt` plugin
|
|
204
|
+* [Removed] Remove `rewrite_url` and `is_front_page` Twig variables
|
|
205
|
+* [Removed] Remove superfluous parameters of various events to reduce Pico's
|
|
206
|
+ error-proneness (plugins hopefully interfere with each other less)
|
|
207
|
+```
|
|
208
|
+
|
|
209
|
+### Version 1.0.6
|
|
210
|
+Released: 2017-07-25
|
|
211
|
+
|
|
212
|
+```
|
|
213
|
+* [Changed] Improve documentation
|
|
214
|
+* [Changed] Improve handling of Pico's Twig config (`$config['twig_config']`)
|
|
215
|
+* [Changed] Improve PHP platform requirement checks
|
|
216
|
+```
|
|
217
|
+
|
|
218
|
+### Version 1.0.5
|
|
219
|
+Released: 2017-05-02
|
|
220
|
+
|
|
221
|
+```
|
|
222
|
+* [Changed] Improve documentation
|
|
223
|
+* [Fixed] Improve hostname detection with proxies
|
|
224
|
+* [Fixed] Fix detection of Windows-based server environments
|
|
225
|
+* [Removed] Remove Twitter links
|
|
226
|
+```
|
|
227
|
+
|
|
228
|
+### Version 1.0.4
|
|
229
|
+Released: 2016-10-04
|
|
230
|
+
|
|
231
|
+```
|
|
232
|
+* [New] Add Pico's social icons to default theme
|
|
233
|
+* [Changed] Improve documentation
|
|
234
|
+* [Changed] Add CSS flexbox rules to default theme
|
|
235
|
+* [Fixed] Fix handling of non-YAML 1-line front matters
|
|
236
|
+* [Fixed] Fix responsiveness in default theme
|
|
237
|
+```
|
|
238
|
+
|
|
239
|
+### Version 1.0.3
|
|
240
|
+Released: 2016-05-11
|
|
241
|
+
|
|
242
|
+```
|
|
243
|
+* [Changed] Improve documentation
|
|
244
|
+* [Changed] Heavily extend nginx configuration docs
|
|
245
|
+* [Changed] Add CSS rules for definition lists to default theme
|
|
246
|
+* [Changed] Always use `on404Content...` execution path when serving a `404.md`
|
|
247
|
+* [Changed] Deny access to `.git` directory, `CHANGELOG.md`, `composer.json`
|
|
248
|
+ and `composer.lock` (`.htaccess` file)
|
|
249
|
+* [Changed] Use Pico's `404.md` to deny access to `.git`, `config`, `content`,
|
|
250
|
+* `content-sample`, `lib` and `vendor` dirs (`.htaccess` file)
|
|
251
|
+* [Fixed] #342: Fix responsiveness in default theme
|
|
252
|
+* [Fixed] #344: Improve HTTPS detection with proxies
|
|
253
|
+* [Fixed] #346: Force HTTPS to load Google Fonts in default theme
|
|
254
|
+```
|
|
255
|
+
|
|
256
|
+### Version 1.0.2
|
|
257
|
+Released: 2016-03-16
|
|
258
|
+
|
|
259
|
+```
|
|
260
|
+* [Changed] Various small improvements and changes...
|
|
261
|
+* [Fixed] Check dependencies when a plugin is enabled by default
|
|
262
|
+* [Fixed] Allow `Pico::$requestFile` to point to somewhere outside `content_dir`
|
|
263
|
+* [Fixed] #336: Fix `Date` meta header parsing with ISO-8601 datetime strings
|
|
264
|
+```
|
|
265
|
+
|
|
266
|
+### Version 1.0.1
|
|
267
|
+Released: 2016-02-27
|
|
268
|
+
|
|
269
|
+```
|
|
270
|
+* [Changed] Improve documentation
|
|
271
|
+* [Changed] Replace `version_compare()` with `PHP_VERSION_ID` in
|
|
272
|
+ `index.php.dist` (available since PHP 5.2.7)
|
|
273
|
+* [Fixed] Suppress PHP warning when using `date_default_timezone_get()`
|
|
274
|
+* [Fixed] #329: Force Apache's `MultiViews` feature to be disabled
|
|
275
|
+```
|
|
276
|
+
|
|
277
|
+### Version 1.0.0
|
|
278
|
+Released: 2015-12-24
|
|
279
|
+
|
|
280
|
+```
|
|
281
|
+* [New] On Christmas Eve, we are happy to announce Pico's first stable release!
|
|
282
|
+ The Pico Community wants to thank all contributors and users who made
|
|
283
|
+ this possible. Merry Christmas and a Happy New Year 2016!
|
|
284
|
+* [New] Adding `$queryData` parameter to `Pico::getPageUrl()` method
|
|
285
|
+* [Changed] Improve documentation
|
|
286
|
+* [Changed] Moving `LICENSE` to `LICENSE.md`
|
|
287
|
+* [Changed] Throw `LogicException` instead of `RuntimeException` when calling
|
|
288
|
+ `Pico::setConfig()` after processing has started
|
|
289
|
+* [Changed] Default theme now highlights the current page and shows pages with
|
|
290
|
+ a title in the navigation only
|
|
291
|
+* [Changed] #292: Ignore YAML parse errors (meta data) in `Pico::readPages()`
|
|
292
|
+* [Changed] Various small improvements and changes...
|
|
293
|
+* [Fixed] Support empty meta header
|
|
294
|
+* [Fixed] #307: Fix path handling on Windows
|
|
295
|
+```
|
|
296
|
+
|
|
297
|
+### Version 1.0.0-beta.2
|
|
298
|
+Released: 2015-11-30
|
|
299
|
+
|
|
300
|
+```
|
|
301
|
+* [New] Introducing the `PicoTwigExtension` Twig extension
|
|
302
|
+* [New] New `markdown` filter for Twig to parse markdown strings; Note: If you
|
|
303
|
+ want to parse the contents of a page, use the `content` filter instead
|
|
304
|
+* [New] New `sort_by` filter to sort an array by a specified key or key path
|
|
305
|
+* [New] New `map` filter to get the values of the given key or key path
|
|
306
|
+* [New] Introducing `index.php.dist` (used for pre-bundled releases)
|
|
307
|
+* [New] Use PHP_CodeSniffer to auto-check source code (see `.phpcs.xml`)
|
|
308
|
+* [New] Use Travis CI to generate phpDocs class docs automatically
|
|
309
|
+* [Changed] Improve documentation
|
|
310
|
+* [Changed] Improve table styling in default theme
|
|
311
|
+* [Changed] Update composer version constraints; almost all dependencies will
|
|
312
|
+ have pending updates, run `composer update`
|
|
313
|
+* [Changed] Throw a RuntimeException when the `content` dir isn't accessible
|
|
314
|
+* [Changed] Reuse `ParsedownExtra` object; new `onParsedownRegistration` event
|
|
315
|
+* [Changed] `$config['rewrite_url']` is now always available
|
|
316
|
+* [Changed] `DummyPlugin` class is now final
|
|
317
|
+* [Changed] Remove `.git` dirs from `vendor/` when deploying
|
|
318
|
+* [Changed] Various small improvements and changes...
|
|
319
|
+* [Fixed] `PicoDeprecated`: Sanitize `content_dir` and `base_url` options when
|
|
320
|
+ reading `config.php` in Picos root dir
|
|
321
|
+* [Fixed] Replace `urldecode()` (deprecated RFC 1738) with `rawurldecode()`
|
|
322
|
+ (RFC 3986) in `Page::evaluateRequestUrl()`
|
|
323
|
+* [Fixed] #272: Encode URLs using `rawurlencode()` in `Pico::getPageUrl()`
|
|
324
|
+* [Fixed] #274: Prevent double slashes in `base_url`
|
|
325
|
+* [Fixed] #285: Make `index.php` work when installed as a composer dependency
|
|
326
|
+* [Fixed] #291: Force `Pico::$requestUrl` to have no leading/trailing slash
|
|
327
|
+```
|
|
328
|
+
|
|
329
|
+### Version 1.0.0-beta.1
|
|
330
|
+Released: 2015-11-06
|
|
331
|
+
|
|
332
|
+```
|
|
333
|
+* [Security] (9e2604a) Prevent content_dir breakouts using malicious URLs
|
|
334
|
+* [New] Pico is on its way to its first stable release!
|
|
335
|
+* [New] Provide pre-bundled releases
|
|
336
|
+* [New] Heavily expanded documentation (inline code docs, user docs, dev docs)
|
|
337
|
+* [New] New routing system using the QUERY_STRING method; Pico now works
|
|
338
|
+ out-of-the-box with any webserver and without URL rewriting; use
|
|
339
|
+ `%base_url%?sub/page` in markdown files and `{{ "sub/page"|link }}`
|
|
340
|
+ in Twig templates to declare internal links
|
|
341
|
+* [New] Brand new plugin system with dependencies (see `PicoPluginInterface`
|
|
342
|
+ and `AbstractPicoPlugin`); if you're plugin dev, you really should
|
|
343
|
+ take a look at the UPGRADE section of the docs!
|
|
344
|
+* [New] Introducing the `PicoDeprecated` plugin to maintain full backward
|
|
345
|
+ compatibility with Pico 0.9 and Pico 0.8
|
|
346
|
+* [New] Support YAML-style meta header comments (`---`)
|
|
347
|
+* [New] Various new placeholders to use in content files (e.g. `%site_title%`)
|
|
348
|
+* [New] Provide access to all meta headers in content files (`%meta.*%`)
|
|
349
|
+* [New] Provide access to meta headers in `$page` arrays (`$page['meta']`)
|
|
350
|
+* [New] The file extension of content files is now configurable
|
|
351
|
+* [New] Add `Pico::setConfig()` method to predefine config variables
|
|
352
|
+* [New] Supporting per-directory `404.md` files
|
|
353
|
+* [New] #103: Providing access to `sub.md` even when the `sub` directory
|
|
354
|
+ exists, provided that there is no `sub/index.md`
|
|
355
|
+* [New] #249: Support the `.twig` file extension for templates
|
|
356
|
+* [New] #268, 269: Now using Travis CI; performing basic code tests and
|
|
357
|
+ implementing an automatic release process
|
|
358
|
+* [Changed] Complete code refactoring
|
|
359
|
+* [Changed] Source code now follows PSR code styling
|
|
360
|
+* [Changed] Replacing constants (e.g. `ROOT_DIR`) with constructor parameters
|
|
361
|
+* [Changed] Paths (e.g. `content_dir`) are now relative to Pico's root dir
|
|
362
|
+* [Changed] Adding `Pico::run()` method that performs Pico's processing and
|
|
363
|
+ returns the rendered contents
|
|
364
|
+* [Changed] Renaming all plugin events; adding some new events
|
|
365
|
+* [Changed] `Pico_Plugin` is now the fully documented `DummyPlugin`
|
|
366
|
+* [Changed] Meta data must start on the first line of the file now
|
|
367
|
+* [Changed] Dropping the need to register meta headers for the convenience of
|
|
368
|
+ users and pure (!) theme devs; plugin devs are still REQUIRED to
|
|
369
|
+ register their meta headers during `onMetaHeaders`
|
|
370
|
+* [Changed] Exclude inaccessible files from pages list
|
|
371
|
+* [Changed] With alphabetical order, index files (e.g. `sub/index.md`) are
|
|
372
|
+ now always placed before their sub pages (e.g. `sub/foo.md`)
|
|
373
|
+* [Changed] Pico requires PHP >= 5.3.6 (due to `erusev/parsedown-extra`)
|
|
374
|
+* [Changed] Pico now implicitly uses a existing `content` directory without
|
|
375
|
+ the need to configure this in the `config/config.php` explicitly
|
|
376
|
+* [Changed] Composer: Require a v0.7 release of `erusev/parsedown-extra`
|
|
377
|
+* [Changed] Moving `license.txt` to `LICENSE`
|
|
378
|
+* [Changed] Moving and reformatting `changelog.txt` to `CHANGELOG.md`
|
|
379
|
+* [Changed] #116: Parse meta headers using the Symfony YAML component
|
|
380
|
+* [Changed] #244: Replace opendir() with scandir()
|
|
381
|
+* [Changed] #246: Move `config.php` to `config/` directory
|
|
382
|
+* [Changed] #253: Assume HTTPS if page is requested through port 443
|
|
383
|
+* [Changed] A vast number of small improvements and changes...
|
|
384
|
+* [Fixed] Sorting by date now uses timestamps and works as expected
|
|
385
|
+* [Fixed] Fixing `$currentPage`, `$nextPage` and `$previousPage`
|
|
386
|
+* [Fixed] #99: Support content filenames with spaces
|
|
387
|
+* [Fixed] #140, #241: Use file paths as page identifiers rather than titles
|
|
388
|
+* [Fixed] #248: Always set a timezone; adding `$config['timezone']` option
|
|
389
|
+* [Fixed] A vast number of small bugs...
|
|
390
|
+* [Removed] Removing the default Twig cache dir
|
|
391
|
+* [Removed] Removing various empty `index.html` files
|
|
392
|
+* [Removed] Removing `$pageData['excerpt']`; recoverable with `PicoExcerpt`
|
|
393
|
+* [Removed] #93, #158: Pico doesn't parse all content files anymore; moved to
|
|
394
|
+ `PicoParsePagesContent`; i.e. `$pageData['content']` doesn't exist
|
|
395
|
+ anymore, use `$pageData['raw_content']` when possible; otherwise
|
|
396
|
+ use Twigs new `content` filter (e.g. `{{ "sub/page"|content }}`)
|
|
397
|
+```
|
|
398
|
+
|
|
399
|
+### Version 0.9
|
|
400
|
+Released: 2015-04-28
|
|
401
|
+
|
|
402
|
+```
|
|
403
|
+* [New] Default theme is now mobile-friendly
|
|
404
|
+* [New] Description meta now available in content areas
|
|
405
|
+* [New] Add description to composer.json
|
|
406
|
+* [Changed] content folder is now content-sample
|
|
407
|
+* [Changed] config.php moved to config.php.template
|
|
408
|
+* [Changed] Updated documentation & wiki
|
|
409
|
+* [Changed] Removed Composer, Twig files in /vendor, you must run composer
|
|
410
|
+ install now
|
|
411
|
+* [Changed] Localized date format; strftime() instead of date()
|
|
412
|
+* [Changed] Added ignore for tmp file extensions in the get_files() method
|
|
413
|
+* [Changed] michelf/php-markdown is replaced with erusev/parsedown-extra
|
|
414
|
+* [Changed] $config is no global variable anymore
|
|
415
|
+* [Fixed] Pico now only removes the 1st comment block in .md files
|
|
416
|
+* [Fixed] Issue wherein the alphabetical sorting of pages did not happen
|
|
417
|
+```
|
|
418
|
+
|
|
419
|
+### Version 0.8
|
|
420
|
+Released: 2013-10-23
|
|
421
|
+
|
|
422
|
+```
|
|
423
|
+* [New] Added ability to set template in content meta
|
|
424
|
+* [New] Added before_parse_content and after_parse_content hooks
|
|
425
|
+* [Changed] content_parsed hook is now deprecated
|
|
426
|
+* [Changed] Moved loading the config to nearer the beginning of the class
|
|
427
|
+* [Changed] Only append ellipsis in limit_words() when word count exceeds max
|
|
428
|
+* [Changed] Made private methods protected for better inheritance
|
|
429
|
+* [Fixed] Fixed get_protocol() method to work in more situations
|
|
430
|
+```
|
|
431
|
+
|
|
432
|
+### Version 0.7
|
|
433
|
+Released: 2013-09-04
|
|
434
|
+
|
|
435
|
+```
|
|
436
|
+* [New] Added before_read_file_meta and get_page_data plugin hooks to customize
|
|
437
|
+ page meta data
|
|
438
|
+* [Changed] Make get_files() ignore dotfiles
|
|
439
|
+* [Changed] Make get_pages() ignore Emacs and temp files
|
|
440
|
+* [Changed] Use composer version of Markdown
|
|
441
|
+* [Changed] Other small tweaks
|
|
442
|
+* [Fixed] Date warnings and other small bugs
|
|
443
|
+```
|
|
444
|
+
|
|
445
|
+### Version 0.6.2
|
|
446
|
+Released: 2013-05-07
|
|
447
|
+
|
|
448
|
+```
|
|
449
|
+* [Changed] Replaced glob_recursive with get_files
|
|
450
|
+```
|
|
451
|
+
|
|
452
|
+### Version 0.6.1
|
|
453
|
+Released: 2013-05-07
|
|
454
|
+
|
|
455
|
+```
|
|
456
|
+* [New] Added "content" and "excerpt" fields to pages
|
|
457
|
+* [New] Added excerpt_length config setting
|
|
458
|
+```
|
|
459
|
+
|
|
460
|
+### Version 0.6
|
|
461
|
+Released: 2013-05-06
|
|
462
|
+
|
|
463
|
+```
|
|
464
|
+* [New] Added plugin functionality
|
|
465
|
+* [Changed] Other small cleanup
|
|
466
|
+```
|
|
467
|
+
|
|
468
|
+### Version 0.5
|
|
469
|
+Released: 2013-05-03
|
|
470
|
+
|
|
471
|
+```
|
|
472
|
+* [New] Added ability to order pages by "alpha" or "date" (asc or desc)
|
|
473
|
+* [New] Added prev_page, current_page, next_page and is_front_page template vars
|
|
474
|
+* [New] Added "Author" and "Date" title meta fields
|
|
475
|
+* [Changed] Added "twig_config" to settings
|
|
476
|
+* [Changed] Updated documentation
|
|
477
|
+* [Fixed] Query string 404 bug
|
|
478
|
+```
|
|
479
|
+
|
|
480
|
+### Version 0.4.1
|
|
481
|
+Released: 2013-05-01
|
|
482
|
+
|
|
483
|
+```
|
|
484
|
+* [New] Added CONTENT_EXT global
|
|
485
|
+* [Changed] Use .md files instead of .txt
|
|
486
|
+```
|
|
487
|
+
|
|
488
|
+### Version 0.4
|
|
489
|
+Released: 2013-05-01
|
|
490
|
+
|
|
491
|
+```
|
|
492
|
+* [New] Add get_pages() function for listing content
|
|
493
|
+* [New] Added changelog.txt
|
|
494
|
+* [Changed] Updated default theme
|
|
495
|
+* [Changed] Updated documentation
|
|
496
|
+```
|
|
497
|
+
|
|
498
|
+### Version 0.3
|
|
499
|
+Released: 2013-04-27
|
|
500
|
+
|
|
501
|
+```
|
|
502
|
+* [Fixed] get_config() function
|
|
503
|
+```
|
|
504
|
+
|
|
505
|
+### Version 0.2
|
|
506
|
+Released: 2013-04-26
|
|
507
|
+
|
|
508
|
+```
|
|
509
|
+* [Changed] Updated Twig
|
|
510
|
+* [Changed] Better checking for HTTPS
|
|
511
|
+* [Fixed] Add 404 header to 404 page
|
|
512
|
+* [Fixed] Case sensitive folder bug
|
|
513
|
+```
|
|
514
|
+
|
|
515
|
+### Version 0.1
|
|
516
|
+Released: 2012-04-04
|
|
517
|
+
|
|
518
|
+```
|
|
519
|
+* Initial release
|
|
520
|
+```
|