Releases: ng-doc/ng-doc
Releases Β· ng-doc/ng-doc
v18.0.8
v18.0.4
v18.0.3
v18.0.2
v18.0.1
18.0.1 (2024-08-23)
A special thanks to @eranshmil for helping with the release! β€οΈ
Builder
- Core Rewrite: The builder's core was rewritten to support multiple markdown files.
chokidarwas replaced with@parcel/watcherfor faster response times to changes. The new builder is more modular, splitting into smaller builders, allowing only changed parts to be triggered. This improves cache performance by restoring data from the cache when only partial rebuilds are necessary.
General
- Syntax Highlighting: Replaced
highlight.jswithshiki, enhancing support for Angular inline template highlighting. This update affects the list of available languages and theme configuration. - Mermaid Diagrams: Added support for Mermaid diagrams in markdown files. Use Mermaid syntax inside code blocks by specifying the
mermaidlanguage. - Removed
keywordField: Thekeywordfield was removed from theNgDocPageinterface. Refer to the Migration Guide for more details. - Multiple Markdown Files: The
mdFilefield now supports an array of paths, allowing multiple markdown files for a single doc page, which will be displayed as tabs. - YAML Front Matter: You can now use YAML front matter syntax to specify
title,icon,type, andkeywordfields in markdown files, customizing tabs. - Page Description: Descriptions for pages can now be specified using JSDoc comments, which will be displayed in the page header.
- Status Badges: Status badges for sidebar items can now be specified using the JSDoc
@statustag. Customize the badge with color and text. - Nested Types in Keywords: Added support for nested types in keywords, improving the readability of API types with complex inline code.
- Guide Header Templates: Added a
headerTemplateproperty to guides configuration inng-doc.config.ts, allowing customization of guide page headers. - Various Fixes: Implemented various fixes to resolve interface glitches, improving hydration and overall app performance.
- Orama Search Update: Orama search engine updated to version
2.0.17. - Signal Input Types:
NgDocProcessorOptionsnow correctly infers the type of signal inputs. - Blockquote Success Type: Added a success type for blockquotes.
- Keyword Loader: Angular keywords loader now creates link to angular.dev.
Schematics
- Auto-generated Keywords: The
builder:pageschematic now automatically generates a keyword for the page based on the title.
UI
- Design Update: Slightly updated the app's design.
- Reworked Search: Search functionality is now fullscreen and consistent across Desktop and Mobile.
- Navbar Inputs:
leftContent,rightContent, andcenterContentinputs were replaced with attribute selectors likengDocNavbarLeftandngDocNavbarRightinng-doc-navbar. ThecenterContentinput was removed. - Image Viewer: Added an image viewer feature, making images in markdown files clickable and viewable in fullscreen mode.
- Sticky Demos: Demos in playgrounds are now sticky.
- Themes Update: The themes feature was changed to fix a glitch with SSR enabled. Now, themes should be defined in CSS/SCSS files and imported directly into
style.css. Registration is no longer needed. - Sidenav and Sidebar: Sidenav and sidebar APIs were updated to support hydration and SSR.
- Scrollable Tables: Tables are now scrollable if too wide, with the first column of API tables being sticky.
- Heading Anchors: Clicking on heading anchors now copies the anchor to the clipboard instead of navigating.
- API References: The API References page has been reworked.
API
- Selectors as Keywords: Component/Directive/Pipe selectors are now used as keywords by default, automatically converting to API links in inline code or
HTMLcode blocks. - JSDoc Tag Support: Added support for various JSDoc tags including
@internal,@deprecated,@experimental,@alpha, and@beta. - New
NgDocApiClass: Introduced theNgDocApiclass for displaying API info in guides, with methods likeNgDocApi.apifor generating API tables andNgDocApi.detailsfor detailed API information. - Function/Method Overloads: API now displays function and method overloads.
- New
JSDocClass: Added theJSDocclass for displaying JSDoc comments in guides, with methods for retrieving descriptions, tags, and checking for specific tags.
v18.0.0-beta.2
18.0.0-beta.2 (2024-08-23)
Bug Fixes
v18.0.0-beta.1
18.0.0-beta.1 (2024-08-23)
Bug Fixes
- builder: fix build (9adcc8d)
- builder: fix build (8a1fa20)
- builder: fix build (68a1d1e)
- builder: fix migrations (0b1e58e)
- builder: fix migrations (56a7b1c)
- builder: fix migrations (5aeab32)
- builder: replace flex-controls with di-controls (465d62f)
- builder: replace flex-controls with di-controls (49cff30)
- builder: serveWebpackBrowser is not a function (a23dd2d)
- builder: test migration (da5afb5)
- builder: test migration (26bee5e)
- builder: the cache is not invalidated after removing
.ng-docfolder (c20e479) - keywords-loaders: fix release cycle for the
keywords-loaderslibrary (a1dbda9) - ng-doc:
ng-docdoesn't forget pages that have been moved to another directory (c433a10) - ng-doc: release trigger (e7ac592)
- project: dependency injection error after update to 15.10.0 (cc41f44)
- project: fix "could not resolve path" error for the build target (66a7b23)
- semantic-release: bump version (d0f1862)
Features
- angular: bump Angular version (2945f16)
- angular: bump Angular version (47e3a24)
- angular: bump major version (446d203)
- builder: add additional migrations (c4a67d0)
- builder: add automatic migration (9c72508)
- builder: add automatic migration (dab72a0)
- ngDoc18 (144fb19)
- project: migrate to Angular 17 (5e7e36e)
- project: update packages (3542e64)
BREAKING CHANGES
- angular: bump major version
- API changes
- angular: Angular 17
- angular: Angular 17