Commit graph

765 commits

Author SHA1 Message Date
Daniel Rudolf
3798cbe478 Remove page title fallback 2015-12-21 04:05:25 +01:00
Daniel Rudolf
329049bd18 Fix empty meta header 2015-12-21 03:42:59 +01:00
Daniel Rudolf
67e1e8a8ea Default theme: Highlight active page + hide untitled pages
Related to #302
2015-12-21 03:31:34 +01:00
Daniel Rudolf
fdf81672a8 content-sample/index.md: Fix syntax 2015-12-21 03:24:32 +01:00
Daniel Rudolf
daca1b7495 Merge pull request #304 from smcdougall/master
Changed content to match docs changes.
2015-12-21 03:07:40 +01:00
Daniel Rudolf
b7fbf95b9d README.md: Fix EditDevDocs URL 2015-12-21 02:38:05 +01:00
Daniel Rudolf
5694cda14e Update website URLs 2015-12-20 19:44:59 +01:00
Daniel Rudolf
693d8ae4fa Update default theme footer 2015-12-16 21:51:23 +01:00
Daniel Rudolf
dc6ac516a8 Fix Pico::getPageUrl() 2015-12-13 22:27:27 +01:00
Daniel Rudolf
a138d23daf Throw LogicException instead of RuntimeException in Pico::setConfig() 2015-12-13 22:19:02 +01:00
Daniel Rudolf
0c85d70820 Adding $queryData parameter to Pico::getPageUrl() method
This allows developers to easily add custom query data to an page URL without the need to check enabled URL rewriting on their own. Since Twigs `link` filter is just an alias for Pico::getPageUrl(), theme designers can do the same with e.g. `{{ "index"|link("foo=bar&baz=42") }}`.

Theme designers, heads up! Don't forget that the result of the `link` filter is never escaped, so the result could contain unescaped ampersands when passing custom query data. You should pass the result to Twigs `escape` filter when using custom query data.
2015-12-13 22:14:05 +01:00
Daniel Rudolf
d9788c12e4 _build/generate-phpdoc.sh: Fix output formatting 2015-12-07 15:57:00 +01:00
Daniel Rudolf
93f7aaad8b Class docs: Use default markdown table format 2015-12-07 15:17:39 +01:00
smcdougall
1e2d500bfa Formatted lines to 80 characters 2015-12-06 19:28:37 -05:00
smcdougall
d8c16d974f Changed content to match docs changes. 2015-12-06 14:35:39 -05:00
theshka
fa4e095bdf Move LICENSE to LICENSE.md 2015-12-01 15:12:20 -06:00
Tyler Heshka
37082b21db fix typo/animated screenshot 2015-11-30 18:10:26 -06:00
Daniel Rudolf
f0a44910e7 Update README.md
Use automatically generated and updated license and version badges via http://shields.io/
2015-11-30 23:41:43 +01:00
theshka
5f9b070653 update README.md version 1.0.0-beta.2 2015-11-30 15:23:23 -06:00
theshka
c9c8db3e64 improve README.md 2015-11-30 15:00:40 -06:00
Daniel Rudolf
b23a777f5a Update CHANGELOG.md 2015-11-30 19:05:59 +01:00
Daniel Rudolf
2e6ce893e4 Version 1.0.0-beta.2
```
* [New] Introducing the `PicoTwigExtension` Twig extension
* [New] New `markdown` filter for Twig to parse markdown strings; Note: If you
        want to parse the contents of a page, use the `content` filter instead
* [New] New `sort_by` filter to sort an array by a specified key or key path
* [New] New `map` filter to get the values of the given key or key path
* [New] Introducing `index.php.dist` (used for pre-bundled releases)
* [New] Use PHP_CodeSniffer to auto-check source code (see `.phpcs.xml`)
* [New] Use Travis CI to generate phpDocs class docs automatically
* [Changed] Improve documentation
* [Changed] Improve table styling in default theme
* [Changed] Update composer version constraints; almost all dependencies will
            have pending updates, run `composer update`
* [Changed] Throw a RuntimeException when the `content` dir isn't accessible
* [Changed] Reuse `ParsedownExtra` object; new `onParsedownRegistration` event
* [Changed] `$config['rewrite_url']` is now always available
* [Changed] `DummyPlugin` class is now final
* [Changed] Remove `.git` dirs from `vendor/` when deploying
* [Changed] Various small improvements and changes...
* [Fixed] `PicoDeprecated`: Sanitize `content_dir` and `base_url` options when
          reading `config.php` in Picos root dir
* [Fixed] Replace `urldecode()` (deprecated RFC 1738) with `rawurldecode()`
          (RFC 3986) in `Page::evaluateRequestUrl()`
* [Fixed] #272: Encode URLs using `rawurlencode()` in `Pico::getPageUrl()`
* [Fixed] #274: Prevent double slashes in `base_url`
* [Fixed] #285: Make `index.php` work when installed as a composer dependency
* [Fixed] #291: Force `Pico::$requestUrl` to have no leading/trailing slash
```
2015-11-30 18:52:11 +01:00
Daniel Rudolf
268c41e7fa Update CHANGELOG.md 2015-11-30 18:49:05 +01:00
Daniel Rudolf
b47a806efd Merge pull request #296 from picocms/enhancement/refactor-phpdoc-deployment
Refactor phpDoc auto deployment
2015-11-30 18:33:19 +01:00
Daniel Rudolf
67bbae184b phpDocs auto deployment: Fix output formatting 2015-11-30 17:23:25 +01:00
Daniel Rudolf
47d2685c6d phpDocs auto deployment: Disable cache for releases 2015-11-30 16:54:45 +01:00
Daniel Rudolf
c88a26beff phpDocs auto deployment: Set default push strategy to simple 2015-11-30 15:26:09 +01:00
Daniel Rudolf
fe10bca56b phpDocs auto deployment: Fix output formatting 2015-11-30 15:24:00 +01:00
Daniel Rudolf
f5c721aba1 phpDocs auto deployment: Fix paths 2015-11-30 15:11:28 +01:00
Daniel Rudolf
76f243f925 Refactor phpDoc deployment
This should prevent empty phpDoc updates like 55b4a2b
2015-11-30 14:53:10 +01:00
Daniel Rudolf
771bdacf71 Inline docs: Fix navigation loop example in Blogging section 2015-11-30 03:24:37 +01:00
Daniel Rudolf
9a7e53328d Merge pull request #273 from picocms/feature/PicoTwigExtension
Add map and sort_by Twig filters
2015-11-30 03:11:13 +01:00
theshka
3c10c8ac0b fix typo 2015-11-29 19:59:34 -06:00
theshka
02ac0c276b Merge branch 'feature/PicoTwigExtension' of https://github.com/picocms/Pico into feature/PicoTwigExtension 2015-11-29 19:53:05 -06:00
Daniel Rudolf
3d4c4e1669 Fix _build/generate-phpdoc.sh 2015-11-30 02:02:53 +01:00
Tyler Heshka
cf71f36651 Merge pull request #295 from picocms/enhancement/isolate-build
Isolate build-related files from source
2015-11-29 18:56:36 -06:00
Daniel Rudolf
d19ab3814c Merge branch 'enhancement/isolate-build' of github.com:picocms/Pico into enhancement/isolate-build
Conflicts:
	.phpdoc.xml
2015-11-30 00:54:21 +01:00
Daniel Rudolf
4be51a7bee Refactor phpDoc generation 2015-11-30 00:52:19 +01:00
theshka
49e5e44b4a update .phpdoc.xml 2015-11-29 16:28:33 -06:00
theshka
ff02f34e23 Merge branch 'enhancement/isolate-build' of https://github.com/picocms/Pico into enhancement/isolate-build 2015-11-29 15:57:21 -06:00
theshka
1ea81d4b41 add .phpdoc.xml and move ignore list 2015-11-29 15:55:25 -06:00
Daniel Rudolf
4f90296295 Update .phpcs.xml: Check $PWD by default 2015-11-29 22:55:05 +01:00
Daniel Rudolf
272a13f0f2 Update CONTRIBUTING.md: Use Pico's .phpcs.xml instead of PSR2 standard for PHP_CodeSniffer 2015-11-29 22:54:18 +01:00
Daniel Rudolf
24b58175a4 Inline docs: Update Blogging section to use "sort_by" filter 2015-11-29 22:28:18 +01:00
Daniel Rudolf
be46e19677 Merge branch 'master' into feature/PicoTwigExtension
Conflicts:
	CHANGELOG.md
2015-11-29 22:19:57 +01:00
Daniel Rudolf
2ce422d907 PicoTwigExtension: Refactor error handling 2015-11-29 22:18:41 +01:00
Daniel Rudolf
9aaab5de1a Refactor Pico::parseFileMeta() 2015-11-29 21:58:30 +01:00
theshka
1dc410425f Isolate build-related files from source
* [Changed] rename `phpcs.xml` -> `.phpcs.xml`
* [Changed] rename `build/` dir -> `_build/`
* [Changed] update paths in `.gitignore`
* [Changed] update paths in `.travis.yml`
* [Changed] update paths in `.sh` scripts
2015-11-29 14:55:55 -06:00
Daniel Rudolf
5ea94d06e6 Catch YAML parse errors 2015-11-29 20:58:41 +01:00
Daniel Rudolf
6cb378e83f Inline docs: Add link to YAML wikipedia article
Official resources about YAML are ... - impossible to understand for a ordinary user.
2015-11-29 20:26:43 +01:00