Skip to content

Commit

Permalink
625 flex file sizes note dev (#647)
Browse files Browse the repository at this point in the history
* Add note about flex_build file sizes

* fix broken frontmatter tag on qrng intro

* update flex indexes
  • Loading branch information
wkande authored Oct 12, 2023
1 parent 53a4fc7 commit aa806aa
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/.vitepress/frontmatterIds.json
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@
"pageHeader": "Guides → QRNG",
"path": "/guides/qrng/index.html",
"outline": "deep",
"tags": null
"tags": ["qrng", "getting started"]
},
"48": {
"title": "Building a Lottery with QRNG",
Expand Down
14 changes: 14 additions & 0 deletions docs/dev/flexsearch.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,20 @@ yarn flex:build
// "flex:build": "node libs/flexBuildIndexes.js; yarn format;",
```

Note the output from the command `yarn flex:build` which displays file sizes.
Check the size of the three `map.json` files which should be in the range of
25-31 MB. If not refer to the
[Long strings warning](/dev/flexsearch.html#long-strings-warning) section below.

```sh
----- Building FlexSearch Indexes -----
...
> docs/public/indexes/all-dev/map.json 29.714834213256836 MB
> docs/public/indexes/all/map.json 28.49449634552002 MB
> docs/public/indexes/latest/map.json 26.81308937072754 MB
...
```

### 4. Script `flexTestSearch.js`

Test the index files.
Expand Down
3 changes: 2 additions & 1 deletion docs/guides/qrng/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ pageHeader: Guides → QRNG
path: /guides/qrng/index.html
outline: deep
tags:
- qrng, getting started
- qrng
- getting started
---

<PageHeader/>
Expand Down
2 changes: 1 addition & 1 deletion docs/public/indexes/all-dev/map.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/public/indexes/all/map.json

Large diffs are not rendered by default.

Loading

0 comments on commit aa806aa

Please sign in to comment.