Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion docs/api/filesystem.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,15 @@ await Neutralino.filesystem.appendBinaryFile('./myFile.bin', rawBin);
await Neutralino.filesystem.appendBinaryFile('./myFile.bin', rawBin);
```

## filesystem.readFile(filename)
## filesystem.readFile(filename, options)
Reads a text file. Throws `NE_FS_FILRDER` for file read errors.

### Parameters

- `filename` String: Filename.

### Options

- `pos` Number (optional): File cursor position in bytes.
- `size` Number (optional): File reader buffer size in bytes.

Expand Down
6 changes: 5 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ module.exports = {
label: 'Apps',
position: 'left',
},
{
type: 'search',
position: 'right',
},
{
to: 'resources/',
activeBasePath: 'resources',
Expand Down Expand Up @@ -197,6 +201,6 @@ module.exports = {
],
plugins: [
path.resolve('./plugins/load-external-assets'),
require.resolve('docusaurus-lunr-search')
require.resolve('@easyops-cn/docusaurus-search-local'),
]
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"@docusaurus/core": "^3.3.2",
"@docusaurus/plugin-google-gtag": "^3.3.2",
"@docusaurus/preset-classic": "^3.3.2",
"@easyops-cn/docusaurus-search-local": "^0.55.1",
"@mdx-js/react": "^3.0.0",
"clsx": "^1.1.1",
"docusaurus-lunr-search": "^3.3.2",
Expand Down
Loading