Skip to content

Commit b1713df

Browse files
Add plugin for markdown, Improve text format
1 parent b9e686c commit b1713df

2 files changed

Lines changed: 11 additions & 9 deletions

File tree

docs/astro.config.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import manifest from "./webmanifest.json";
77
import { fileURLToPath } from "node:url";
88
import { satteri } from '@astrojs/markdown-satteri';
99
import katex from "katex";
10+
import { satteri, satteriHeadingIdsPlugin } from '@astrojs/markdown-satteri';
1011

1112
const renderMath = (value, displayMode = false) =>
1213
katex.renderToString(value, {
@@ -29,7 +30,7 @@ export default defineConfig({
2930
site: "https://butterfly.linwood.dev",
3031
markdown: {
3132
processor: satteri({
32-
features: { math: true },
33+
features: { math: true, headingAttributes: true },
3334
mdastPlugins: [renderMathPlugin],
3435
}),
3536
},

docs/src/content/docs/docs/v2/storage.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Open the developer tools in your browser and you will see the data.
2626

2727
By default, the application saves the data in your documents folder in a subfolder called "Linwood/Butterfly". This folder is created when you save data for the first time. This folder can be changed in the settings.
2828

29-
## Remote storage
29+
## Remote storage {#remote}
3030

3131
:::note
3232

@@ -46,16 +46,18 @@ To get the WebDAV URL, please visit the documentation:
4646
### Instructions for NextCloud
4747

4848
#### How to get the URL
49-
1. Go to 'Files'
49+
50+
1. Go to `Files`
5051
![](@assets/img/webDAV/URLstep1.png)
51-
2. Open the 'Files settings'
52+
2. Press the button on the bottom of the sidebar `Files settings`
5253
![](@assets/img/webDAV/URLstep2.png)
53-
3. Choose the 'WebDAV' section in the sidebar, then Copy the URL
54+
3. Scroll down to the `WebDAV` section, then copy the URL
5455
![](@assets/img/webDAV/URLstep3and4.png)
55-
4. Paste the URL in the URL input box in Butterfly
56+
4. Switch to Butterfly, and paste the URL in the URL input box in Butterfly
5657
![](@assets/img/webDAV/URLstep5.png)
5758

5859
#### How to get the password and username
60+
5961
1. Go to your Nextcloud account info by pressing the profile picture on the corner
6062
2. Then, press `Settings`
6163
![](@assets/img/webDAV/Name1.png)
@@ -64,13 +66,12 @@ To get the WebDAV URL, please visit the documentation:
6466
- "Butterfly Connection" is a good name to use, as it is identifiable and clear.
6567
5. Press the button called `Create new app password`
6668
![](@assets/img/webDAV/Name2.png)
67-
6. After authenticating, copy the email and paste it in the username input box in Butterfly
69+
6. After authenticating, copy the username and paste it in the username input box in Butterfly
6870
![](@assets/img/webDAV/Name3.png)
6971
7. Finally, copy the password and paste it in the password input box in Butterfly
7072
![](@assets/img/webDAV/Name4.png)
7173

72-
73-
### Offline sync
74+
### Offline sync {#offline}
7475

7576
This feature allows you to edit your files on remote servers while you are offline.
7677
Open the popup menu on a file or folder and click on `Sync`. This will download the file or folder and save it locally. To sync the whole root directory, click on the checkmark in the create dialog or click on the remote in the setting and click on the checkmark in the manage section.

0 commit comments

Comments
 (0)