Skip to content

Commit b5dcf6a

Browse files
authored
Merge pull request #638 from projectfluent/typedoc-update
Update to typedoc 0.28 and use entryPointStrategy: packages
2 parents ca021ac + afbd420 commit b5dcf6a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+415
-240
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ jobs:
2121
- run: npm run build --workspaces
2222
- run: npm test
2323
- run: npm run lint
24-
- run: npm run docs --workspaces
24+
- run: npm run docs

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Build and test all packages at once:
8181
$ npm run build --workspaces
8282
$ npm run lint
8383
$ npm run test
84-
$ npm run docs --workspaces
84+
$ npm run docs
8585

8686
Each package may also be built separately by running `npm run build` in
8787
its directory.

fluent-bundle/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
"scripts": {
4242
"build": "tsc",
4343
"postbuild": "rollup -c ../rollup.config.mjs",
44-
"docs": "typedoc --options ../typedoc.config.cjs",
4544
"test": "mocha 'test/*_test.js'"
4645
},
4746
"engines": {

fluent-bundle/src/builtins.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ const NUMBER_ALLOWED = [
5050
*
5151
* pi = The value of π is {NUMBER($pi, maximumFractionDigits: 2)}.
5252
*
53-
* The implementation expects an array of `FluentValues` representing the
54-
* positional arguments, and an object of named `FluentValues` representing the
53+
* The implementation expects an array of {@link FluentValue | FluentValues} representing the
54+
* positional arguments, and an object of named {@link FluentValue | FluentValues} representing the
5555
* named parameters.
5656
*
5757
* The following options are recognized:
@@ -121,8 +121,8 @@ const DATETIME_ALLOWED = [
121121
*
122122
* now = It's {DATETIME($today, month: "long")}.
123123
*
124-
* The implementation expects an array of `FluentValues` representing the
125-
* positional arguments, and an object of named `FluentValues` representing the
124+
* The implementation expects an array of {@link FluentValue | FluentValues} representing the
125+
* positional arguments, and an object of named {@link FluentValue | FluentValues} representing the
126126
* named parameters.
127127
*
128128
* The following options are recognized:

fluent-bundle/src/index.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
/**
2-
* @module fluent
3-
* @overview
4-
*
5-
* `fluent` is a JavaScript implementation of Project Fluent, a localization
2+
* A JavaScript implementation of Project Fluent, a localization
63
* framework designed to unleash the expressive power of the natural language.
74
*
5+
* @module
86
*/
97

108
export type { Message } from "./ast.js";

fluent-bundle/src/resolver.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
/* global Intl */
2-
31
/**
4-
* @overview
5-
*
62
* The role of the Fluent resolver is to format a `Pattern` to an instance of
73
* `FluentValue`. For performance reasons, primitive strings are considered
84
* such instances, too.

fluent-bundle/src/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export abstract class FluentType<T> {
6363
}
6464

6565
/**
66-
* A `FluentType` representing no correct value.
66+
* A {@link FluentType} representing no correct value.
6767
*/
6868
export class FluentNone extends FluentType<string> {
6969
/**
@@ -83,7 +83,7 @@ export class FluentNone extends FluentType<string> {
8383
}
8484

8585
/**
86-
* A `FluentType` representing a number.
86+
* A {@link FluentType} representing a number.
8787
*
8888
* A `FluentNumber` instance stores the number value of the number it
8989
* represents. It may also store an option bag of options which will be passed
@@ -120,7 +120,7 @@ export class FluentNumber extends FluentType<number> {
120120
}
121121

122122
/**
123-
* A `FluentType` representing a date and time.
123+
* A {@link FluentType} representing a date and time.
124124
*
125125
* A `FluentDateTime` instance stores a Date object, Temporal object, or a number
126126
* as a numerical timestamp in milliseconds. It may also store an

fluent-bundle/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "../tsconfig.json",
2+
"extends": "../tsconfig.base.json",
33
"compilerOptions": {
44
"outDir": "./esm",
55
"rootDir": "./src"

fluent-bundle/typedoc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"intentionallyNotExported": ["Pattern", "TemporalObject"]
3+
}

fluent-dedent/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
"scripts": {
2727
"build": "tsc",
2828
"postbuild": "rollup -c ../rollup.config.mjs",
29-
"docs": "typedoc --options ../typedoc.config.cjs",
3029
"test": "mocha 'test/*_test.js'"
3130
},
3231
"engines": {

0 commit comments

Comments
 (0)