Skip to content
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.

Commit

Permalink
0.16.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MoOx committed Aug 22, 2016
1 parent bd5a898 commit a96ee96
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 6 deletions.
44 changes: 41 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,43 @@
# HEAD

- Changed: update to ``remark-autolink-headings@^4.0.0``.
# 0.16.0 - 2016-08-23

## tl;dr

- 🔨 Breaking change: ``"phenomic/lib/content-loader"`` should now be replaced
by a value imported from ``"phenomic"``
(``import { phenomicLoader } from "phenomic"``).
Following this, phenomic loader configuration should be directly in
phenomic section, not ``phenomic.loader`` or ``phenomic.contentLoader``.
- 🎉 **New feature: dynamic pages! You now have the ability to generate
pages for all metadata used in your text files.**
This can be used to generate pages for tags, categories, authors etc.
*(Pagination is not handled yet, but will be in a near future).*
- 🎉 **New feature: phenomic loader now supports plugins.**
Lots of flexibility has been added with this feature,
unlocking a lot of possibilities!

🚀 Examples of update and changes:

- [Example of update from Phenomic 0.15 to 0.16](https://github.com/putaindecode/putaindecode.io/commit/aa1b037)
- [Example of implementation of some tags and authors pages](https://github.com/putaindecode/putaindecode.io/commit/092a040)

ℹ️ Some works has been done on the [documentation](https://phenomic.io/):

- ☺️ A new [Getting started](https://phenomic.io/docs/getting-started/) has been
crafted. Please tell us what you think about it!
- 🤗 We also have updated the [Showcase](https://phenomic.io/showcase/) page where
you can filter projects by tags.
- ❤️ [Do not hesitate to submit your website/app made with Phenomic!](https://phenomic.io/showcase/submit/)

## Details

- Changed: default markdown renderer updated to
``remark-autolink-headings@^4.0.0``.
This might fix issue with missing links for headings.
- Changed: default markdown renderer updated to
``remark-highlight.js@^4.0.0``
This might fix issue with broken highlighted code.
- Changed: ``phenomic/lib/content-loader`` reference is deprecated in favor of
``import { phenomicLoader } from "phenomic"``.
You can use ``phenomicLoader`` variable in webpack configuration to reference
Expand Down Expand Up @@ -209,17 +245,19 @@
Just in case you still have some PostCSS messages not handled yet.
Here is the change you can do in your PostCSS config section in your
``webpack.config`` to do the same on your existing project:

```diff
postcss: () => [
require("stylelint")(),
require("postcss-cssnext")({ browsers: "last 2 versions" }),
- require("postcss-browser-reporter")(),
require("postcss-reporter")(),
+ ...config.production ? [
+ ...!config.production ? [
+ require("postcss-browser-reporter")(),
+ ] : [],
],
```

(@MoOx)
- Changed: ``stylelint`` has been updated to ``^6.8.0``
(@MoOx)
Expand Down Expand Up @@ -820,7 +858,7 @@ Before 0.10,
)
// ...
}
)
}
```

- Changed: Remove redux devtools and `process.env.CLIENT` environment variables.
Expand Down
4 changes: 2 additions & 2 deletions docs/content/docs/usage/routing.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: Leveraging Phenomic routing capabilities
title: Generate dynamic pages by leveraging Phenomic routing capabilities
---

Phenomic uses [react-router](https://github.com/reactjs/react-router).
Expand All @@ -8,7 +8,7 @@ By default Phenomic uses a single wildcard route
in order to render files consumed by Phenomic.

But by exploiting ``react-router`` capabilities, we do more cool things like
generating pages for each metadata Phenomic can find in your files.
generating dynamic pages for each metadata Phenomic can find in your files.

A classic example will be to generate one page per `tag` find in your files.
Let's say you have in your files metadata a ``tags`` field like in this example
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "phenomic",
"version": "0.15.0",
"version": "0.16.0",
"description": "Modern website generator based on the React and Webpack ecosystem.",
"keywords": [
"react",
Expand Down

0 comments on commit a96ee96

Please sign in to comment.