Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

Releases: nuxt-community/nuxtent-module

Nuxt 1.4.0^ compatibility!

23 Mar 15:13
b38125f
Compare
Choose a tag to compare

Nuxtent is finally compatible with Nuxt 1.0.0! (Thanks to @joostdecock for initiating this, and to @apmontgomery, @cesasol, and @derevandal for the help!)

1.2.1

25 Dec 00:54
Compare
Choose a tag to compare
  • fixed incompatibilities with Linux and Windows (closes #124 #128)

  • Merged new parser API to allow more powerful plugin usage. (#119, thanks to @arrkiin for the work and patience)

There are three ways to configure the parser:

  1. extend the default options passed to the parser.
  2. Add plugins to the parser.
  3. customize the parser after it was created.

Example usage:

// nuxtent.config.js
const Prism = require('prismjs')
const externalLinks = require('markdown-it-link-attributes')
const emoji = require('markdown-it-emoji')
const twemoji = require('twemoji')

module.exports = {
  parsers: {
    md: {
        extend(config) {
          config.highlight = (code, lang) => {
            return `<pre class="language-${lang}"><code class="language-${lang}">${Prism.highlight(code, Prism.languages[lang] || Prism.languages.markup)}</code></pre>`
          }
        },
        plugins: [
            emoji,
            [ externalLinks, { target: '_blank', rel: 'noopener' } ]
        ],
        customize(parser) {
            parser.linkify.tlds('onion')
            parser.linkify.add(... custom code to recognize and handle twitter handles ...)
            parser.renderer.rules['emoji'] = (token, idx) => {
                return twemoji.parse(token[idx].content);
            }
        }
    }
  },
  ...
  css: [
    'prismjs/themes/prism-coy.css'
  ]
}

1.1.0

22 Oct 21:55
Compare
Choose a tag to compare

1.1.0 (2017-10-22)

Features

  • config add possibility to declare nuxtent options api key as a function
    given the isStatic parameter to adjust Axios options when using nuxt generate, fixes #92
{
  content: {
    page: '/_slug',
    permalink: '/:year/:slug',
    generate: ['get', 'getAll']
  },
  api: function(isStatic) {
    return {
      browserBaseURL: isStatic ? 'http://production-url.com' : ''
    }
  }
}
  • config all nuxtent options present in api key are now forwarded to axios

  • module allow .yml file extension for content files (a6b240a), closes #69

Bug Fixes

  • prism change Prism implementation to include classes (
    4dad625
    )

  • module harmonize date format of posts and pages (2154c45), fixes#98

  • module do not expose filePath to the browser (7311294), fixes #96

  • module: fix generate router permalink concatenation (f553cda), closes #103

1.0.2

29 Sep 02:52
Compare
Choose a tag to compare

1.0.2 (2017-09-29)

Bug Fixes

  • module: replace wrong rootDir path by srcDir when looking for components (89a9081)

1.0.1

29 Sep 01:52
Compare
Choose a tag to compare

1.0.1 (2017-09-29)

Bug Fixes

  • example: fix multiple-content-types example config and pages (061bf2a)
  • examples: replace nuxtent generate by nuxt generate command (e91676a)
  • module: properly detect static mode (nuxt generate) (cd148a2), closes #83 #88 #89

1.0.0

25 Sep 23:05
Compare
Choose a tag to compare

1.0.0 (2017-09-25)

Bug Fixes

  • module: fix "dependency not found ~\content" (#78) (9866b7d)
  • module: remove automatic content permalink prefixing (8ff853d)

Chores

  • package: remove nuxtent binary (845aa8d)

BREAKING CHANGES

  • module: verify your content permalinks, possibly add the missing content type prefix
  • package: replace nuxtent generate by nuxt generate in your project's package.json scripts

0.2.80

24 Sep 16:16
Compare
Choose a tag to compare

Updated page.path to using new API (#79)

Static Markdown components!

23 Sep 22:47
Compare
Choose a tag to compare

You can now use markdown components with npm run generate!

Other fixes/features:

And added @medfreeman and @suhogrozdje as contributors. 💯

0.2.77

21 Aug 22:21
Compare
Choose a tag to compare

Fixes

  • Added isStatic to Nuxt options for environments where process.env is not exposed. (Fixes #47)

0.2.75

21 Aug 19:40
Compare
Choose a tag to compare

Fixes

  • STATIC=true is automatically set during nuxtent generate (Fixes #44 #47)
  • Added more guards against hot module reload 404 errors (Fixes #42)