Skip to content

Commit 0123ab7

Browse files
authored
docs: Fix documentation typos and formatting (#16)
1 parent 45fadd2 commit 0123ab7

File tree

4 files changed

+19
-20
lines changed

4 files changed

+19
-20
lines changed

dev-docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## IDEAS
44

5-
* Save probes to local storage and comare runs
5+
* Save probes to local storage and compare runs
66
* Read options from node command line
77
* Read options from URL query string (when hash is used by app router)
88
* Detect production builds and automatically disable

docs/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@ A collection of JavaScript front-end debugging tools provided as a set of separa
66
| --- | --- |
77
| **`@probe.gl/log`** | A JavaScript logging library focused on facilitating debugging and performance instrumentation of front-end applications. |
88
| **`@probe.gl/env`** | Basic environment detection (Browser, Node, Electron etc). |
9-
| **`@probe.gl/stats`** | A minimal bag of performance related stats that applications or frameworks can populate. |
10-
| **`@probe.gl/stats-widget`** | An HTML widget that helps applications display the contests of `@probe.gl/stats` objects. |
9+
| **`@probe.gl/stats`** | A minimal bag of performance-related stats that applications or frameworks can populate. |
10+
| **`@probe.gl/stats-widget`** | An HTML widget that helps applications display the contents of `@probe.gl/stats` objects. |
1111
| **`@probe.gl/bench`** | A benchmark rig to help measure and track regressions of critical functions. |
1212
| **`@probe.gl/react-bench`** | A React component that displays the output of `@probe.gl/bench`. |
1313
| **`@probe.gl/test-utils`** | Test "Drivers" for running automated browser testing from Node via `puppeteer`. |
1414

1515
## Comparison with other Logging Solutions
1616

17-
proble.gl's focus on debugging and performance instrumentation of front-end applications has lead to different design choices and priorities compared with logging libraries that are designed for facilitating logging of production code in back-end services. Those libraries are often focused on integrating with various logging backends (log to file, log to server, etc) and not on integrating with the browser console and the front-end debugging workflow.
17+
probe.gl's focus on debugging and performance instrumentation of front-end applications has led to different design choices and priorities compared with logging libraries that are designed for facilitating logging of production code in back-end services. Those libraries are often focused on integrating with various logging backends (log to file, log to server, etc.) and not on integrating with the browser console and the front-end debugging workflow.
1818

1919

2020
## Features
2121

22-
* **Off by default** - probe.gl makes efforts to have a minimal performance footprint when not enable, to let you consider leaving your probes switched off in production code.
22+
* **Off by default** - probe.gl makes efforts to have a minimal performance footprint when not enabled, to let you consider leaving your probes switched off in production code.
2323
* **Lightweight** - probe.gl is designed to have a small impact on application bundle size and to avoid dependencies on other modules.
2424

2525

@@ -57,15 +57,15 @@ probe.gl offers a basic persistent configuration system:
5757

5858
### Debug Features
5959

60-
debug related facilities, such as console log interception, global context in debugger etc.
60+
Debug-related facilities, such as console log interception and access to a global context in the debugger.
6161

6262

6363
### Benchmarking Support
6464

6565
In addition to in-app profiling, probe also supports a simple benchmarking rig
6666

67-
* **Benchmark Suite** - function to run a suite of functions and collect data
68-
* **Persist and Compare Benchmarks** -
67+
* **Benchmark Suite** - Functions to run a suite of benchmarks and collect data.
68+
* **Persist and Compare Benchmarks** - Persist results and compare runs to track regressions.
6969

7070

7171
## History

docs/roadmap.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,16 @@
22

33
We are still iterating on probe.gl. Here are some of the ideas, in very rough form...
44

5-
- **In-memory log:** Instead of, or in addition to, logging to the console, `Probe.probe` now saves to an internal array of log messages. This allows you to turn console output off and do post-facto reporting or visualization.
5+
- **In-memory log:** Instead of, or in addition to, logging to the console, `Probe.probe` can save to an internal array of log messages. This allows you to turn console output off and do post-facto reporting or visualization.
66

77
- **Persistent settings and saved logs** - Local storage configuration now allows for persistent configuration (including enable/disable) across browser sessions, and makes it easier to have Probe disabled (or enabled, for developers) in production. This also makes it easy to set additional development flags like `isNewFeatureEnabled`. Usage via the JS console:
88
```
99
Probe.enable().configure({level: 2, useMyDevFeature: true});
1010
```
1111

12-
- **Better Console groups** - Probe.groups allows independently time execution of parallel activities, using console groups to organize the output.
12+
- **Better console groups** - `Probe.groups` allows independent timing of parallel activities, using console groups to organize the output.
1313

14-
- **Duration:** Including `start` and `end` in the metadata object allows Probe
15-
o calculate duration between calls using the same `name`:
14+
- **Duration:** Including `start` and `end` in the metadata object allows Probe to calculate duration between calls using the same `name`:
1615
```
1716
Probe.probe('long_process', {start: true});
1817
doLongProcess();

docs/upgrade-guide.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,25 @@
44

55

66
**ES Modules**
7-
- probe.gl is used to test transition to ES Modules for all the vis.gl frameworks including deck.gl.
8-
- You are welcome report any issues in the probe.gl repo.
7+
- probe.gl is used to test the transition to ES Modules for all the vis.gl frameworks including deck.gl.
8+
- You are welcome to report any issues in the probe.gl repo.
99

1010
**`@probe.gl/bench`**
11-
- `Bench.add()` / `Bench.addAsync()` - The number of overloads has been reduced so some existing benchmark suites may need to be updated. When specifying priority and options, simply supply a property object instead of position arguments.
11+
- `Bench.add()` / `Bench.addAsync()` - The number of overloads has been reduced so some existing benchmark suites may need to be updated. When specifying priority and options, simply supply a property object instead of positional arguments.
1212
- Custom logging
1313
- the type of each `LogEntry` is now controlled by the `type` field instead of the `entry` field.
1414
- For `LogEntry.type`, the LOG_ENTRY export is removed in favor of simple string constants.
1515

1616
**`probe.gl`**
17-
- The `probe.gl` "umbrella" module is no longer available as of 4.0. Simply replace `probe.gl` with the scoped `@probe.gl/...` modules you are actually using.
17+
- The `probe.gl` "umbrella" module is no longer available as of 4.0. Replace `probe.gl` with the scoped `@probe.gl/...` modules you are actually using.
1818

1919
## Upgrading to v3.5
2020

21-
- From v3.5, the `probe.gl` module is being deprecated in favor of importing sub modules `@probe.gl/...`.
22-
- The `probe.gl` module may be removed in probe.gl v4.0, but for backwards compatibility, this module will still be present in v3.x.
21+
- From v3.5, the `probe.gl` module is being deprecated in favor of importing submodules `@probe.gl/...`.
22+
- The `probe.gl` module may be removed in probe.gl v4.0, but for backwards compatibility this module will still be present in v3.x.
2323
- `probe.gl` no longer contains any code, it just re-exports from `@probe.gl/env`, `@probe.gl/log`, `@probe.gl/stats`.
2424

2525
To upgrade:
26-
- `import 'probe.gl` should be replaced with `import '@probe.gl/env'`, `import '@probe.gl/log'` and/or `import '@probe.gl/stats'` (depending on which imports you are using.).
26+
- `import 'probe.gl'` should be replaced with `import '@probe.gl/env'`, `import '@probe.gl/log'` and/or `import '@probe.gl/stats'` (depending on which imports you are using).
2727
- Update your `package.json` file(s) to install the submodules instead of the main module.
28-
- The `import 'probe.gl/env` subdirectory import should be replaced with `import '@probe.gl/env'` (note the leading `@` sign). The subdirectory import is occasionally causing problems with bundlers and the submodule import should be more robust.
28+
- The `import 'probe.gl/env'` subdirectory import should be replaced with `import '@probe.gl/env'` (note the leading `@` sign). The subdirectory import occasionally causes problems with bundlers and the submodule import should be more robust.

0 commit comments

Comments
 (0)