content

The file-based CMS for your Nuxt application, powered by Markdown and Vue components.

MIT License

Downloads
227.4K
Stars
3K
Committers
218
content - v2.12.1 Latest Release

Published by farnabaz 8 months ago

🩹 Fixes

  • Missing import (#2560)
  • types: Use const type parameter for QueryBuilder only (#2546)
  • Split getContent to chunks in getIndexedContentsList (#2354, #2549)
  • types: Add const type parameter for QueryBuilder.only() and .without() (#2573)

📖 Documentation

  • Typo in showURL prop (#2537)
  • Add descriptions of all match operators (#2552)
  • Update highlight.langs defaults (#2559)

🏡 Chore

  • Fix Nuxt extends in renovate.json (#2567)
  • Upgrade @nuxtjs/mdc (8a176f93)

❤️ Contributors

content - v2.12.0

Published by farnabaz 9 months ago

🚀 Enhancements

  • Adopt to mdc v0.4 (#2539)

NOTE Content module does not load languages that are not specified by the users for syntax-highlighting. See the documentation.
If you want to load support all languages, you can load them in module's config

import { bundledLanguages } from 'shiki'

export default defineNuxtConfig({
  content: {
    highlight: {
      langs: Object.keys(bundledLanguages)
    }
  }
})

🔥 Performance

  • content-list: Cache contents list during generation and per-request (#2527)

🩹 Fixes

  • module: Handle former props in ContentSlot transformer (#2525)
  • client-db: Fetch dir config on legacy query (4b9b6b7a)
  • navigation: Ignore extensions on navigation sort (#2529)

📖 Documentation

🏡 Chore

  • tw-support: Get cssPath from array (#2501)
  • Missing imports in playground (e7e082c3)
  • Upgrade @nuxtjs/mdc (d3437082)

❤️ Contributors

content - v2.11.0

Published by farnabaz 9 months ago

🩹 Fixes

  • types: Fields in experimental.search can be optional (#2506)
  • ContentSlot: Detect multiline usage (#2508)

📖 Documentation

  • Fix component name (#2482)
  • Search result variable name (#2485)
  • Updates (d41902ad)
  • Mention that searchContent is an experimental feature (#2505)
  • Add carbon ads (77163e4b)

📦 Build

  • Do not emit .mjs in runtime directory (#2514)

🏡 Chore

  • Move to shikiji for types (#2495)
  • Remove unused argument (#2496)
  • dx: Remove caching for dev HMR (78e1eebe)

❤️ Contributors

content - v2.10.0

Published by farnabaz 10 months ago

🚀 Enhancements

  • Add homepage on package.json (#2413)
  • api: Cache api endpoints (d2bcf70f)

🩹 Fixes

  • Add missing imports for search (#2412)
  • Import nuxt composables from #imports (#2418)
  • 7.search-content.md typo (7bf89960)
  • Enable cache only for clientDb (#2425)
  • Remove d.ts (#2427)
  • Ensure bundler module resolution works with runtime type imports (#2470)
  • Imports (f33f5a20)

📖 Documentation

🏡 Chore

  • perf: Leverage ISR instead for query caching (dee73c67)
  • Remove routeRules added (6b94f131)
  • perf: Leverage ISR instead for query caching" (6a56986c)
  • Upgrade @nuxtjs/mdc^0.3.0 (8c442665)
  • Remove ts-ignore as unstorage has fixed subpath export (#2472)
  • Test bundler module resolution (#2474)

❤️ Contributors


Note: Slightly breaking change in Package internals, due to remark upgrade. class properties are now arrays.

content - v2.9.0

Published by farnabaz 12 months ago

🚀 Enhancements

  • Add type to layout (#2389)
  • Add search (The feature is still experimental and may face some changes) (#2146)

🩹 Fixes

  • path-meta: Prevent undefined error (1257cb5c)
  • Types import (ee4ea3ad)
  • Ignore regexes in fetchDirConfig (#2362)
  • Optional experimental options (#2391)
  • Update types and imports (061192c5)
  • Prevent duplicate parses (a208567e)
  • Prevent duplicate parses (dae92681)

📖 Documentation

  • Update to latest ui-pro (a08dc1b8)
  • Remove global style (e58855fb)
  • Add terms (798a0a8c)
  • Add data pops in ContentRendererMarkdown and varaibles binding (#2360)
  • Update examples for content helpers composable (b6ff9ba2)
  • Upgrade deps (feca11b6)
  • Improve home (fe357920)
  • Add links for shiki on home (#2386)
  • Update highlight.preload config (#2395)
  • Grammatical tweaks on markdown page (#2394)
  • Update bindings with default value (#2397)
  • Update 3.search.md (40a2e5de)

❤️ Contributors

content - v2.8.5

Published by farnabaz about 1 year ago

🩹 Fixes

content - v2.8.4

Published by farnabaz about 1 year ago

🩹 Fixes

  • fix(prose-pre): only wrap slot in pre (#2348) (e783efd9)
content - v2.8.3

Published by farnabaz about 1 year ago

🚀 Enhancements

  • Update types (#2156)
  • Docs rework with Nuxt UI (#2310)
  • Add binding for external data (#2296)

🩹 Fixes

  • findSurround: Use filtered contents to find surround (#2291)
  • Remove deletion of prerenderedAt key (#2280)
  • module: Remove deprecated resolveModule (#2298)
  • surround: Respect only and without filters (#2311)
  • Add missing dependencies (#2313)
  • tailwindcss: Tailwindcss HMR support for content files (#2315)
  • Fetch content chunked (#2321)
  • storage: Prevent duplicate parsing (#2326)
  • Add regex to match ContentSlot in Pug templates (#2344)

📖 Documentation

🏡 Chore

❤️ Contributors

content - v2.8.2

Published by farnabaz about 1 year ago

🩹 Fixes

  • query: Prevent undefined error (b680b47c)
  • navigation: Prevent client-db conflict (fd8e3b82)
  • serverQueryContent: Do not expose advanced query typing (09e37c19)
  • document-driven: Invalid composable import (e56f71dc)
  • ContentList: Component slot typechecking (#2277)

❤️ Contributors

  • Cédric Exbrayat
content - v2.8.1

Published by farnabaz about 1 year ago

🩹 Fixes

  • Cannot read properties of undefined (11c3b09f)
  • Upgrade @nuxtjs/mdc to v0.1.3 (fda966df)
content - v2.8.0

Published by farnabaz about 1 year ago

🚀 Enhancements

  • Add count method (#1924)
  • nuxt-mdc: Extract markdown parser (#2187)
  • Advanced query schema (#2213)
  • Allow to disable content head (#2142)

🩹 Fixes

  • Markdown render compatiblity (d81a08a2)
  • slot: Rename ContentSlot to MDCSlot in render function (efc60481)
  • module: Slot transform sourcemap (7558cf0d)
  • ProseImg: Prevent conflict between src and baseURL (#2242)
  • Custom drivers failed on build (#2193)
  • ContentRenderer: Render contents only with excerpt (#2246)
  • content-slot: Better slot name regex (329cf3bc)

📖 Documentation

  • Pre-render pages (#2196)
  • v1: Link button wrapping for small screens (#2199)
  • Add count method (#2200)
  • Add edge alert (c582469c)
  • Update README.md (#2226)
  • mdc: Fix {attribute} examples (#2228)
  • Add warning for <NuxtPage/> existence in app.vue (#2244)
  • <ContentDoc> slot example (0bfc275d)
  • Fix prose links (aa61d9fd)
  • Update prose source links (9720a333)

🏡 Chore

❤️ Contributors

content - v2.7.2

Published by farnabaz over 1 year ago

🩹 Fixes

  • Remark plugins deprecated warning (#2188)
  • Allow ] in filename code block (#2169)

📖 Documentation

  • Update slots example for the content-query component (#2190)

❤️ Contributors

content - v2.7.1

Published by farnabaz over 1 year ago

🔥 Performance

  • Keep document-drive state in shallowRef and prefetch pages/components (#2118)

🩹 Fixes

  • Replace crlf line endings with lf (#2120)
  • Use consola.withTag instead of kit.useLogger (#2140)
  • module: Add yml / json extensions to tailwind content files (#2147)
  • Remove unneeded await (#2175)
  • Use unstorage types (#2136)
  • Uppercase in path (#2170)
  • markdown: Allow plugin with array type option (#2114)
  • Allow empty string in $contains (#2179)
  • Remove favicon handling (#2157)

📖 Documentation

  • Add studio banner (#2165)
  • Reorder document-driven page slots components description (#2108)
  • Add utm_source in banner link (f9a0113e)
  • Use lowercase typings, use ([ instead of or in type declaration (#2167)](https://github.com/nuxt/content/commit/ instead of or` in type declaration (#2167)))
  • Add warning about windows development (#2180)

❤️ Contributors

content - v2.7.0

Published by farnabaz over 1 year ago

🚀 Enhancements

  • shiki: Support italic, bold and underline styles (#2079)
  • config: Update ignores to advanced pattern (#2035)

🩹 Fixes

  • link: Remove hash before checking if ending by '.md' (#2033)
  • markdown: Prevent script execution (#2040)
  • code-block: Pass language as class name (#2064)
  • tailwind-integration: Allow content as object (#2060)
  • code-block: Meta property (#2067)
  • markdown: Respect _draft key in frontmatter (#2077)

📖 Documentation

  • Guide for adding custom grammars for syntax highlighting (7da9b286)
  • Add example of additional sorting options for queryContent (#2042)
  • Explain useasyncdata wrapping (#2054)
  • Update url (#2055)
  • Add latest to nuxi command (2939b793)
  • Update Content Wind live demo url (#2080)
  • Update links (#2085)
  • Remove outdated description (#2098)

🏡 Chore

  • Use caret dependency for kit (#2044)

❤️ Contributors

content - v2.6.0

Published by farnabaz over 1 year ago

🚀 Enhancements

  • CodeBlock: Add line number attribute to code block lines (#1973)
  • More flexible ignores configuration (#2022)

🩹 Fixes

  • type: Content locale (#1965)
  • markdown: Html ids in markdown headings should not start with a digit (#1961)
  • useContentHead: Set property instead of name for OG metadata (#1981)
  • Access config from public key (#2005)
  • ContentRendererMarkdown: Prevent undefiend error on component resolve (#2021)
  • code-block: Use span with \n instead of div for lines (#2008)
  • preview: Use sessionStorage to keep token (#2020)
  • shiki: Add \n to empty lines (46f3d79f)
  • markdown-renderer: Document reactivity (e46309fe)
  • query: Prevent adding duplicate conditions to query (#2027)
  • document-driven: Ensure layout is set on hydration (#2032)

📖 Documentation

  • Add Nuxt Studio link (bc329334)
  • Fix link to nitro plugins (#1969)
  • Format docs & update links & fix mistakes (#1982)
  • Fix template syntax (9d8478de)

❤️ Contributors

content - v2.5.2

Published by Atinux over 1 year ago

  • fix: revert navDirFromPath behavior (049c356d)
content - v2.5.1

Published by farnabaz over 1 year ago

🩹 Fixes

  • client-db: Ensure ignoreSources is an array (45b44a69)
  • document-driven: Page layout detection (#1955)
content - v2.5.0

Published by farnabaz over 1 year ago

compare changes

🚀 Enhancements

  • Introduce component-resolver transformer (#1907)
  • client-db: Allow possibility to ignore some sources from client storage (#1917)

🩹 Fixes

  • Add anchorLinks type (#1894)
  • headings: Don't generate link if id is missing (#1893)
  • code block: Use div instead of span (#1885)
  • Types (#1912)
  • Db access time issue (#1838)
  • Refresh content-index on nitro start (#1947)
  • findSurround: Allow before and after to be 0 (#1922)
  • module: Close dev server on nitro close (#1952)

📖 Documentation

  • Remove extraneous comma (#1878)
  • Update link to useHead (#1895)
  • Update get-started description (13a2e1cf)
  • Update content list query example (#1901)
  • Fix deployment (#1913)
  • Update documentDriven config (#1915)
  • Add examples for JSON string for inline props (#1882)
  • Update badges (737d5c54)
  • Add github in sources (#1946)

❤️ Contributors

content - v2.4.3

Published by farnabaz over 1 year ago

🚀 Enhancements

  • pnpm: Switch to pnpm (local / ci) (#1868)

🩹 Fixes

  • query: Decode unicode params (#1871)

❤️ Contributors

content - v2.4.2

Published by farnabaz over 1 year ago

🩹 Fixes

  • useContentHead: Disable host detection (f6a429dc)

📖 Documentation

🏡 Chore

❤️ Contributors

Package Rankings
Top 0.82% on Npmjs.org
Badges
Extracted from project README
npm version npm downloads License Nuxt
Related Projects