Skip to content

Docs: Apply suggestions for the "Custom plugins" guide - #1236

Merged
sequba merged 4 commits into
developfrom
docs/pr1231
Apr 12, 2023
Merged

sequba merged 4 commits into
developfrom
docs/pr1231

Conversation

@kirszenbaum

@kirszenbaum kirszenbaum commented Apr 11, 2023 •

Copy link
Copy Markdown
Contributor

This PR applies documentation suggestions made in #1231. The changes should make the following information more prominent:

  • Even if you support just a single language, you still need to define a translation for it. (@sequba perhaps we could throw an error if a custom function has no translation defined?)
  • You need to register your function plugin before you create your HyperFormula instance.

@github-actions

github-actions Bot commented Apr 11, 2023 •

Copy link
Copy Markdown

Performance comparison of head (6e9b687) vs base (084e858)

                                     testName |  base |  head |  change
-----------------------------------------------------------------------
                                      Sheet A | 622.7 |   646 |  +3.74%
                                      Sheet B | 283.9 | 274.3 |  -3.38%
                                      Sheet T | 297.5 | 311.5 |  +4.71%
                                Column ranges | 738.5 | 766.7 |  +3.82%
Sheet A:  change value, add/remove row/column |    38 |    45 | +18.42%
 Sheet B: change value, add/remove row/column |   382 |   384 |  +0.52%
                   Column ranges - add column |   507 |   232 | -54.24%
                Column ranges - without batch |   759 |   738 |  -2.77%
                        Column ranges - batch |   392 |   167 | -57.40%

@kirszenbaum kirszenbaum self-assigned this Apr 11, 2023
@kirszenbaum kirszenbaum added the Docs Improvements or additions to documentation label Apr 11, 2023
@kirszenbaum
kirszenbaum requested a review from sequba April 11, 2023 13:05
@sequba sequba linked an issue Apr 12, 2023 that may be closed by this pull request
1 of 5 tasks
Comment thread docs/guide/custom-functions.md Outdated
// prepare spreadsheet data
const data = [['Anthony', '=GREET(A1)']];
// register your function plugin and its translations
HyperFormula.registerFunctionPlugin(MyCustomPlugin, MyCustomPluginTranslations);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is already mentioned in step 5. Do you think it's beneficial to duplicate it here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can do it this way: 58f0eb6

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright, now we have no duplication. Thanks ;)

@kirszenbaum
kirszenbaum requested a review from sequba April 12, 2023 09:58
…Plugins (#1231)

* Fix '::: tip' frames in the documentation (#1172)

* doc suggestions

---------

Co-authored-by: Kuba Sekowski <jakub.sekowski@handsontable.com>
@codecov

codecov Bot commented Apr 12, 2023

Copy link
Copy Markdown

Codecov Report

Merging #1236 (58f0eb6) into develop (084e858) will not change coverage.
The diff coverage is n/a.

❗ Current head 58f0eb6 differs from pull request most recent head 6e9b687. Consider uploading reports for the commit 6e9b687 to get more accurate results

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #1236   +/-   ##
========================================
  Coverage    96.70%   96.70%           
========================================
  Files          165      165           
  Lines        14219    14219           
  Branches      3021     3021           
========================================
  Hits         13750    13750           
  Misses         455      455           
  Partials        14       14           

@sequba
sequba merged commit ca0d783 into develop Apr 12, 2023
@sequba
sequba deleted the docs/pr1231 branch April 12, 2023 10:41
@sequba
sequba restored the docs/pr1231 branch April 12, 2023 13:25
@sequba
sequba deleted the docs/pr1231 branch September 23, 2023 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Docs Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Documentation: Additional detail for Custom Functions and Registered Plugins

3 participants